Skip to content

Commit 7a52596

Browse files
committed
Add _at to date/time attributes to distinguish them as datetime as opposed to boolean and cleanup fqdn naming to shorten it
v4-cleanup-required
1 parent 3248688 commit 7a52596

13 files changed

Lines changed: 110 additions & 12 deletions

lib/softlayer/NetworkMessageDelivery.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ module SoftLayer
1616
class NetworkMessageDelivery < ModelBase
1717
include ::SoftLayer::DynamicAttribute
1818

19+
##
20+
# :attr_reader: created_at
21+
# The date this username/password pair was created.
22+
sl_attr :created_at, 'createDate'
23+
1924
##
2025
# :attr_reader: created
2126
# The date this username/password pair was created.
27+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
28+
# and will be removed in the next major release.
2229
sl_attr :created, 'createDate'
2330

31+
##
32+
# :attr_reader: modified_at
33+
# The date of the last modification to this username/password pair.
34+
sl_attr :modified_at, 'modifyDate'
35+
2436
##
2537
# :attr_reader: modified
2638
# The date of the last modification to this username/password pair.
39+
# DEPRECATION WARNING: This attribute is deprecated in favor of modified_at
40+
# and will be removed in the next major release.
2741
sl_attr :modified, 'modifyDate'
2842

2943
##

lib/softlayer/NetworkStorage.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ class NetworkStorage < ModelBase
2020
# A Storage account's capacity, measured in gigabytes.
2121
sl_attr :capacity, 'capacityGb'
2222

23+
##
24+
# :attr_reader: created_at
25+
# The date a network storage volume was created.
26+
sl_attr :created_at, 'createDate'
27+
2328
##
2429
# :attr_reader: created
2530
# The date a network storage volume was created.
31+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
32+
# and will be removed in the next major release.
2633
sl_attr :created, 'createDate'
2734

2835
##

lib/softlayer/NetworkStorageCredential.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ module SoftLayer
1616
class NetworkStorageCredential < ModelBase
1717
include ::SoftLayer::DynamicAttribute
1818

19+
##
20+
# :attr_reader: created_at
21+
# This is the data that the record was created in the table.
22+
sl_attr :created_at, 'createDate'
23+
1924
##
2025
# :attr_reader: created
2126
# This is the data that the record was created in the table.
27+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
28+
# and will be removed in the next major release.
2229
sl_attr :created, 'createDate'
2330

31+
##
32+
# :attr_reader: modified_at
33+
# This is the date that the record was last updated in the table.
34+
sl_attr :modified_at, 'modifyDate'
35+
2436
##
2537
# :attr_reader: modified
2638
# This is the date that the record was last updated in the table.
39+
# DEPRECATION WARNING: This attribute is deprecated in favor of modified_at
40+
# and will be removed in the next major release.
2741
sl_attr :modified, 'modifyDate'
2842

2943
##

lib/softlayer/NetworkStorageGroup.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,28 @@ class NetworkStorageGroup < ModelBase
1414
# The friendly name of this group
1515
sl_attr :alias
1616

17+
##
18+
# :attr_reader: created_at
19+
# The date this group was created.
20+
sl_attr :created_at, 'createDate'
21+
1722
##
1823
# :attr_reader: created
1924
# The date this group was created.
25+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
26+
# and will be removed in the next major release.
2027
sl_attr :created, 'createDate'
2128

29+
##
30+
# :attr_reader: modified_at
31+
# The date this group was modified.
32+
sl_attr :modified_at, 'modifyDate'
33+
2234
##
2335
# :attr_reader: modified
2436
# The date this group was modified.
37+
# DEPRECATION WARNING: This attribute is deprecated in favor of modified_at
38+
# and will be removed in the next major release.
2539
sl_attr :modified, 'modifyDate'
2640

2741
##

lib/softlayer/Server.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ class Server < SoftLayer::ModelBase
2929
sl_attr :domain
3030

3131
##
32-
# :attr_reader: fully_qualified_domain_name
32+
# :attr_reader: fqdn
3333
# A convenience attribute that combines the hostname and domain name
34-
sl_attr :fully_qualified_domain_name, 'fullyQualifiedDomainName'
34+
sl_attr :fqdn, 'fullyQualifiedDomainName'
3535

