ovirt-engine-sdk 4.0.0 → 4.0.1

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.
@@ -131,6 +131,9 @@ module OvirtSDK4
131
131
  class Image < Identified
132
132
  end
133
133
 
134
+ class ImageTransfer < Identified
135
+ end
136
+
134
137
  class Initialization < Struct
135
138
  end
136
139
 
@@ -4207,6 +4210,225 @@ module OvirtSDK4
4207
4210
 
4208
4211
  end
4209
4212
 
4213
+ class ImageTransfer < Identified
4214
+
4215
+ #
4216
+ # Returns the value of the `comment` attribute.
4217
+ #
4218
+ # @return [String]
4219
+ #
4220
+ def comment
4221
+ return @comment
4222
+ end
4223
+
4224
+ #
4225
+ # Sets the value of the `comment` attribute.
4226
+ #
4227
+ # @param value [String]
4228
+ #
4229
+ def comment=(value)
4230
+ @comment = value
4231
+ end
4232
+
4233
+ #
4234
+ # Returns the value of the `description` attribute.
4235
+ #
4236
+ # @return [String]
4237
+ #
4238
+ def description
4239
+ return @description
4240
+ end
4241
+
4242
+ #
4243
+ # Sets the value of the `description` attribute.
4244
+ #
4245
+ # @param value [String]
4246
+ #
4247
+ def description=(value)
4248
+ @description = value
4249
+ end
4250
+
4251
+ #
4252
+ # Returns the value of the `host` attribute.
4253
+ #
4254
+ # @return [Host]
4255
+ #
4256
+ def host
4257
+ return @host
4258
+ end
4259
+
4260
+ #
4261
+ # Sets the value of the `host` attribute.
4262
+ #
4263
+ # @param value [Host, Hash]
4264
+ #
4265
+ # The `value` parameter can be an instance of {OvirtSDK4::Host} or a hash.
4266
+ # If it is a hash then a new instance will be created passing the hash as the
4267
+ # `opts` parameter to the constructor.
4268
+ #
4269
+ def host=(value)
4270
+ if value.is_a?(Hash)
4271
+ value = Host.new(value)
4272
+ end
4273
+ @host = value
4274
+ end
4275
+
4276
+ #
4277
+ # Returns the value of the `id` attribute.
4278
+ #
4279
+ # @return [String]
4280
+ #
4281
+ def id
4282
+ return @id
4283
+ end
4284
+
4285
+ #
4286
+ # Sets the value of the `id` attribute.
4287
+ #
4288
+ # @param value [String]
4289
+ #
4290
+ def id=(value)
4291
+ @id = value
4292
+ end
4293
+
4294
+ #
4295
+ # Returns the value of the `image` attribute.
4296
+ #
4297
+ # @return [Image]
4298
+ #
4299
+ def image
4300
+ return @image
4301
+ end
4302
+
4303
+ #
4304
+ # Sets the value of the `image` attribute.
4305
+ #
4306
+ # @param value [Image, Hash]
4307
+ #
4308
+ # The `value` parameter can be an instance of {OvirtSDK4::Image} or a hash.
4309
+ # If it is a hash then a new instance will be created passing the hash as the
4310
+ # `opts` parameter to the constructor.
4311
+ #
4312
+ def image=(value)
4313
+ if value.is_a?(Hash)
4314
+ value = Image.new(value)
4315
+ end
4316
+ @image = value
4317
+ end
4318
+
4319
+ #
4320
+ # Returns the value of the `name` attribute.
4321
+ #
4322
+ # @return [String]
4323
+ #
4324
+ def name
4325
+ return @name
4326
+ end
4327
+
4328
+ #
4329
+ # Sets the value of the `name` attribute.
4330
+ #
4331
+ # @param value [String]
4332
+ #
4333
+ def name=(value)
4334
+ @name = value
4335
+ end
4336
+
4337
+ #
4338
+ # Returns the value of the `phase` attribute.
4339
+ #
4340
+ # @return [ImageTransferPhase]
4341
+ #
4342
+ def phase
4343
+ return @phase
4344
+ end
4345
+
4346
+ #
4347
+ # Sets the value of the `phase` attribute.
4348
+ #
4349
+ # @param value [ImageTransferPhase]
4350
+ #
4351
+ def phase=(value)
4352
+ @phase = value
4353
+ end
4354
+
4355
+ #
4356
+ # Returns the value of the `proxy_url` attribute.
4357
+ #
4358
+ # @return [String]
4359
+ #
4360
+ def proxy_url
4361
+ return @proxy_url
4362
+ end
4363
+
4364
+ #
4365
+ # Sets the value of the `proxy_url` attribute.
4366
+ #
4367
+ # @param value [String]
4368
+ #
4369
+ def proxy_url=(value)
4370
+ @proxy_url = value
4371
+ end
4372
+
4373
+ #
4374
+ # Returns the value of the `signed_ticket` attribute.
4375
+ #
4376
+ # @return [String]
4377
+ #
4378
+ def signed_ticket
4379
+ return @signed_ticket
4380
+ end
4381
+
4382
+ #
4383
+ # Sets the value of the `signed_ticket` attribute.
4384
+ #
4385
+ # @param value [String]
4386
+ #
4387
+ def signed_ticket=(value)
4388
+ @signed_ticket = value
4389
+ end
4390
+
4391
+ #
4392
+ # Creates a new instance of the {ImageTransfer} class.
4393
+ #
4394
+ # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
4395
+ # should be symbols corresponding to the names of the attributes. The values of the hash
4396
+ # should be the values of the attributes.
4397
+ #
4398
+ # @option opts [String] :comment The value of attribute `comment`.
4399
+ #
4400
+ # @option opts [String] :description The value of attribute `description`.
4401
+ #
4402
+ # @option opts [Host, Hash] :host The value of attribute `host`.
4403
+ #
4404
+ # @option opts [String] :id The value of attribute `id`.
4405
+ #
4406
+ # @option opts [Image, Hash] :image The value of attribute `image`.
4407
+ #
4408
+ # @option opts [String] :name The value of attribute `name`.
4409
+ #
4410
+ # @option opts [ImageTransferPhase] :phase The value of attribute `phase`.
4411
+ #
4412
+ # @option opts [String] :proxy_url The value of attribute `proxy_url`.
4413
+ #
4414
+ # @option opts [String] :signed_ticket The value of attribute `signed_ticket`.
4415
+ #
4416
+ #
4417
+ def initialize(opts = {})
4418
+ super(opts)
4419
+ self.comment = opts[:comment]
4420
+ self.description = opts[:description]
4421
+ self.host = opts[:host]
4422
+ self.id = opts[:id]
4423
+ self.image = opts[:image]
4424
+ self.name = opts[:name]
4425
+ self.phase = opts[:phase]
4426
+ self.proxy_url = opts[:proxy_url]
4427
+ self.signed_ticket = opts[:signed_ticket]
4428
+ end
4429
+
4430
+ end
4431
+
4210
4432
  class Initialization < Struct
4211
4433
 
4212
4434
  #
@@ -7513,7 +7735,7 @@ module OvirtSDK4
7513
7735
  #
7514
7736
  # Returns the value of the `usages` attribute.
7515
7737
  #
7516
- # @return [Array<String>]
7738
+ # @return [Array<NetworkUsage>]
7517
7739
  #
7518
7740
  def usages
7519
7741
  return @usages
@@ -7522,7 +7744,7 @@ module OvirtSDK4
7522
7744
  #
7523
7745
  # Sets the value of the `usages` attribute.
7524
7746
  #
7525
- # @param list [Array<String>]
7747
+ # @param list [Array<NetworkUsage>]
7526
7748
  def usages=(list)
7527
7749
  @usages = list
7528
7750
  end
@@ -7616,7 +7838,7 @@ module OvirtSDK4
7616
7838
  #
7617
7839
  # @option opts [Boolean] :stp The value of attribute `stp`.
7618
7840
  #
7619
- # @option opts [Array<String>, Array<Hash>] :usages The values of attribute `usages`.
7841
+ # @option opts [Array<NetworkUsage>, Array<Hash>] :usages The values of attribute `usages`.
7620
7842
  #
7621
7843
  # @option opts [Vlan, Hash] :vlan The value of attribute `vlan`.
7622
7844
  #
@@ -24336,6 +24558,31 @@ module OvirtSDK4
24336
24558
  @cpu_profiles = list
24337
24559
  end
24338
24560
 
24561
+ #
24562
+ # Returns the value of the `custom_scheduling_policy_properties` attribute.
24563
+ #
24564
+ # @return [Array<Property>]
24565
+ #
24566
+ def custom_scheduling_policy_properties
24567
+ return @custom_scheduling_policy_properties
24568
+ end
24569
+
24570
+ #
24571
+ # Sets the value of the `custom_scheduling_policy_properties` attribute.
24572
+ #
24573
+ # @param list [Array<Property>]
24574
+ def custom_scheduling_policy_properties=(list)
24575
+ if list.class == Array
24576
+ list = List.new(list)
24577
+ list.each_with_index do |value, index|
24578
+ if value.is_a?(Hash)
24579
+ list[index] = Property.new(value)
24580
+ end
24581
+ end
24582
+ end
24583
+ @custom_scheduling_policy_properties = list
24584
+ end
24585
+
24339
24586
  #
24340
24587
  # Returns the value of the `data_center` attribute.
24341
24588
  #
@@ -25036,6 +25283,8 @@ module OvirtSDK4
25036
25283
  #
25037
25284
  # @option opts [Array<CpuProfile>, Array<Hash>] :cpu_profiles The values of attribute `cpu_profiles`.
25038
25285
  #
25286
+ # @option opts [Array<Property>, Array<Hash>] :custom_scheduling_policy_properties The values of attribute `custom_scheduling_policy_properties`.
25287
+ #
25039
25288
  # @option opts [DataCenter, Hash] :data_center The value of attribute `data_center`.
25040
25289
  #
25041
25290
  # @option opts [String] :description The value of attribute `description`.
@@ -25106,6 +25355,7 @@ module OvirtSDK4
25106
25355
  self.comment = opts[:comment]
25107
25356
  self.cpu = opts[:cpu]
25108
25357
  self.cpu_profiles = opts[:cpu_profiles]
25358
+ self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties]
25109
25359
  self.data_center = opts[:data_center]
25110
25360
  self.description = opts[:description]
25111
25361
  self.display = opts[:display]
@@ -46168,6 +46418,20 @@ module OvirtSDK4
46168
46418
  RHEV_H = 'rhev_h'.freeze
46169
46419
  end
46170
46420
 
46421
+ module ImageTransferPhase
46422
+ CANCELLED = 'cancelled'.freeze
46423
+ FINALIZING_FAILURE = 'finalizing_failure'.freeze
46424
+ FINALIZING_SUCCESS = 'finalizing_success'.freeze
46425
+ FINISHED_FAILURE = 'finished_failure'.freeze
46426
+ FINISHED_SUCCESS = 'finished_success'.freeze
46427
+ INITIALIZING = 'initializing'.freeze
46428
+ PAUSED_SYSTEM = 'paused_system'.freeze
46429
+ PAUSED_USER = 'paused_user'.freeze
46430
+ RESUMING = 'resuming'.freeze
46431
+ TRANSFERRING = 'transferring'.freeze
46432
+ UNKNOWN = 'unknown'.freeze
46433
+ end
46434
+
46171
46435
  module InheritableBoolean
46172
46436
  FALSE = 'false_'.freeze
46173
46437
  INHERIT = 'inherit'.freeze
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.0.0'
19
+ VERSION = '4.0.1'
20
20
  end
@@ -749,6 +749,7 @@ module OvirtSDK4
749
749
  Writer.write_boolean(writer, 'ballooning_enabled', object.ballooning_enabled) unless object.ballooning_enabled.nil?
750
750
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
751
751
  CpuWriter.write_one(object.cpu, writer, 'cpu') unless object.cpu.nil?
752
+ PropertyWriter.write_many(object.custom_scheduling_policy_properties, writer, 'custom_scheduling_policy_property', 'custom_scheduling_policy_properties') unless object.custom_scheduling_policy_properties.nil?
752
753
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
753
754
  DisplayWriter.write_one(object.display, writer, 'display') unless object.display.nil?
754
755
  ErrorHandlingWriter.write_one(object.error_handling, writer, 'error_handling') unless object.error_handling.nil?
@@ -768,7 +769,6 @@ module OvirtSDK4
768
769
  end
769
770
  writer.end_element
770
771
  end
771
- SchedulingPolicyWriter.write_one(object.scheduling_policy, writer, 'scheduling_policy') unless object.scheduling_policy.nil?
772
772
  SerialNumberWriter.write_one(object.serial_number, writer, 'serial_number') unless object.serial_number.nil?
773
773
  VersionWriter.write_many(object.supported_versions, writer, 'supported_version', 'supported_versions') unless object.supported_versions.nil?
774
774
  Writer.write_string(writer, 'switch_type', object.switch_type) unless object.switch_type.nil?
@@ -787,6 +787,7 @@ module OvirtSDK4
787
787
  NetworkFilterWriter.write_many(object.network_filters, writer, 'network_filter', 'network_filters') unless object.network_filters.nil?
788
788
  NetworkWriter.write_many(object.networks, writer, 'network', 'networks') unless object.networks.nil?
789
789
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
790
+ SchedulingPolicyWriter.write_one(object.scheduling_policy, writer, 'scheduling_policy') unless object.scheduling_policy.nil?
790
791
  writer.write_end
791
792
  end
792
793
 
@@ -2977,6 +2978,41 @@ module OvirtSDK4
2977
2978
 
2978
2979
  end
2979
2980
 
2981
+ class ImageTransferWriter < Writer # :nodoc:
2982
+
2983
+ def self.write_one(object, writer, singular = nil)
2984
+ singular ||= 'image_transfer'
2985
+ writer.write_start(singular)
2986
+ href = object.href
2987
+ writer.write_attribute('href', href) unless href.nil?
2988
+ writer.write_attribute('id', object.id) unless object.id.nil?
2989
+ Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
2990
+ Writer.write_string(writer, 'description', object.description) unless object.description.nil?
2991
+ Writer.write_string(writer, 'name', object.name) unless object.name.nil?
2992
+ Writer.write_string(writer, 'phase', object.phase) unless object.phase.nil?
2993
+ Writer.write_string(writer, 'proxy_url', object.proxy_url) unless object.proxy_url.nil?
2994
+ Writer.write_string(writer, 'signed_ticket', object.signed_ticket) unless object.signed_ticket.nil?
2995
+ HostWriter.write_one(object.host, writer, 'host') unless object.host.nil?
2996
+ ImageWriter.write_one(object.image, writer, 'image') unless object.image.nil?
2997
+ writer.write_end
2998
+ end
2999
+
3000
+ def self.write_many(list, writer, singular = nil, plural = nil)
3001
+ singular ||= 'image_transfer'
3002
+ plural ||= 'image_transfers'
3003
+ writer.write_start(plural)
3004
+ if list.is_a?(List)
3005
+ href = list.href
3006
+ writer.write_attribute('href', href) unless href.nil?
3007
+ end
3008
+ list.each do |item|
3009
+ write_one(item, writer, singular)
3010
+ end
3011
+ writer.write_end
3012
+ end
3013
+
3014
+ end
3015
+
2980
3016
  class InitializationWriter < Writer # :nodoc:
2981
3017
 
2982
3018
  def self.write_one(object, writer, singular = nil)
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.0.0
4
+ version: 4.0.1
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-08-29 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -74,29 +74,30 @@ extensions:
74
74
  - ext/ovirtsdk4c/extconf.rb
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - .yardopts
77
78
  - CHANGES.adoc
78
79
  - LICENSE.txt
79
80
  - README.adoc
80
81
  - ext/ovirtsdk4c/extconf.rb
81
- - ext/ovirtsdk4c/ov_xml_reader.c
82
82
  - ext/ovirtsdk4c/ovirtsdk4c.c
83
- - ext/ovirtsdk4c/ov_module.c
84
83
  - ext/ovirtsdk4c/ov_xml_writer.c
84
+ - ext/ovirtsdk4c/ov_xml_reader.c
85
85
  - ext/ovirtsdk4c/ov_error.c
86
- - ext/ovirtsdk4c/ov_xml_reader.h
86
+ - ext/ovirtsdk4c/ov_module.c
87
87
  - ext/ovirtsdk4c/ov_error.h
88
88
  - ext/ovirtsdk4c/ov_module.h
89
+ - ext/ovirtsdk4c/ov_xml_reader.h
89
90
  - ext/ovirtsdk4c/ov_xml_writer.h
90
- - lib/ovirtsdk4/readers.rb
91
- - lib/ovirtsdk4/reader.rb
92
91
  - lib/ovirtsdk4/http.rb
93
92
  - lib/ovirtsdk4/writers.rb
94
- - lib/ovirtsdk4/writer.rb
95
- - lib/ovirtsdk4/services.rb
93
+ - lib/ovirtsdk4/readers.rb
96
94
  - lib/ovirtsdk4/version.rb
97
- - lib/ovirtsdk4/type.rb
98
95
  - lib/ovirtsdk4/service.rb
96
+ - lib/ovirtsdk4/writer.rb
97
+ - lib/ovirtsdk4/services.rb
99
98
  - lib/ovirtsdk4/types.rb
99
+ - lib/ovirtsdk4/reader.rb
100
+ - lib/ovirtsdk4/type.rb
100
101
  - lib/ovirtsdk4.rb
101
102
  homepage: http://ovirt.org
102
103
  licenses: