ovirt-engine-sdk 4.2.0.alpha4 → 4.2.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
@@ -916,6 +916,56 @@ module OvirtSDK4
916
916
 
917
917
  class Api < Struct
918
918
 
919
+ #
920
+ # Returns the value of the `authenticated_user` attribute.
921
+ #
922
+ # @return [User]
923
+ #
924
+ def authenticated_user
925
+ @authenticated_user
926
+ end
927
+
928
+ #
929
+ # Sets the value of the `authenticated_user` attribute.
930
+ #
931
+ # @param value [User, Hash]
932
+ #
933
+ # The `value` parameter can be an instance of {OvirtSDK4::User} or a hash.
934
+ # If it is a hash then a new instance will be created passing the hash as the
935
+ # `opts` parameter to the constructor.
936
+ #
937
+ def authenticated_user=(value)
938
+ if value.is_a?(Hash)
939
+ value = User.new(value)
940
+ end
941
+ @authenticated_user = value
942
+ end
943
+
944
+ #
945
+ # Returns the value of the `effective_user` attribute.
946
+ #
947
+ # @return [User]
948
+ #
949
+ def effective_user
950
+ @effective_user
951
+ end
952
+
953
+ #
954
+ # Sets the value of the `effective_user` attribute.
955
+ #
956
+ # @param value [User, Hash]
957
+ #
958
+ # The `value` parameter can be an instance of {OvirtSDK4::User} or a hash.
959
+ # If it is a hash then a new instance will be created passing the hash as the
960
+ # `opts` parameter to the constructor.
961
+ #
962
+ def effective_user=(value)
963
+ if value.is_a?(Hash)
964
+ value = User.new(value)
965
+ end
966
+ @effective_user = value
967
+ end
968
+
919
969
  #
920
970
  # Returns the value of the `product_info` attribute.
921
971
  #
@@ -1016,6 +1066,10 @@ module OvirtSDK4
1016
1066
  # should be symbols corresponding to the names of the attributes. The values of the hash
1017
1067
  # should be the values of the attributes.
1018
1068
  #
1069
+ # @option opts [User, Hash] :authenticated_user The value of attribute `authenticated_user`.
1070
+ #
1071
+ # @option opts [User, Hash] :effective_user The value of attribute `effective_user`.
1072
+ #
1019
1073
  # @option opts [ProductInfo, Hash] :product_info The value of attribute `product_info`.
1020
1074
  #
1021
1075
  # @option opts [SpecialObjects, Hash] :special_objects The value of attribute `special_objects`.
@@ -1027,6 +1081,8 @@ module OvirtSDK4
1027
1081
  #
1028
1082
  def initialize(opts = {})
1029
1083
  super(opts)
1084
+ self.authenticated_user = opts[:authenticated_user]
1085
+ self.effective_user = opts[:effective_user]
1030
1086
  self.product_info = opts[:product_info]
1031
1087
  self.special_objects = opts[:special_objects]
1032
1088
  self.summary = opts[:summary]
@@ -1038,6 +1094,8 @@ module OvirtSDK4
1038
1094
  #
1039
1095
  def ==(other)
1040
1096
  super &&
1097
+ @authenticated_user == other.authenticated_user &&
1098
+ @effective_user == other.effective_user &&
1041
1099
  @product_info == other.product_info &&
1042
1100
  @special_objects == other.special_objects &&
1043
1101
  @summary == other.summary &&
@@ -1049,6 +1107,8 @@ module OvirtSDK4
1049
1107
  #
1050
1108
  def hash
1051
1109
  super +
1110
+ @authenticated_user.hash +
1111
+ @effective_user.hash +
1052
1112
  @product_info.hash +
1053
1113
  @special_objects.hash +
1054
1114
  @summary.hash +
@@ -27142,6 +27202,31 @@ module OvirtSDK4
27142
27202
  @disk = value
27143
27203
  end
27144
27204
 
27205
+ #
27206
+ # Returns the value of the `disk_profile` attribute.
27207
+ #
27208
+ # @return [DiskProfile]
27209
+ #
27210
+ def disk_profile
27211
+ @disk_profile
27212
+ end
27213
+
27214
+ #
27215
+ # Sets the value of the `disk_profile` attribute.
27216
+ #
27217
+ # @param value [DiskProfile, Hash]
27218
+ #
27219
+ # The `value` parameter can be an instance of {OvirtSDK4::DiskProfile} or a hash.
27220
+ # If it is a hash then a new instance will be created passing the hash as the
27221
+ # `opts` parameter to the constructor.
27222
+ #
27223
+ def disk_profile=(value)
27224
+ if value.is_a?(Hash)
27225
+ value = DiskProfile.new(value)
27226
+ end
27227
+ @disk_profile = value
27228
+ end
27229
+
27145
27230
  #
27146
27231
  # Returns the value of the `disks` attribute.
27147
27232
  #
@@ -27756,6 +27841,31 @@ module OvirtSDK4
27756
27841
  @proxy_ticket = value