3636
##
3737
# :attr_reader:
3838
# A convenience attribute that combines the hostname and domain name
3939
#
40-
# DEPRECATION WARNING: This attribute is deprecated in favor of fully_qualified_domain_name
40+
# DEPRECATION WARNING: This attribute is deprecated in favor of fqdn
4141
# and will be removed in the next major release.
4242
sl_attr :fullyQualifiedDomainName
4343

lib/softlayer/ServerFirewall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module SoftLayer
1515
# Instances of this class roughly correspond to instances of the
1616
# SoftLayer_Network_Component_Firewall service entity.
1717
#
18-
class ServerFirewall < SoftLayer::ModelBase
18+
class ServerFirewall < SoftLayer::ModelBase
1919
include ::SoftLayer::DynamicAttribute
2020

2121
##

lib/softlayer/SoftwarePassword.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,29 @@ module SoftLayer
1414
#
1515
class SoftwarePassword < ModelBase
1616
include ::SoftLayer::DynamicAttribute
17+
18+
##
19+
# :attr_reader: created_at
20+
# The date this username/password pair was created.
21+
sl_attr :created_at, 'createDate'
1722

1823
##
1924
# :attr_reader: created
2025
# The date this username/password pair was created.
26+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
27+
# and will be removed in the next major release.
2128
sl_attr :created, 'createDate'
2229

30+
##
31+
# :attr_reader: modified_at
32+
# The date of the last modification to this username/password pair.
33+
sl_attr :modified_at, 'modifyDate'
34+
2335
##
2436
# :attr_reader: modified
2537
# The date of the last modification to this username/password pair.
38+
# DEPRECATION WARNING: This attribute is deprecated in favor of modified_at
39+
# and will be removed in the next major release.
2640
sl_attr :modified, 'modifyDate'
2741

2842
##

lib/softlayer/Ticket.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class Ticket < SoftLayer::ModelBase
1818
sl_attr :subject
1919

2020
##
21-
# :attr_reader: last_edited
21+
# :attr_reader: last_edited_at
2222
# The date the ticket was last updated.
23-
sl_attr :last_edited, 'lastEditDate'
23+
sl_attr :last_edited_at, 'lastEditDate'
2424

2525
##
2626
# :attr_reader:
2727
# The date the ticket was last updated.
2828
#
29-
# DEPRECATION WARNING: This attribute is deprecated in favor of last_edited
29+
# DEPRECATION WARNING: This attribute is deprecated in favor of last_edited_at
3030
# and will be removed in the next major release.
3131
sl_attr :lastEditDate
3232

lib/softlayer/UserCustomer.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ class UserCustomer < ModelBase
2020
# A portal user's secondary phone number.
2121
sl_attr :alternate_phone, 'alternatePhone'
2222

23+
##
24+
# :attr_reader: created_at
25+
# The date a portal user's record was created.
26+
sl_attr :created_at, 'createDate'
27+
2328
##
2429
# :attr_reader: created
2530
# The date a portal user's record was created.
31+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
32+
# and will be removed in the next major release.
2633
sl_attr :created, 'createDate'
2734

2835
##
@@ -45,9 +52,16 @@ class UserCustomer < ModelBase
4552
# A portal user's last name.
4653
sl_attr :last_name, 'lastName'
4754

55+
##
56+
# :attr_reader: modified_at
57+
# The date a portal user's record was last modified.
58+
sl_attr :modified_at, 'modifyDate'
59+
4860
##
4961
# :attr_reader: modified
5062
# The date a portal user's record was last modified.
63+
# DEPRECATION WARNING: This attribute is deprecated in favor of modified_at
64+
# and will be removed in the next major release.
5165
sl_attr :modified, 'modifyDate'
5266

5367
##

lib/softlayer/UserCustomerExternalBinding.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,16 @@ class UserCustomerExternalBinding < ModelBase
2121
# used for authentication or not.
2222
sl_attr :active
2323

24+
##
25+
# :attr_reader: created_at
26+
# The date that the external authentication binding was created.
27+
sl_attr :created_at, 'createDate'
28+
2429
##
2530
# :attr_reader: created
2631
# The date that the external authentication binding was created.
32+
# DEPRECATION WARNING: This attribute is deprecated in favor of created_at
33+
# and will be removed in the next major release.
2734
sl_attr :created, 'createDate'
2835

2936
##

0 commit comments

Comments
 (0)