ovirt-engine-sdk 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 573f19600decb51717ca7b46538158f0bfe145c9
4
- data.tar.gz: a42480a7c2627d263106163ecd835c80f0ef2b53
3
+ metadata.gz: 3d18cb6586df2e45f6958881bca0baca8083931c
4
+ data.tar.gz: 5c73298f4ae1e5943e3f4b5e9062888dbf6ef0aa
5
5
  SHA512:
6
- metadata.gz: 3a8a06fe3746bf4c82c9d18c5d9dce0920f6202857444e830c4e917e2d8bacfc2ac9bdd802402a9049b7df029105837c41f1c0c94e3cd7ffc50750abefd66547
7
- data.tar.gz: 97c010a0aee2fa5e496df698790a65be800522c4271db84aba09cf3fe6be1794aec263a0f7607edc22eb8aa48fda629a018e182d9e1d872c716b68626deb1219
6
+ metadata.gz: 8ca1677c1c29d071fdbf1e92e955d339b989161f2dbd3a65064c95959e16539a14894629714b0ed07c7998e6d1ec4dba2ff35356912e26a7125be2eadcb45e54
7
+ data.tar.gz: 24dbb5b8712a20615d7d7b127e3d7c0182e4c143e28c1c5bee11dc7a30de7e71e2c25999a2d261880259261b547b123cd88d797f4932b1ffd071a2bcf6674cac
@@ -2,6 +2,32 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.2.2 / Jan 18 2018
6
+
7
+ Update to model 4.2.28:
8
+
9
+ * Deprecate the `discard_zeroes_data` attribute of the `LogicalUnit`
10
+ type and the `supports_discard_zeroes_data` of the `StorageDomain`
11
+ type, as they have been removed from the kernel.
12
+
13
+ * Add new `content_type` attribute to the `Disk` type
14
+ https://bugzilla.redhat.com/1511420[#1511420].
15
+
16
+ * Make CPU type optional when adding a cluster
17
+ https://bugzilla.redhat.com/1525912[#1525912].
18
+
19
+ * Add support for setting external network providers by name when adding
20
+ or updating a cluster https://bugzilla.redhat.com/1511369[#1511369].
21
+
22
+ * Add new `unmanaged` attribute to the `OpenStackNetworkProvider` type.
23
+
24
+ * Move virtual NIC profile mappings insde registration configuration
25
+ https://bugzilla.redhat.com/1522799[#1522799].
26
+
27
+ * Added new `discovered_targets` output parameter to the operation that
28
+ discovers host iSCSI storage
29
+ https://bugzilla.redhat.com/1510860[#1510860].
30
+
5
31
  == 4.2.1 / Dec 13 2017
6
32
 
7
33
  Bug fixes:
@@ -155,6 +155,8 @@ module OvirtSDK4
155
155
  object.directory = Reader.read_string(reader)
156
156
  when 'discard_snapshots'
157
157
  object.discard_snapshots = Reader.read_boolean(reader)
158
+ when 'discovered_targets'
159
+ object.discovered_targets = IscsiDetailsReader.read_many(reader)
158
160
  when 'disk'
159
161
  object.disk = DiskReader.read_one(reader)
160
162
  when 'disk_profile'
@@ -3238,6 +3240,8 @@ module OvirtSDK4
3238
3240
  object.bootable = value if not value.nil?
3239
3241
  value = reader.get_attribute('comment')
3240
3242
  object.comment = value if not value.nil?
3243
+ value = reader.get_attribute('content_type')
3244
+ object.content_type = value if not value.nil?
3241
3245
  value = reader.get_attribute('description')
3242
3246
  object.description = value if not value.nil?
3243
3247
  value = reader.get_attribute('format')
@@ -3297,6 +3301,8 @@ module OvirtSDK4
3297
3301
  object.bootable = Reader.read_boolean(reader)
3298
3302
  when 'comment'
3299
3303
  object.comment = Reader.read_string(reader)
3304
+ when 'content_type'
3305
+ object.content_type = Reader.read_enum(DiskContentType, reader)
3300
3306
  when 'description'
3301
3307
  object.description = Reader.read_string(reader)
3302
3308
  when 'format'
@@ -3654,6 +3660,8 @@ module OvirtSDK4
3654
3660
  object.bootable = value if not value.nil?
3655
3661
  value = reader.get_attribute('comment')
3656
3662
  object.comment = value if not value.nil?
3663
+ value = reader.get_attribute('content_type')
3664
+ object.content_type = value if not value.nil?
3657
3665
  value = reader.get_attribute('description')
3658
3666
  object.description = value if not value.nil?
3659
3667
  value = reader.get_attribute('format')
@@ -3713,6 +3721,8 @@ module OvirtSDK4
3713
3721
  object.bootable = Reader.read_boolean(reader)
3714
3722
  when 'comment'
3715
3723
  object.comment = Reader.read_string(reader)
3724
+ when 'content_type'
3725
+ object.content_type = Reader.read_enum(DiskContentType, reader)
3716
3726
  when 'description'
3717
3727
  object.description = Reader.read_string(reader)
3718
3728
  when 'format'
@@ -11611,6 +11621,8 @@ module OvirtSDK4
11611
11621
  object.tenant_name = value if not value.nil?
11612
11622
  value = reader.get_attribute('type')
11613
11623
  object.type = value if not value.nil?
11624
+ value = reader.get_attribute('unmanaged')
11625
+ object.unmanaged = value if not value.nil?
11614
11626
  value = reader.get_attribute('url')
11615
11627
  object.url = value if not value.nil?
11616
11628
  value = reader.get_attribute('username')
@@ -11654,6 +11666,8 @@ module OvirtSDK4
11654
11666
  object.tenant_name = Reader.read_string(reader)
11655
11667
  when 'type'
11656
11668
  object.type = Reader.read_enum(OpenStackNetworkProviderType, reader)
11669
+ when 'unmanaged'
11670
+ object.unmanaged = Reader.read_boolean(reader)
11657
11671
  when 'url'
11658
11672
  object.url = Reader.read_string(reader)
11659
11673
  when 'username'
@@ -14110,6 +14124,8 @@ module OvirtSDK4
14110
14124
  object.lun_mappings = RegistrationLunMappingReader.read_many(reader)
14111
14125
  when 'role_mappings'
14112
14126
  object.role_mappings = RegistrationRoleMappingReader.read_many(reader)
14127
+ when 'vnic_profile_mappings'
14128
+ object.vnic_profile_mappings = RegistrationVnicProfileMappingReader.read_many(reader)
14113
14129
  else
14114
14130
  reader.next_element
14115
14131
  end
@@ -14334,6 +14350,68 @@ module OvirtSDK4
14334
14350
 
14335
14351
  end
14336
14352
 
14353
+ class RegistrationVnicProfileMappingReader < Reader
14354
+
14355
+ def self.read_one(reader)
14356
+ # Do nothing if there aren't more tags:
14357
+ return nil unless reader.forward
14358
+
14359
+ # Create the object:
14360
+ object = RegistrationVnicProfileMapping.new
14361
+
14362
+ # Process the attributes:
14363
+ object.href = reader.get_attribute('href')
14364
+
14365
+ # Discard the start tag:
14366
+ empty = reader.empty_element?
14367
+ reader.read
14368
+ return object if empty
14369
+
14370
+ # Process the inner elements:
14371
+ while reader.forward do
14372
+ case reader.node_name
14373
+ when 'from'
14374
+ object.from = VnicProfileReader.read_one(reader)
14375
+ when 'to'
14376
+ object.to = VnicProfileReader.read_one(reader)
14377
+ else
14378
+ reader.next_element
14379
+ end
14380
+ end
14381
+
14382
+ # Discard the end tag:
14383
+ reader.read
14384
+
14385
+ return object
14386
+ end
14387
+
14388
+
14389
+ def self.read_many(reader)
14390
+ # Do nothing if there aren't more tags:
14391
+ list = List.new
14392
+ return list unless reader.forward
14393
+
14394
+ # Process the attributes:
14395
+ list.href = reader.get_attribute('href')
14396
+
14397
+ # Discard the start tag:
14398
+ empty = reader.empty_element?
14399
+ reader.read
14400
+ return list if empty
14401
+
14402
+ # Process the inner elements:
14403
+ while reader.forward do
14404
+ list << read_one(reader)
14405
+ end
14406
+
14407
+ # Discard the end tag:
14408
+ reader.read
14409
+
14410
+ return list
14411
+ end
14412
+
14413
+ end
14414
+
14337
14415
  class ReportedConfigurationReader < Reader
14338
14416
 
14339
14417
  def self.read_one(reader)
@@ -19805,6 +19883,8 @@ module OvirtSDK4
19805
19883
  Reader.register('registration_lun_mappings', RegistrationLunMappingReader.method(:read_many))
19806
19884
  Reader.register('registration_role_mapping', RegistrationRoleMappingReader.method(:read_one))
19807
19885
  Reader.register('registration_role_mappings', RegistrationRoleMappingReader.method(:read_many))
19886
+ Reader.register('registration_vnic_profile_mapping', RegistrationVnicProfileMappingReader.method(:read_one))
19887
+ Reader.register('registration_vnic_profile_mappings', RegistrationVnicProfileMappingReader.method(:read_many))
19808
19888
  Reader.register('reported_configuration', ReportedConfigurationReader.method(:read_one))
19809
19889
  Reader.register('reported_configurations', ReportedConfigurationReader.method(:read_many))
19810
19890
  Reader.register('reported_device', ReportedDeviceReader.method(:read_one))
@@ -5224,7 +5224,7 @@ module OvirtSDK4
5224
5224
  # </cpu>
5225
5225
  # <data_center id="123"/>
5226
5226
  # <external_network_providers>
5227
- # <external_provider id="321"/>
5227
+ # <external_provider name="ovirt-provider-ovn"/>
5228
5228
  # </external_network_providers>
5229
5229
  # </cluster>
5230
5230
  # ----
@@ -6967,6 +6967,10 @@ module OvirtSDK4
6967
6967
  # When creating a new floating image <<types/disk,Disk>>, the API requires the `storage_domain`, `provisioned_size`
6968
6968
  # and `format` attributes.
6969
6969
  #
6970
+ # Note that block storage domains (i.e., storage domains with the <<types/storage_type, storage type>> of iSCSI or
6971
+ # FCP) don't support the combination of the raw `format` with `sparse=true`, so `sparse=false` must be stated
6972
+ # explicitly.
6973
+ #
6970
6974
  # To create a new floating image disk with specified `provisioned_size`, `format` and `name` on a storage domain
6971
6975
  # with an id `123`, send a request as follows:
6972
6976
  #
@@ -11453,7 +11457,7 @@ module OvirtSDK4
11453
11457
  # <root_password>123456</root_password>
11454
11458
  # <external_network_provider_configurations>
11455
11459
  # <external_network_provider_configuration>
11456
- # <external_network_provider id="123"/>
11460
+ # <external_network_provider name="ovirt-provider-ovn"/>
11457
11461
  # </external_network_provider_configuration>
11458
11462
  # </external_network_provider_configurations>
11459
11463
  # </host>
@@ -22101,14 +22105,18 @@ module OvirtSDK4
22101
22105
  # </action>
22102
22106
  # ----
22103
22107
  #
22108
+ # If you register an entity without specifying the cluster ID or name,
22109
+ # the cluster name from the entity's OVF will be used (unless the register request also includes the
22110
+ # cluster mapping).
22111
+ #
22104
22112
  # @param opts [Hash] Additional options.
22105
22113
  #
22106
22114
  # @option opts [Boolean] :async Indicates if the import should be performed asynchronously.
22107
22115
  #
22108
22116
  # @option opts [Boolean] :clone Use the optional `clone` parameter to generate new UUIDs for the imported template and its entities.
22109
22117
  #
22110
- # The user might want to import a template with the `clone` parameter set to `false` when importing a template
22111
- # from an export domain, with templates that was exported by a different {product-name} environment.
22118
+ # You can import a template with the `clone` parameter set to `false` when importing a template
22119
+ # from an export domain, with templates that were exported by a different {product-name} environment.
22112
22120
  #
22113
22121
  # @option opts [Cluster] :cluster
22114
22122
  #
@@ -22147,14 +22155,14 @@ module OvirtSDK4
22147
22155
  private_constant :REGISTER
22148
22156
 
22149
22157
  #
22150
- # Register the Template means importing the Template from the data domain, by inserting the configuration of the
22151
- # Template and disks into the DB without the copy process.
22158
+ # Register the Template means importing the Template from the data domain by inserting the configuration of the
22159
+ # Template and disks into the database without the copy process.
22152
22160
  #
22153
22161
  # @param opts [Hash] Additional options.
22154
22162
  #
22155
22163
  # @option opts [Boolean] :allow_partial_import Indicates whether a template is allowed to be registered with only some of its disks.
22156
22164
  #
22157
- # If this flag is `true`, the engine will not fail in the validation process if an image is not found, but
22165
+ # If this flag is `true`, the system will not fail in the validation process if an image is not found, but
22158
22166
  # instead it will allow the template to be registered without the missing disks. This is mainly used during
22159
22167
  # registration of a template when some of the storage domains are not available. The default value is `false`.
22160
22168
  #
@@ -22175,7 +22183,11 @@ module OvirtSDK4
22175
22183
  #
22176
22184
  # @option opts [Template] :template
22177
22185
  #
22178
- # @option opts [Array<VnicProfileMapping>] :vnic_profile_mappings Mapping rules for virtual NIC profiles that will be applied during the import process.
22186
+ # @option opts [Array<VnicProfileMapping>] :vnic_profile_mappings Deprecated attribute describing mapping rules for virtual NIC profiles that will be applied during the import\register process.
22187
+ #
22188
+ # WARNING: Please note that this attribute has been deprecated since version 4.2.1 of the engine, and preserved only for backward
22189
+ # compatibility. It will be removed in the future. To specify `vnic_profile_mappings` use the `vnic_profile_mappings`
22190
+ # attribute inside the <<types/registration_configuration, RegistrationConfiguration>> type.
22179
22191
  #
22180
22192
  # @option opts [Hash] :headers ({}) Additional HTTP headers.
22181
22193
  #
@@ -22429,6 +22441,10 @@ module OvirtSDK4
22429
22441
  # </action>
22430
22442
  # ----
22431
22443
  #
22444
+ # If you register an entity without specifying the cluster ID or name,
22445
+ # the cluster name from the entity's OVF will be used (unless the register request also includes the
22446
+ # cluster mapping).
22447
+ #
22432
22448
  # @param opts [Hash] Additional options.
22433
22449
  #
22434
22450
  # @option opts [Boolean] :async Indicates if the import should be performed asynchronously.
@@ -22517,7 +22533,11 @@ module OvirtSDK4
22517
22533
  #
22518
22534
  # @option opts [Vm] :vm
22519
22535
  #
22520
- # @option opts [Array<VnicProfileMapping>] :vnic_profile_mappings Mapping rules for virtual NIC profiles that will be applied during the import process.
22536
+ # @option opts [Array<VnicProfileMapping>] :vnic_profile_mappings Deprecated attribute describing mapping rules for virtual NIC profiles that will be applied during the import\register process.
22537
+ #
22538
+ # WARNING: Please note that this attribute has been deprecated since version 4.2.1 of the engine, and preserved only for backward
22539
+ # compatibility. It will be removed in the future. To specify `vnic_profile_mappings` use the `vnic_profile_mappings`
22540
+ # attribute inside the <<types/registration_configuration, RegistrationConfiguration>> type.
22521
22541
  #
22522
22542
  # @option opts [Hash] :headers ({}) Additional HTTP headers.
22523
22543
  #
@@ -35012,7 +35032,12 @@ module OvirtSDK4
35012
35032
  private_constant :INSTALL
35013
35033
 
35014
35034
  #
35015
- # Installs VDSM and related software on the host. The host type defines additional parameters for the action.
35035
+ # Installs the latest version of VDSM and related software on the host.
35036
+ #
35037
+ # The action also performs every configuration steps on the host which is done during adding host to the engine:
35038
+ # kdump configuration, hosted-engine deploy, kernel options changes, etc.
35039
+ #
35040
+ # The host type defines additional parameters for the action.
35016
35041
  #
35017
35042
  # Example of installing a host, using `curl` and JSON, plain:
35018
35043
  #
@@ -35102,13 +35127,51 @@ module OvirtSDK4
35102
35127
  #
35103
35128
  # Discovers iSCSI targets on the host, using the initiator details.
35104
35129
  #
35130
+ # For example, to discover iSCSI targets available in `myiscsi.example.com`,
35131
+ # from host `123`, send a request like this:
35132
+ #
35133
+ # [source]
35134
+ # ----
35135
+ # POST /ovirt-engine/api/hosts/123/iscsidiscover
35136
+ # ----
35137
+ #
35138
+ # With a request body like this:
35139
+ #
35140
+ # [source,xml]
35141
+ # ----
35142
+ # <action>
35143
+ # <iscsi>
35144
+ # <address>myiscsi.example.com</address>
35145
+ # </iscsi>
35146
+ # </action>
35147
+ # ----
35148
+ #
35149
+ # The result will be like this:
35150
+ #
35151
+ # [source,xml]
35152
+ # ----
35153
+ # <discovered_targets>
35154
+ # <iscsi_details>
35155
+ # <address>10.35.1.72</address>
35156
+ # <port>3260</port>
35157
+ # <portal>10.35.1.72:3260,1</portal>
35158
+ # <target>iqn.2015-08.com.tgt:444</target>
35159
+ # </iscsi_details>
35160
+ # </discovered_targets>
35161
+ # ----
35162
+ #
35105
35163
  # @param opts [Hash] Additional options.
35106
35164
  #
35107
35165
  # @option opts [Boolean] :async Indicates if the discovery should be performed asynchronously.
35108
35166
  #
35167
+ # @option opts [Array<IscsiDetails>] :discovered_targets The discovered targets including all connection information.
35168
+ #
35109
35169
  # @option opts [IscsiDetails] :iscsi The target iSCSI device.
35110
35170
  #
35111
35171
  # @option opts [Array<String>] :iscsi_targets The iSCSI targets.
35172
+ #
35173
+ # Since version 4.2 of the engine, this parameter is deprecated, use
35174
+ # `discovered_targets` instead.
35112
35175
  #
35113
35176
  # @option opts [Hash] :headers ({}) Additional HTTP headers.
35114
35177
  #
@@ -329,6 +329,9 @@ module OvirtSDK4
329
329
  class RegistrationRoleMapping < Struct
330
330
  end
331
331
 
332
+ class RegistrationVnicProfileMapping < Struct
333
+ end
334
+
332
335
  class ReportedConfiguration < Struct
333
336
  end
334
337
 
@@ -16700,6 +16703,32 @@ module OvirtSDK4
16700
16703
  @role_mappings = list
16701
16704
  end
16702
16705
 
16706
+ #
16707
+ # Returns the value of the `vnic_profile_mappings` attribute.
16708
+ #
16709
+ # @return [Array<RegistrationVnicProfileMapping>]
16710
+ #
16711
+ def vnic_profile_mappings
16712
+ @vnic_profile_mappings
16713
+ end
16714
+
16715
+ #
16716
+ # Sets the value of the `vnic_profile_mappings` attribute.
16717
+ #
16718
+ # @param list [Array<RegistrationVnicProfileMapping>]
16719
+ #
16720
+ def vnic_profile_mappings=(list)
16721
+ if list.class == Array
16722
+ list = List.new(list)
16723
+ list.each_with_index do |value, index|
16724
+ if value.is_a?(Hash)
16725
+ list[index] = RegistrationVnicProfileMapping.new(value)
16726
+ end
16727
+ end
16728
+ end
16729
+ @vnic_profile_mappings = list
16730
+ end
16731
+
16703
16732
  #
16704
16733
  # Creates a new instance of the {RegistrationConfiguration} class.
16705
16734
  #
@@ -16719,6 +16748,8 @@ module OvirtSDK4
16719
16748
  #
16720
16749
  # @option opts [Array<RegistrationRoleMapping>, Array<Hash>] :role_mappings The values of attribute `role_mappings`.
16721
16750
  #
16751
+ # @option opts [Array<RegistrationVnicProfileMapping>, Array<Hash>] :vnic_profile_mappings The values of attribute `vnic_profile_mappings`.
16752
+ #
16722
16753
  #
16723
16754
  def initialize(opts = {})
16724
16755
  super(opts)
@@ -16728,6 +16759,7 @@ module OvirtSDK4
16728
16759
  self.domain_mappings = opts[:domain_mappings]
16729
16760
  self.lun_mappings = opts[:lun_mappings]
16730
16761
  self.role_mappings = opts[:role_mappings]
16762
+ self.vnic_profile_mappings = opts[:vnic_profile_mappings]
16731
16763
  end
16732
16764
 
16733
16765
  #
@@ -16740,7 +16772,8 @@ module OvirtSDK4
16740
16772
  @cluster_mappings == other.cluster_mappings &&
16741
16773
  @domain_mappings == other.domain_mappings &&
16742
16774
  @lun_mappings == other.lun_mappings &&
16743
- @role_mappings == other.role_mappings
16775
+ @role_mappings == other.role_mappings &&
16776
+ @vnic_profile_mappings == other.vnic_profile_mappings
16744
16777
  end
16745
16778
 
16746
16779
  #
@@ -16753,7 +16786,8 @@ module OvirtSDK4
16753
16786
  @cluster_mappings.hash +
16754
16787
  @domain_mappings.hash +
16755
16788
  @lun_mappings.hash +
16756
- @role_mappings.hash
16789
+ @role_mappings.hash +
16790
+ @vnic_profile_mappings.hash
16757
16791
  end
16758
16792
 
16759
16793
  end
@@ -17028,6 +17062,96 @@ module OvirtSDK4
17028
17062
 
17029
17063
  end
17030
17064
 
17065
+ class RegistrationVnicProfileMapping < Struct
17066
+
17067
+ #
17068
+ # Returns the value of the `from` attribute.
17069
+ #
17070
+ # @return [VnicProfile]
17071
+ #
17072
+ def from
17073
+ @from
17074
+ end
17075
+
17076
+ #
17077
+ # Sets the value of the `from` attribute.
17078
+ #
17079
+ # @param value [VnicProfile, Hash]
17080
+ #
17081
+ # The `value` parameter can be an instance of {OvirtSDK4::VnicProfile} or a hash.
17082
+ # If it is a hash then a new instance will be created passing the hash as the
17083
+ # `opts` parameter to the constructor.
17084
+ #
17085
+ def from=(value)
17086
+ if value.is_a?(Hash)
17087
+ value = VnicProfile.new(value)
17088
+ end
17089
+ @from = value
17090
+ end
17091
+
17092
+ #
17093
+ # Returns the value of the `to` attribute.
17094
+ #
17095
+ # @return [VnicProfile]
17096
+ #
17097
+ def to
17098
+ @to
17099
+ end
17100
+
17101
+ #
17102
+ # Sets the value of the `to` attribute.
17103
+ #
17104
+ # @param value [VnicProfile, Hash]
17105
+ #
17106
+ # The `value` parameter can be an instance of {OvirtSDK4::VnicProfile} or a hash.
17107
+ # If it is a hash then a new instance will be created passing the hash as the
17108
+ # `opts` parameter to the constructor.
17109
+ #
17110
+ def to=(value)
17111
+ if value.is_a?(Hash)
17112
+ value = VnicProfile.new(value)
17113
+ end
17114
+ @to = value
17115
+ end
17116
+
17117
+ #
17118
+ # Creates a new instance of the {RegistrationVnicProfileMapping} class.
17119
+ #
17120
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
17121
+ # should be symbols corresponding to the names of the attributes. The values of the hash
17122
+ # should be the values of the attributes.
17123
+ #
17124
+ # @option opts [VnicProfile, Hash] :from The value of attribute `from`.
17125
+ #
17126
+ # @option opts [VnicProfile, Hash] :to The value of attribute `to`.
17127
+ #
17128
+ #
17129
+ def initialize(opts = {})
17130
+ super(opts)
17131
+ self.from = opts[:from]
17132
+ self.to = opts[:to]
17133
+ end
17134
+
17135
+ #
17136
+ # Returns `true` if `self` and `other` have the same attributes and values.
17137
+ #
17138
+ def ==(other)
17139
+ super &&
17140
+ @from == other.from &&
17141
+ @to == other.to
17142
+ end
17143
+
17144
+ #
17145
+ # Generates a hash value for this object.
17146
+ #
17147
+ def hash
17148
+ super +
17149
+ @from.hash +
17150
+ @to.hash
17151
+ end
17152
+
17153
+ end
17154
+
17031
17155
  class ReportedConfiguration < Struct
17032
17156
 
17033
17157
  #
@@ -27324,6 +27448,32 @@ module OvirtSDK4
27324
27448
  @discard_snapshots = value
27325
27449
  end
27326
27450
 
27451
+ #
27452
+ # Returns the value of the `discovered_targets` attribute.
27453
+ #
27454
+ # @return [Array<IscsiDetails>]
27455
+ #
27456
+ def discovered_targets
27457
+ @discovered_targets
27458
+ end
27459
+
27460
+ #
27461
+ # Sets the value of the `discovered_targets` attribute.
27462
+ #
27463
+ # @param list [Array<IscsiDetails>]
27464
+ #
27465
+ def discovered_targets=(list)
27466
+ if list.class == Array
27467
+ list = List.new(list)
27468
+ list.each_with_index do |value, index|
27469
+ if value.is_a?(Hash)
27470
+ list[index] = IscsiDetails.new(value)
27471
+ end
27472
+ end
27473
+ end
27474
+ @discovered_targets = list
27475
+ end
27476
+
27327
27477
  #
27328
27478
  # Returns the value of the `disk` attribute.
27329
27479
  #
@@ -28686,6 +28836,8 @@ module OvirtSDK4
28686
28836
  #
28687
28837
  # @option opts [Boolean] :discard_snapshots The value of attribute `discard_snapshots`.
28688
28838
  #
28839
+ # @option opts [Array<IscsiDetails>, Array<Hash>] :discovered_targets The values of attribute `discovered_targets`.
28840
+ #
28689
28841
  # @option opts [Disk, Hash] :disk The value of attribute `disk`.
28690
28842
  #
28691
28843
  # @option opts [DiskProfile, Hash] :disk_profile The value of attribute `disk_profile`.
@@ -28827,6 +28979,7 @@ module OvirtSDK4
28827
28979
  self.details = opts[:details]
28828
28980
  self.directory = opts[:directory]
28829
28981
  self.discard_snapshots = opts[:discard_snapshots]
28982
+ self.discovered_targets = opts[:discovered_targets]
28830
28983
  self.disk = opts[:disk]
28831
28984
  self.disk_profile = opts[:disk_profile]
28832
28985
  self.disks = opts[:disks]
@@ -28910,6 +29063,7 @@ module OvirtSDK4
28910
29063
  @details == other.details &&
28911
29064
  @directory == other.directory &&
28912
29065
  @discard_snapshots == other.discard_snapshots &&
29066
+ @discovered_targets == other.discovered_targets &&
28913
29067
  @disk == other.disk &&
28914
29068
  @disk_profile == other.disk_profile &&
28915
29069
  @disks == other.disks &&
@@ -28993,6 +29147,7 @@ module OvirtSDK4
28993
29147
  @details.hash +
28994
29148
  @directory.hash +
28995
29149
  @discard_snapshots.hash +
29150
+ @discovered_targets.hash +
28996
29151
  @disk.hash +
28997
29152
  @disk_profile.hash +
28998
29153
  @disks.hash +
@@ -33303,6 +33458,24 @@ module OvirtSDK4
33303
33458
  @comment = value
33304
33459
  end
33305
33460
 
33461
+ #
33462
+ # Returns the value of the `content_type` attribute.
33463
+ #
33464
+ # @return [DiskContentType]
33465
+ #
33466
+ def content_type
33467
+ @content_type
33468
+ end
33469
+
33470
+ #
33471
+ # Sets the value of the `content_type` attribute.
33472
+ #
33473
+ # @param value [DiskContentType]
33474
+ #
33475
+ def content_type=(value)
33476
+ @content_type = value
33477
+ end
33478
+
33306
33479
  #
33307
33480
  # Returns the value of the `description` attribute.
33308
33481
  #
@@ -34009,6 +34182,8 @@ module OvirtSDK4
34009
34182
  #
34010
34183
  # @option opts [String] :comment The value of attribute `comment`.
34011
34184
  #
34185
+ # @option opts [DiskContentType] :content_type The value of attribute `content_type`.
34186
+ #
34012
34187
  # @option opts [String] :description The value of attribute `description`.
34013
34188
  #
34014
34189
  # @option opts [DiskProfile, Hash] :disk_profile The value of attribute `disk_profile`.
@@ -34082,6 +34257,7 @@ module OvirtSDK4
34082
34257
  self.actual_size = opts[:actual_size]
34083
34258
  self.alias_ = opts[:alias_]
34084
34259
  self.bootable = opts[:bootable]
34260
+ self.content_type = opts[:content_type]
34085
34261
  self.disk_profile = opts[:disk_profile]
34086
34262
  self.format = opts[:format]
34087
34263
  self.image_id = opts[:image_id]
@@ -34119,6 +34295,7 @@ module OvirtSDK4
34119
34295
  @actual_size == other.actual_size &&
34120
34296
  @alias_ == other.alias_ &&
34121
34297
  @bootable == other.bootable &&
34298
+ @content_type == other.content_type &&
34122
34299
  @disk_profile == other.disk_profile &&
34123
34300
  @format == other.format &&
34124
34301
  @image_id == other.image_id &&
@@ -34156,6 +34333,7 @@ module OvirtSDK4
34156
34333
  @actual_size.hash +
34157
34334
  @alias_.hash +
34158
34335
  @bootable.hash +
34336
+ @content_type.hash +
34159
34337
  @disk_profile.hash +
34160
34338
  @format.hash +
34161
34339
  @image_id.hash +
@@ -34840,6 +35018,24 @@ module OvirtSDK4
34840
35018
  @comment = value
34841
35019
  end
34842
35020
 
35021
+ #
35022
+ # Returns the value of the `content_type` attribute.
35023
+ #
35024
+ # @return [DiskContentType]
35025
+ #
35026
+ def content_type
35027
+ @content_type
35028
+ end
35029
+
35030
+ #
35031
+ # Sets the value of the `content_type` attribute.
35032
+ #
35033
+ # @param value [DiskContentType]
35034
+ #
35035
+ def content_type=(value)
35036
+ @content_type = value
35037
+ end
35038
+
34843
35039
  #
34844
35040
  # Returns the value of the `description` attribute.
34845
35041
  #
@@ -35571,6 +35767,8 @@ module OvirtSDK4
35571
35767
  #
35572
35768
  # @option opts [String] :comment The value of attribute `comment`.
35573
35769
  #
35770
+ # @option opts [DiskContentType] :content_type The value of attribute `content_type`.
35771
+ #
35574
35772
  # @option opts [String] :description The value of attribute `description`.
35575
35773
  #
35576
35774
  # @option opts [Disk, Hash] :disk The value of attribute `disk`.
@@ -52455,6 +52653,24 @@ module OvirtSDK4
52455
52653
  @type = value
52456
52654
  end
52457
52655
 
52656
+ #
52657
+ # Returns the value of the `unmanaged` attribute.
52658
+ #
52659
+ # @return [Boolean]
52660
+ #
52661
+ def unmanaged
52662
+ @unmanaged
52663
+ end
52664
+
52665
+ #
52666
+ # Sets the value of the `unmanaged` attribute.
52667
+ #
52668
+ # @param value [Boolean]
52669
+ #
52670
+ def unmanaged=(value)
52671
+ @unmanaged = value
52672
+ end
52673
+
52458
52674
  #
52459
52675
  # Returns the value of the `url` attribute.
52460
52676
  #
@@ -52534,6 +52750,8 @@ module OvirtSDK4
52534
52750
  #
52535
52751
  # @option opts [OpenStackNetworkProviderType] :type The value of attribute `type`.
52536
52752
  #
52753
+ # @option opts [Boolean] :unmanaged The value of attribute `unmanaged`.
52754
+ #
52537
52755
  # @option opts [String] :url The value of attribute `url`.
52538
52756
  #
52539
52757
  # @option opts [String] :username The value of attribute `username`.
@@ -52550,6 +52768,7 @@ module OvirtSDK4
52550
52768
  self.read_only = opts[:read_only]
52551
52769
  self.subnets = opts[:subnets]
52552
52770
  self.type = opts[:type]
52771
+ self.unmanaged = opts[:unmanaged]
52553
52772
  end
52554
52773
 
52555
52774
  #
@@ -52565,7 +52784,8 @@ module OvirtSDK4
52565
52784
  @plugin_type == other.plugin_type &&
52566
52785
  @read_only == other.read_only &&
52567
52786
  @subnets == other.subnets &&
52568
- @type == other.type
52787
+ @type == other.type &&
52788
+ @unmanaged == other.unmanaged
52569
52789
  end
52570
52790
 
52571
52791
  #
@@ -52581,7 +52801,8 @@ module OvirtSDK4
52581
52801
  @plugin_type.hash +
52582
52802
  @read_only.hash +
52583
52803
  @subnets.hash +
52584
- @type.hash
52804
+ @type.hash +
52805
+ @unmanaged.hash
52585
52806
  end
52586
52807
 
52587
52808
  end
@@ -54827,6 +55048,14 @@ module OvirtSDK4
54827
55048
  UP = 'up'.freeze
54828
55049
  end
54829
55050
 
55051
+ module DiskContentType
55052
+ DATA = 'data'.freeze
55053
+ ISO = 'iso'.freeze
55054
+ MEMORY_DUMP_VOLUME = 'memory_dump_volume'.freeze
55055
+ MEMORY_METADATA_VOLUME = 'memory_metadata_volume'.freeze
55056
+ OVF_STORE = 'ovf_store'.freeze
55057
+ end
55058
+
54830
55059
  module DiskFormat
54831
55060
  COW = 'cow'.freeze
54832
55061
  RAW = 'raw'.freeze
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.2.1'.freeze
19
+ VERSION = '4.2.2'.freeze
20
20
  end
@@ -45,6 +45,7 @@ module OvirtSDK4
45
45
  GlusterVolumeProfileDetailsWriter.write_one(object.details, writer, 'details') unless object.details.nil?
46
46
  Writer.write_string(writer, 'directory', object.directory) unless object.directory.nil?
47
47
  Writer.write_boolean(writer, 'discard_snapshots', object.discard_snapshots) unless object.discard_snapshots.nil?
48
+ IscsiDetailsWriter.write_many(object.discovered_targets, writer, 'iscsi_details', 'discovered_targets') unless object.discovered_targets.nil?
48
49
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
49
50
  DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
50
51
  DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
@@ -1282,6 +1283,7 @@ module OvirtSDK4
1282
1283
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1283
1284
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1284
1285
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1286
+ Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1285
1287
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1286
1288
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1287
1289
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
@@ -1419,6 +1421,7 @@ module OvirtSDK4
1419
1421
  Writer.write_string(writer, 'alias', object.alias_) unless object.alias_.nil?
1420
1422
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1421
1423
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1424
+ Writer.write_string(writer, 'content_type', object.content_type) unless object.content_type.nil?
1422
1425
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1423
1426
  Writer.write_string(writer, 'format', object.format) unless object.format.nil?
1424
1427
  Writer.write_string(writer, 'image_id', object.image_id) unless object.image_id.nil?
@@ -4432,6 +4435,7 @@ module OvirtSDK4
4432
4435
  Writer.write_boolean(writer, 'requires_authentication', object.requires_authentication) unless object.requires_authentication.nil?
4433
4436
  Writer.write_string(writer, 'tenant_name', object.tenant_name) unless object.tenant_name.nil?
4434
4437
  Writer.write_string(writer, 'type', object.type) unless object.type.nil?
4438
+ Writer.write_boolean(writer, 'unmanaged', object.unmanaged) unless object.unmanaged.nil?
4435
4439
  Writer.write_string(writer, 'url', object.url) unless object.url.nil?
4436
4440
  Writer.write_string(writer, 'username', object.username) unless object.username.nil?
4437
4441
  CertificateWriter.write_many(object.certificates, writer, 'certificate', 'certificates') unless object.certificates.nil?
@@ -5413,6 +5417,7 @@ module OvirtSDK4
5413
5417
  RegistrationDomainMappingWriter.write_many(object.domain_mappings, writer, 'registration_domain_mapping', 'domain_mappings') unless object.domain_mappings.nil?
5414
5418
  RegistrationLunMappingWriter.write_many(object.lun_mappings, writer, 'registration_lun_mapping', 'lun_mappings') unless object.lun_mappings.nil?
5415
5419
  RegistrationRoleMappingWriter.write_many(object.role_mappings, writer, 'registration_role_mapping', 'role_mappings') unless object.role_mappings.nil?
5420
+ RegistrationVnicProfileMappingWriter.write_many(object.vnic_profile_mappings, writer, 'registration_vnic_profile_mapping', 'vnic_profile_mappings') unless object.vnic_profile_mappings.nil?
5416
5421
  writer.write_end
5417
5422
  end
5418
5423
 
@@ -5516,6 +5521,34 @@ module OvirtSDK4
5516
5521
 
5517
5522
  end
5518
5523
 
5524
+ class RegistrationVnicProfileMappingWriter < Writer
5525
+
5526
+ def self.write_one(object, writer, singular = nil)
5527
+ singular ||= 'registration_vnic_profile_mapping'
5528
+ writer.write_start(singular)
5529
+ href = object.href
5530
+ writer.write_attribute('href', href) unless href.nil?
5531
+ VnicProfileWriter.write_one(object.from, writer, 'from') unless object.from.nil?
5532
+ VnicProfileWriter.write_one(object.to, writer, 'to') unless object.to.nil?
5533
+ writer.write_end
5534
+ end
5535
+
5536
+ def self.write_many(list, writer, singular = nil, plural = nil)
5537
+ singular ||= 'registration_vnic_profile_mapping'
5538
+ plural ||= 'registration_vnic_profile_mappings'
5539
+ writer.write_start(plural)
5540
+ if list.is_a?(List)
5541
+ href = list.href
5542
+ writer.write_attribute('href', href) unless href.nil?
5543
+ end
5544
+ list.each do |item|
5545
+ write_one(item, writer, singular)
5546
+ end
5547
+ writer.write_end
5548
+ end
5549
+
5550
+ end
5551
+
5519
5552
  class ReportedConfigurationWriter < Writer
5520
5553
 
5521
5554
  def self.write_one(object, writer, singular = nil)
@@ -7602,6 +7635,7 @@ module OvirtSDK4
7602
7635
  Writer.register(RegistrationDomainMapping, RegistrationDomainMappingWriter.method(:write_one))
7603
7636
  Writer.register(RegistrationLunMapping, RegistrationLunMappingWriter.method(:write_one))
7604
7637
  Writer.register(RegistrationRoleMapping, RegistrationRoleMappingWriter.method(:write_one))
7638
+ Writer.register(RegistrationVnicProfileMapping, RegistrationVnicProfileMappingWriter.method(:write_one))
7605
7639
  Writer.register(ReportedConfiguration, ReportedConfigurationWriter.method(:write_one))
7606
7640
  Writer.register(ReportedDevice, ReportedDeviceWriter.method(:write_one))
7607
7641
  Writer.register(RngDevice, RngDeviceWriter.method(:write_one))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-13 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,84 +16,90 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '11.3'
19
+ version: '12.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '11.3'
26
+ version: '12.3'
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
- version: '0.9'
33
+ version: '1.0'
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
- version: '0.9'
40
+ version: '1.0'
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
- version: '3.3'
47
+ version: '3.7'
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
- version: '3.3'
54
+ version: '3.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.44'
61
+ version: '0.52'
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
- version: '0.44'
68
+ version: '0.52'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.8'
75
+ version: '0.9'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 0.9.12
76
79
  type: :development
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - "~>"
81
84
  - !ruby/object:Gem::Version
82
- version: '0.8'
85
+ version: '0.9'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 0.9.12
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: json
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - ">="
93
+ - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: '1'
90
96
  type: :runtime
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - ">="
100
+ - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: '1'
97
103
  description: Ruby SDK for the oVirt Engine API.
98
104
  email:
99
105
  - jhernand@redhat.com
@@ -159,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
165
  version: '0'
160
166
  requirements: []
161
167
  rubyforge_project:
162
- rubygems_version: 2.6.11
168
+ rubygems_version: 2.6.14
163
169
  signing_key:
164
170
  specification_version: 4
165
171
  summary: oVirt SDK