27757
27842
  end
27758
27843
 
27844
+ #
27845
+ # Returns the value of the `quota` attribute.
27846
+ #
27847
+ # @return [Quota]
27848
+ #
27849
+ def quota
27850
+ @quota
27851
+ end
27852
+
27853
+ #
27854
+ # Sets the value of the `quota` attribute.
27855
+ #
27856
+ # @param value [Quota, Hash]
27857
+ #
27858
+ # The `value` parameter can be an instance of {OvirtSDK4::Quota} or a hash.
27859
+ # If it is a hash then a new instance will be created passing the hash as the
27860
+ # `opts` parameter to the constructor.
27861
+ #
27862
+ def quota=(value)
27863
+ if value.is_a?(Hash)
27864
+ value = Quota.new(value)
27865
+ end
27866
+ @quota = value
27867
+ end
27868
+
27759
27869
  #
27760
27870
  # Returns the value of the `reason` attribute.
27761
27871
  #
@@ -28411,6 +28521,8 @@ module OvirtSDK4
28411
28521
  #
28412
28522
  # @option opts [Disk, Hash] :disk The value of attribute `disk`.
28413
28523
  #
28524
+ # @option opts [DiskProfile, Hash] :disk_profile The value of attribute `disk_profile`.
28525
+ #
28414
28526
  # @option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
28415
28527
  #
28416
28528
  # @option opts [Boolean] :exclusive The value of attribute `exclusive`.
@@ -28467,6 +28579,8 @@ module OvirtSDK4
28467
28579
  #
28468
28580
  # @option opts [ProxyTicket, Hash] :proxy_ticket The value of attribute `proxy_ticket`.
28469
28581
  #
28582
+ # @option opts [Quota, Hash] :quota The value of attribute `quota`.
28583
+ #
28470
28584
  # @option opts [String] :reason The value of attribute `reason`.
28471
28585
  #
28472
28586
  # @option opts [Boolean] :reassign_bad_macs The value of attribute `reassign_bad_macs`.
@@ -28544,6 +28658,7 @@ module OvirtSDK4
28544
28658
  self.details = opts[:details]
28545
28659
  self.discard_snapshots = opts[:discard_snapshots]
28546
28660
  self.disk = opts[:disk]
28661
+ self.disk_profile = opts[:disk_profile]
28547
28662
  self.disks = opts[:disks]
28548
28663
  self.exclusive = opts[:exclusive]
28549
28664
  self.fault = opts[:fault]
@@ -28570,6 +28685,7 @@ module OvirtSDK4
28570
28685
  self.permission = opts[:permission]
28571
28686
  self.power_management = opts[:power_management]
28572
28687
  self.proxy_ticket = opts[:proxy_ticket]
28688
+ self.quota = opts[:quota]
28573
28689
  self.reason = opts[:reason]
28574
28690
  self.reassign_bad_macs = opts[:reassign_bad_macs]
28575
28691
  self.reboot = opts[:reboot]
@@ -28623,6 +28739,7 @@ module OvirtSDK4
28623
28739
  @details == other.details &&
28624
28740
  @discard_snapshots == other.discard_snapshots &&
28625
28741
  @disk == other.disk &&
28742
+ @disk_profile == other.disk_profile &&
28626
28743
  @disks == other.disks &&
28627
28744
  @exclusive == other.exclusive &&
28628
28745
  @fault == other.fault &&
@@ -28649,6 +28766,7 @@ module OvirtSDK4
28649
28766
  @permission == other.permission &&
28650
28767
  @power_management == other.power_management &&
28651
28768
  @proxy_ticket == other.proxy_ticket &&
28769
+ @quota == other.quota &&
28652
28770
  @reason == other.reason &&
28653
28771
  @reassign_bad_macs == other.reassign_bad_macs &&
28654
28772
  @reboot == other.reboot &&
@@ -28702,6 +28820,7 @@ module OvirtSDK4
28702
28820
  @details.hash +
28703
28821
  @discard_snapshots.hash +
28704
28822
  @disk.hash +
28823
+ @disk_profile.hash +
28705
28824
  @disks.hash +
28706
28825
  @exclusive.hash +
28707
28826
  @fault.hash +
@@ -28728,6 +28847,7 @@ module OvirtSDK4
28728
28847
  @permission.hash +
28729
28848
  @power_management.hash +
28730
28849
  @proxy_ticket.hash +
28850
+ @quota.hash +
28731
28851
  @reason.hash +
28732
28852
  @reassign_bad_macs.hash +
28733
28853
  @reboot.hash +
@@ -51902,6 +52022,24 @@ module OvirtSDK4
51902
52022
  @description = value
51903
52023
  end
51904
52024
 
52025
+ #
52026
+ # Returns the value of the `external_plugin_type` attribute.
52027
+ #
52028
+ # @return [String]
52029
+ #
52030
+ def external_plugin_type
52031
+ @external_plugin_type
52032
+ end
52033
+
52034
+ #
52035
+ # Sets the value of the `external_plugin_type` attribute.
52036
+ #
52037
+ # @param value [String]
52038
+ #
52039
+ def external_plugin_type=(value)
52040
+ @external_plugin_type = value
52041
+ end
52042
+
51905
52043
  #
51906
52044
  # Returns the value of the `id` attribute.
51907
52045
  #
@@ -52177,6 +52315,8 @@ module OvirtSDK4
52177
52315
  #
52178
52316
  # @option opts [String] :description The value of attribute `description`.
52179
52317
  #
52318
+ # @option opts [String] :external_plugin_type The value of attribute `external_plugin_type`.
52319
+ #
52180
52320
  # @option opts [String] :id The value of attribute `id`.
52181
52321
  #
52182
52322
  # @option opts [String] :name The value of attribute `name`.
@@ -52208,6 +52348,7 @@ module OvirtSDK4
52208
52348
  super(opts)
52209
52349
  self.agent_configuration = opts[:agent_configuration]
52210
52350
  self.certificates = opts[:certificates]
52351
+ self.external_plugin_type = opts[:external_plugin_type]
52211
52352
  self.networks = opts[:networks]
52212
52353
  self.plugin_type = opts[:plugin_type]
52213
52354
  self.read_only = opts[:read_only]
@@ -52222,6 +52363,7 @@ module OvirtSDK4
52222
52363
  super &&
52223
52364
  @agent_configuration == other.agent_configuration &&
52224
52365
  @certificates == other.certificates &&
52366
+ @external_plugin_type == other.external_plugin_type &&
52225
52367
  @networks == other.networks &&
52226
52368
  @plugin_type == other.plugin_type &&
52227
52369
  @read_only == other.read_only &&
@@ -52236,6 +52378,7 @@ module OvirtSDK4
52236
52378
  super +
52237
52379
  @agent_configuration.hash +
52238
52380
  @certificates.hash +
52381
+ @external_plugin_type.hash +
52239
52382
  @networks.hash +
52240
52383
  @plugin_type.hash +
52241
52384
  @read_only.hash +
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.2.0.alpha4'.freeze
19
+ VERSION = '4.2.0.alpha5'.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_boolean(writer, 'discard_snapshots', object.discard_snapshots) unless object.discard_snapshots.nil?
47
47
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
48
+ DiskProfileWriter.write_one(object.disk_profile, writer, 'disk_profile') unless object.disk_profile.nil?
48
49
  DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
49
50
  Writer.write_boolean(writer, 'exclusive', object.exclusive) unless object.exclusive.nil?
50
51
  FaultWriter.write_one(object.fault, writer, 'fault') unless object.fault.nil?
@@ -78,6 +79,7 @@ module OvirtSDK4
78
79
  PermissionWriter.write_one(object.permission, writer, 'permission') unless object.permission.nil?
79
80
  PowerManagementWriter.write_one(object.power_management, writer, 'power_management') unless object.power_management.nil?
80
81
  ProxyTicketWriter.write_one(object.proxy_ticket, writer, 'proxy_ticket') unless object.proxy_ticket.nil?
82
+ QuotaWriter.write_one(object.quota, writer, 'quota') unless object.quota.nil?
81
83
  Writer.write_string(writer, 'reason', object.reason) unless object.reason.nil?
82
84
  Writer.write_boolean(writer, 'reassign_bad_macs', object.reassign_bad_macs) unless object.reassign_bad_macs.nil?
83
85
  Writer.write_boolean(writer, 'reboot', object.reboot) unless object.reboot.nil?
@@ -307,6 +309,8 @@ module OvirtSDK4
307
309
  SpecialObjectsWriter.write_one(object.special_objects, writer, 'special_objects') unless object.special_objects.nil?
308
310
  ApiSummaryWriter.write_one(object.summary, writer, 'summary') unless object.summary.nil?
309
311
  Writer.write_date(writer, 'time', object.time) unless object.time.nil?
312
+ UserWriter.write_one(object.authenticated_user, writer, 'authenticated_user') unless object.authenticated_user.nil?
313
+ UserWriter.write_one(object.effective_user, writer, 'effective_user') unless object.effective_user.nil?
310
314
  writer.write_end
311
315
  end
312
316
 
@@ -4411,6 +4415,7 @@ module OvirtSDK4
4411
4415
  Writer.write_string(writer, 'authentication_url', object.authentication_url) unless object.authentication_url.nil?
4412
4416
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
4413
4417
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
4418
+ Writer.write_string(writer, 'external_plugin_type', object.external_plugin_type) unless object.external_plugin_type.nil?
4414
4419
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
4415
4420
  Writer.write_string(writer, 'password', object.password) unless object.password.nil?
4416
4421
  Writer.write_string(writer, 'plugin_type', object.plugin_type) unless object.plugin_type.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.2.0.alpha4
4
+ version: 4.2.0.alpha5
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-10-23 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake