fastly 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/docs/{BillingEstimateResponseAllOfLines.md → BillingEstimateLines.md} +2 -2
  6. data/docs/{BillingEstimateResponseAllOfLine.md → BillingEstimateLinesLineItems.md} +1 -1
  7. data/docs/BillingEstimateResponse.md +1 -1
  8. data/docs/{BillingResponseAllOf.md → BillingResponseItemItemsData.md} +1 -1
  9. data/docs/BillingResponseLineItem.md +1 -1
  10. data/docs/BillingStatus.md +1 -1
  11. data/docs/{BillingResponseLineItemAllOf.md → LineItemData.md} +2 -2
  12. data/docs/{BillingEstimateResponseAllOf.md → LineItemDataReadOnlyInvoiceId.md} +1 -2
  13. data/docs/SchemasUserResponseReadOnly.md +12 -0
  14. data/docs/{UserResponseAllOf.md → UserResponseReadOnly.md} +1 -1
  15. data/lib/fastly/models/{billing_response_all_of.rb → billing_estimate_lines.rb} +4 -4
  16. data/lib/fastly/models/{billing_estimate_response_all_of_line.rb → billing_estimate_lines_line_items.rb} +3 -3
  17. data/lib/fastly/models/billing_estimate_response.rb +9 -9
  18. data/lib/fastly/models/billing_response.rb +1 -1
  19. data/lib/fastly/models/{billing_estimate_response_all_of.rb → billing_response_item_items_data.rb} +11 -11
  20. data/lib/fastly/models/billing_response_line_item.rb +2 -2
  21. data/lib/fastly/models/billing_status.rb +2 -0
  22. data/lib/fastly/models/{billing_response_line_item_all_of.rb → line_item_data.rb} +4 -4
  23. data/lib/fastly/models/{billing_estimate_response_all_of_lines.rb → line_item_data_read_only_invoice_id.rb} +5 -14
  24. data/lib/fastly/models/schemas_user_response.rb +5 -2
  25. data/lib/fastly/models/schemas_user_response_read_only.rb +235 -0
  26. data/lib/fastly/models/user.rb +3 -0
  27. data/lib/fastly/models/user_response.rb +4 -1
  28. data/lib/fastly/models/{user_response_all_of.rb → user_response_read_only.rb} +3 -3
  29. data/lib/fastly/version.rb +1 -1
  30. data/lib/fastly.rb +7 -6
  31. data/sig.json +1 -1
  32. metadata +16 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b628d34438f04b5afdaaa2dab7aadaf17d7a7ec1c8a593574a1dfb37d7d4b995
4
- data.tar.gz: a2c0655003c10321b21d5306b9c94721053d60f021e607400acd733d3ceb0fc8
3
+ metadata.gz: 3a4f45fab1a06cfd7db2ec2f7705f35a66c1fa174f1da9a72c5b07e656b1e0d2
4
+ data.tar.gz: 49a176bd63b0138a8f143d01c536a102090d83b0fac9710d9d6c9e02e59848e8
5
5
  SHA512:
6
- metadata.gz: 8bae112c1e1ba5dbf5d0d95d06467d8158a9cece15bc5595ef6457b64aeb19a279e55f22da4bf4f13be99a773257d7f4226bf7ea9b0595ccd1dce2a708fb9386
7
- data.tar.gz: 2c2a9815ff7ea446fc9c3a9b211358478436df80b73f18dea49e9cad91e5a7e6474e867694df64bda288aa35401807d93a4c9c3ee51bf447911ca075c27e3244
6
+ metadata.gz: bb6cd9d12dbc31c8e566be3c4a6e3f9025e8f171e8e4db3e564d6808d2e2f6d7d4cea744c36090add68cc2dd317b34fe8ae48c735b2e6c307a5d6811ea556273
7
+ data.tar.gz: bd560421c31c30fd1ec777b0b4388e5756cc7de4ab22e711d8dd896c4a86a5d4da4f90163eb167867e5713e0d1f66885835ffb7f9142908896f3f1bf1e2489d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v6.0.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v6.0.1) (2023-07-12)
4
+
5
+ **Bug fixes:**
6
+
7
+ - fix(billing): rename response field 'lines' to 'line_items'.
8
+ - fix(billing): restructure response models like 'aria_invoice_id'.
9
+ - fix(billing): make 'sent_at', 'locked', 'require_new_password', 'two_factor_auth_enabled' nullable.
10
+
3
11
  ## [v6.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v6.0.0) (2023-07-06)
4
12
 
5
13
  Substantial changes were made to the underlying OpenAPI specification that produces this API client. These changes have resulted in multiple new endpoints being supported as well as multiple breaking type changes and so we're publishing these changes as a new major release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (6.0.0)
4
+ fastly (6.0.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
8
8
  To install via RubyGems, add the following to your project's `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem 'fastly', '~> 6.0.0'
11
+ gem 'fastly', '~> 6.0.1'
12
12
  ```
13
13
 
14
14
  Then run `bundle install`.
@@ -1,10 +1,10 @@
1
- # Fastly::BillingEstimateResponseAllOfLines
1
+ # Fastly::BillingEstimateLines
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **line** | [**BillingEstimateResponseAllOfLine**](BillingEstimateResponseAllOfLine.md) | | [optional] |
7
+ | **line_items** | [**Array<BillingEstimateLinesLineItems>**](BillingEstimateLinesLineItems.md) | | [optional] |
8
8
 
9
9
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
10
 
@@ -1,4 +1,4 @@
1
- # Fastly::BillingEstimateResponseAllOfLine
1
+ # Fastly::BillingEstimateLinesLineItems
2
2
 
3
3
  ## Properties
4
4
 
@@ -12,7 +12,7 @@
12
12
  | **status** | [**BillingStatus**](BillingStatus.md) | | [optional] |
13
13
  | **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
14
14
  | **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
15
- | **lines** | [**Array<BillingEstimateResponseAllOfLines>**](BillingEstimateResponseAllOfLines.md) | | [optional] |
15
+ | **line_items** | [**Array<BillingEstimateLinesLineItems>**](BillingEstimateLinesLineItems.md) | | [optional] |
16
16
 
17
17
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
18
18
 
@@ -1,4 +1,4 @@
1
- # Fastly::BillingResponseAllOf
1
+ # Fastly::BillingResponseItemItemsData
2
2
 
3
3
  ## Properties
4
4
 
@@ -8,7 +8,7 @@
8
8
  | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
9
9
  | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
10
10
  | **amount** | **Float** | | [optional] |
11
- | **aria_invoice_id** | **String** | | [optional][readonly] |
11
+ | **aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional] |
12
12
  | **client_service_id** | **String** | | [optional] |
13
13
  | **credit_coupon_code** | **String** | | [optional] |
14
14
  | **description** | **String** | | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **status** | **String** | What the current status of this invoice can be. | [optional] |
8
- | **sent_at** | **Time** | | [optional] |
8
+ | **sent_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
9
9
 
10
10
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
11
 
@@ -1,11 +1,11 @@
1
- # Fastly::BillingResponseLineItemAllOf
1
+ # Fastly::LineItemData
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **amount** | **Float** | | [optional] |
8
- | **aria_invoice_id** | **String** | | [optional][readonly] |
8
+ | **aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional] |
9
9
  | **client_service_id** | **String** | | [optional] |
10
10
  | **credit_coupon_code** | **String** | | [optional] |
11
11
  | **description** | **String** | | [optional] |
@@ -1,10 +1,9 @@
1
- # Fastly::BillingEstimateResponseAllOf
1
+ # Fastly::LineItemDataReadOnlyInvoiceId
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **lines** | [**Array<BillingEstimateResponseAllOfLines>**](BillingEstimateResponseAllOfLines.md) | | [optional] |
8
7
 
9
8
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
9
 
@@ -0,0 +1,12 @@
1
+ # Fastly::SchemasUserResponseReadOnly
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional][readonly] |
8
+ | **email_hash** | **String** | The alphanumeric string identifying a email login. | [optional][readonly] |
9
+ | **customer_id** | **String** | | [optional][readonly] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -1,4 +1,4 @@
1
- # Fastly::UserResponseAllOf
1
+ # Fastly::UserResponseReadOnly
2
2
 
3
3
  ## Properties
4
4
 
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class BillingResponseAllOf
15
+ class BillingEstimateLines
16
16
  attr_accessor :line_items
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Attribute type mapping.
31
31
  def self.fastly_types
32
32
  {
33
- :'line_items' => :'Array<BillingResponseLineItem>'
33
+ :'line_items' => :'Array<BillingEstimateLinesLineItems>'
34
34
  }
35
35
  end
36
36
 
@@ -44,13 +44,13 @@ module Fastly
44
44
  # @param [Hash] attributes Model attributes in the form of hash
45
45
  def initialize(attributes = {})
46
46
  if (!attributes.is_a?(Hash))
47
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingResponseAllOf` initialize method"
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingEstimateLines` initialize method"
48
48
  end
49
49
 
50
50
  # check to see if the attribute exists and convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h|
52
52
  if (!self.class.attribute_map.key?(k.to_sym))
53
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingEstimateLines`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
54
  end
55
55
  h[k.to_sym] = v
56
56
  }
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class BillingEstimateResponseAllOfLine
15
+ class BillingEstimateLinesLineItems
16
16
  attr_accessor :plan_no
17
17
 
18
18
  attr_accessor :description
@@ -76,13 +76,13 @@ module Fastly
76
76
  # @param [Hash] attributes Model attributes in the form of hash
77
77
  def initialize(attributes = {})
78
78
  if (!attributes.is_a?(Hash))
79
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingEstimateResponseAllOfLine` initialize method"
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingEstimateLinesLineItems` initialize method"
80
80
  end
81
81
 
82
82
  # check to see if the attribute exists and convert string to symbol for hash key
83
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
84
84
  if (!self.class.attribute_map.key?(k.to_sym))
85
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingEstimateResponseAllOfLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingEstimateLinesLineItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
86
  end
87
87
  h[k.to_sym] = v
88
88
  }
@@ -33,7 +33,7 @@ module Fastly
33
33
  # Breakdown of regional data for products that are region based.
34
34
  attr_accessor :regions
35
35
 
36
- attr_accessor :lines
36
+ attr_accessor :line_items
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
@@ -46,7 +46,7 @@ module Fastly
46
46
  :'status' => :'status',
47
47
  :'total' => :'total',
48
48
  :'regions' => :'regions',
49
- :'lines' => :'lines'
49
+ :'line_items' => :'line_items'
50
50
  }
51
51
  end
52
52
 
@@ -66,7 +66,7 @@ module Fastly
66
66
  :'status' => :'BillingStatus',
67
67
  :'total' => :'BillingTotal',
68
68
  :'regions' => :'Hash<String, Hash<String, Object>>',
69
- :'lines' => :'Array<BillingEstimateResponseAllOfLines>'
69
+ :'line_items' => :'Array<BillingEstimateLinesLineItems>'
70
70
  }
71
71
  end
72
72
 
@@ -82,7 +82,7 @@ module Fastly
82
82
  def self.fastly_all_of
83
83
  [
84
84
  :'Billing',
85
- :'BillingEstimateResponseAllOf'
85
+ :'BillingEstimateLines'
86
86
  ]
87
87
  end
88
88
 
@@ -135,9 +135,9 @@ module Fastly
135
135
  end
136
136
  end
137
137
 
138
- if attributes.key?(:'lines')
139
- if (value = attributes[:'lines']).is_a?(Array)
140
- self.lines = value
138
+ if attributes.key?(:'line_items')
139
+ if (value = attributes[:'line_items']).is_a?(Array)
140
+ self.line_items = value
141
141
  end
142
142
  end
143
143
  end
@@ -168,7 +168,7 @@ module Fastly
168
168
  status == o.status &&
169
169
  total == o.total &&
170
170
  regions == o.regions &&
171
- lines == o.lines
171
+ line_items == o.line_items
172
172
  end
173
173
 
174
174
  # @see the `==` method
@@ -180,7 +180,7 @@ module Fastly
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions, lines].hash
183
+ [end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions, line_items].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -82,7 +82,7 @@ module Fastly
82
82
  def self.fastly_all_of
83
83
  [
84
84
  :'Billing',
85
- :'BillingResponseAllOf'
85
+ :'BillingResponseItemItemsData'
86
86
  ]
87
87
  end
88
88
 
@@ -12,13 +12,13 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class BillingEstimateResponseAllOf
16
- attr_accessor :lines
15
+ class BillingResponseItemItemsData
16
+ attr_accessor :line_items
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
19
19
  def self.attribute_map
20
20
  {
21
- :'lines' => :'lines'
21
+ :'line_items' => :'line_items'
22
22
  }
23
23
  end
24
24
 
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Attribute type mapping.
31
31
  def self.fastly_types
32
32
  {
33
- :'lines' => :'Array<BillingEstimateResponseAllOfLines>'
33
+ :'line_items' => :'Array<BillingResponseLineItem>'
34
34
  }
35
35
  end
36
36
 
@@ -44,20 +44,20 @@ module Fastly
44
44
  # @param [Hash] attributes Model attributes in the form of hash
45
45
  def initialize(attributes = {})
46
46
  if (!attributes.is_a?(Hash))
47
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingEstimateResponseAllOf` initialize method"
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingResponseItemItemsData` initialize method"
48
48
  end
49
49
 
50
50
  # check to see if the attribute exists and convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h|
52
52
  if (!self.class.attribute_map.key?(k.to_sym))
53
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingEstimateResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingResponseItemItemsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
54
  end
55
55
  h[k.to_sym] = v
56
56
  }
57
57
 
58
- if attributes.key?(:'lines')
59
- if (value = attributes[:'lines']).is_a?(Array)
60
- self.lines = value
58
+ if attributes.key?(:'line_items')
59
+ if (value = attributes[:'line_items']).is_a?(Array)
60
+ self.line_items = value
61
61
  end
62
62
  end
63
63
  end
@@ -80,7 +80,7 @@ module Fastly
80
80
  def ==(o)
81
81
  return true if self.equal?(o)
82
82
  self.class == o.class &&
83
- lines == o.lines
83
+ line_items == o.line_items
84
84
  end
85
85
 
86
86
  # @see the `==` method
@@ -92,7 +92,7 @@ module Fastly
92
92
  # Calculates hash code according to all attributes.
93
93
  # @return [Integer] Hash code
94
94
  def hash
95
- [lines].hash
95
+ [line_items].hash
96
96
  end
97
97
 
98
98
  # Builds the object from hash
@@ -94,7 +94,7 @@ module Fastly
94
94
  :'deleted_at' => :'Time',
95
95
  :'updated_at' => :'Time',
96
96
  :'amount' => :'Float',
97
- :'aria_invoice_id' => :'String',
97
+ :'aria_invoice_id' => :'LineItemDataReadOnlyInvoiceId',
98
98
  :'client_service_id' => :'String',
99
99
  :'credit_coupon_code' => :'String',
100
100
  :'description' => :'String',
@@ -130,7 +130,7 @@ module Fastly
130
130
  # List of class defined in allOf (OpenAPI v3)
131
131
  def self.fastly_all_of
132
132
  [
133
- :'BillingResponseLineItemAllOf',
133
+ :'LineItemData',
134
134
  :'Timestamps'
135
135
  ]
136
136
  end
@@ -16,6 +16,7 @@ module Fastly
16
16
  # What the current status of this invoice can be.
17
17
  attr_accessor :status
18
18
 
19
+ # Date and time in ISO 8601 format.
19
20
  attr_accessor :sent_at
20
21
 
21
22
  class EnumAttributeValidator
@@ -64,6 +65,7 @@ module Fastly
64
65
  # List of attributes with nullable: true
65
66
  def self.fastly_nullable
66
67
  Set.new([
68
+ :'sent_at'
67
69
  ])
68
70
  end
69
71
 
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class BillingResponseLineItemAllOf
15
+ class LineItemData
16
16
  attr_accessor :amount
17
17
 
18
18
  attr_accessor :aria_invoice_id
@@ -79,7 +79,7 @@ module Fastly
79
79
  def self.fastly_types
80
80
  {
81
81
  :'amount' => :'Float',
82
- :'aria_invoice_id' => :'String',
82
+ :'aria_invoice_id' => :'LineItemDataReadOnlyInvoiceId',
83
83
  :'client_service_id' => :'String',
84
84
  :'credit_coupon_code' => :'String',
85
85
  :'description' => :'String',
@@ -113,13 +113,13 @@ module Fastly
113
113
  # @param [Hash] attributes Model attributes in the form of hash
114
114
  def initialize(attributes = {})
115
115
  if (!attributes.is_a?(Hash))
116
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingResponseLineItemAllOf` initialize method"
116
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LineItemData` initialize method"
117
117
  end
118
118
 
119
119
  # check to see if the attribute exists and convert string to symbol for hash key
120
120
  attributes = attributes.each_with_object({}) { |(k, v), h|
121
121
  if (!self.class.attribute_map.key?(k.to_sym))
122
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingResponseLineItemAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
122
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LineItemData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
123
123
  end
124
124
  h[k.to_sym] = v
125
125
  }
@@ -12,13 +12,10 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class BillingEstimateResponseAllOfLines
16
- attr_accessor :line
17
-
15
+ class LineItemDataReadOnlyInvoiceId
18
16
  # Attribute mapping from ruby-style variable name to JSON key.
19
17
  def self.attribute_map
20
18
  {
21
- :'line' => :'line'
22
19
  }
23
20
  end
24
21
 
@@ -30,7 +27,6 @@ module Fastly
30
27
  # Attribute type mapping.
31
28
  def self.fastly_types
32
29
  {
33
- :'line' => :'BillingEstimateResponseAllOfLine'
34
30
  }
35
31
  end
36
32
 
@@ -44,20 +40,16 @@ module Fastly
44
40
  # @param [Hash] attributes Model attributes in the form of hash
45
41
  def initialize(attributes = {})
46
42
  if (!attributes.is_a?(Hash))
47
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::BillingEstimateResponseAllOfLines` initialize method"
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LineItemDataReadOnlyInvoiceId` initialize method"
48
44
  end
49
45
 
50
46
  # check to see if the attribute exists and convert string to symbol for hash key
51
47
  attributes = attributes.each_with_object({}) { |(k, v), h|
52
48
  if (!self.class.attribute_map.key?(k.to_sym))
53
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingEstimateResponseAllOfLines`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LineItemDataReadOnlyInvoiceId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
50
  end
55
51
  h[k.to_sym] = v
56
52
  }
57
-
58
- if attributes.key?(:'line')
59
- self.line = attributes[:'line']
60
- end
61
53
  end
62
54
 
63
55
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,8 +69,7 @@ module Fastly
77
69
  # @param [Object] Object to be compared
78
70
  def ==(o)
79
71
  return true if self.equal?(o)
80
- self.class == o.class &&
81
- line == o.line
72
+ self.class == o.class
82
73
  end
83
74
 
84
75
  # @see the `==` method
@@ -90,7 +81,7 @@ module Fastly
90
81
  # Calculates hash code according to all attributes.
91
82
  # @return [Integer] Hash code
92
83
  def hash
93
- [line].hash
84
+ [].hash
94
85
  end
95
86
 
96
87
  # Builds the object from hash
@@ -99,6 +99,9 @@ module Fastly
99
99
  # List of attributes with nullable: true
100
100
  def self.fastly_nullable
101
101
  Set.new([
102
+ :'locked',
103
+ :'require_new_password',
104
+ :'two_factor_auth_enabled',
102
105
  :'created_at',
103
106
  :'deleted_at',
104
107
  :'updated_at',
@@ -108,9 +111,9 @@ module Fastly
108
111
  # List of class defined in allOf (OpenAPI v3)
109
112
  def self.fastly_all_of
110
113
  [
114
+ :'SchemasUserResponseReadOnly',
111
115
  :'Timestamps',
112
- :'User',
113
- :'UserResponseAllOf'
116
+ :'User'
114
117
  ]
115
118
  end
116
119
 
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ class SchemasUserResponseReadOnly
16
+ attr_accessor :id
17
+
18
+ # The alphanumeric string identifying a email login.
19
+ attr_accessor :email_hash
20
+
21
+ attr_accessor :customer_id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'id' => :'id',
27
+ :'email_hash' => :'email_hash',
28
+ :'customer_id' => :'customer_id'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.fastly_types
39
+ {
40
+ :'id' => :'String',
41
+ :'email_hash' => :'String',
42
+ :'customer_id' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.fastly_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::SchemasUserResponseReadOnly` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::SchemasUserResponseReadOnly`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'id')
68
+ self.id = attributes[:'id']
69
+ end
70
+
71
+ if attributes.key?(:'email_hash')
72
+ self.email_hash = attributes[:'email_hash']
73
+ end
74
+
75
+ if attributes.key?(:'customer_id')
76
+ self.customer_id = attributes[:'customer_id']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ id == o.id &&
99
+ email_hash == o.email_hash &&
100
+ customer_id == o.customer_id
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [id, email_hash, customer_id].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ new.build_from_hash(attributes)
120
+ end
121
+
122
+ # Builds the object from hash
123
+ # @param [Hash] attributes Model attributes in the form of hash
124
+ # @return [Object] Returns the model itself
125
+ def build_from_hash(attributes)
126
+ return nil unless attributes.is_a?(Hash)
127
+ self.class.fastly_types.each_pair do |key, type|
128
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
129
+ self.send("#{key}=", nil)
130
+ elsif type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :Time
151
+ Time.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :Boolean
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ # models (e.g. Pet) or oneOf
182
+ klass = Fastly.const_get(type)
183
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
184
+ end
185
+ end
186
+
187
+ # Returns the string representation of the object
188
+ # @return [String] String presentation of the object
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_hash (backward compatibility)
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_body
196
+ to_hash
197
+ end
198
+
199
+ # Returns the object in the form of hash
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ if value.nil?
206
+ is_nullable = self.class.fastly_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+
235
+ end
@@ -71,6 +71,9 @@ module Fastly
71
71
  # List of attributes with nullable: true
72
72
  def self.fastly_nullable
73
73
  Set.new([
74
+ :'locked',
75
+ :'require_new_password',
76
+ :'two_factor_auth_enabled',
74
77
  ])
75
78
  end
76
79
 
@@ -99,6 +99,9 @@ module Fastly
99
99
  # List of attributes with nullable: true
100
100
  def self.fastly_nullable
101
101
  Set.new([
102
+ :'locked',
103
+ :'require_new_password',
104
+ :'two_factor_auth_enabled',
102
105
  :'created_at',
103
106
  :'deleted_at',
104
107
  :'updated_at',
@@ -110,7 +113,7 @@ module Fastly
110
113
  [
111
114
  :'Timestamps',
112
115
  :'User',
113
- :'UserResponseAllOf'
116
+ :'UserResponseReadOnly'
114
117
  ]
115
118
  end
116
119
 
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class UserResponseAllOf
15
+ class UserResponseReadOnly
16
16
  attr_accessor :id
17
17
 
18
18
  # The alphanumeric string identifying a email login.
@@ -53,13 +53,13 @@ module Fastly
53
53
  # @param [Hash] attributes Model attributes in the form of hash
54
54
  def initialize(attributes = {})
55
55
  if (!attributes.is_a?(Hash))
56
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::UserResponseAllOf` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::UserResponseReadOnly` initialize method"
57
57
  end
58
58
 
59
59
  # check to see if the attribute exists and convert string to symbol for hash key
60
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
61
  if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::UserResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::UserResponseReadOnly`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
63
  end
64
64
  h[k.to_sym] = v
65
65
  }
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '6.0.0'
12
+ VERSION = '6.0.1'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -44,14 +44,12 @@ require 'fastly/models/billing_address_response'
44
44
  require 'fastly/models/billing_address_response_data'
45
45
  require 'fastly/models/billing_address_verification_error_response'
46
46
  require 'fastly/models/billing_address_verification_error_response_errors'
47
+ require 'fastly/models/billing_estimate_lines'
48
+ require 'fastly/models/billing_estimate_lines_line_items'
47
49
  require 'fastly/models/billing_estimate_response'
48
- require 'fastly/models/billing_estimate_response_all_of'
49
- require 'fastly/models/billing_estimate_response_all_of_line'
50
- require 'fastly/models/billing_estimate_response_all_of_lines'
51
50
  require 'fastly/models/billing_response'
52
- require 'fastly/models/billing_response_all_of'
51
+ require 'fastly/models/billing_response_item_items_data'
53
52
  require 'fastly/models/billing_response_line_item'
54
- require 'fastly/models/billing_response_line_item_all_of'
55
53
  require 'fastly/models/billing_status'
56
54
  require 'fastly/models/billing_total'
57
55
  require 'fastly/models/billing_total_extras'
@@ -195,6 +193,8 @@ require 'fastly/models/legacy_waf_rule_status'
195
193
  require 'fastly/models/legacy_waf_ruleset'
196
194
  require 'fastly/models/legacy_waf_tag'
197
195
  require 'fastly/models/legacy_waf_update_status'
196
+ require 'fastly/models/line_item_data'
197
+ require 'fastly/models/line_item_data_read_only_invoice_id'
198
198
  require 'fastly/models/logging_address_and_port'
199
199
  require 'fastly/models/logging_azureblob'
200
200
  require 'fastly/models/logging_azureblob_all_of'
@@ -442,6 +442,7 @@ require 'fastly/models/role_user'
442
442
  require 'fastly/models/schemas_contact_response'
443
443
  require 'fastly/models/schemas_snippet_response'
444
444
  require 'fastly/models/schemas_user_response'
445
+ require 'fastly/models/schemas_user_response_read_only'
445
446
  require 'fastly/models/schemas_vcl_response'
446
447
  require 'fastly/models/schemas_version'
447
448
  require 'fastly/models/schemas_version_response'
@@ -601,7 +602,7 @@ require 'fastly/models/update_billing_address_request'
601
602
  require 'fastly/models/update_billing_address_request_data'
602
603
  require 'fastly/models/user'
603
604
  require 'fastly/models/user_response'
604
- require 'fastly/models/user_response_all_of'
605
+ require 'fastly/models/user_response_read_only'
605
606
  require 'fastly/models/validator_result'
606
607
  require 'fastly/models/validator_result_data'
607
608
  require 'fastly/models/validator_result_data_attributes'
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "4b5c526d", "D": "37a4f474"}
1
+ {"G": "fd9c0491", "D": "f16293ec"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -88,14 +88,12 @@ files:
88
88
  - docs/BillingAddressVerificationErrorResponse.md
89
89
  - docs/BillingAddressVerificationErrorResponseErrors.md
90
90
  - docs/BillingApi.md
91
+ - docs/BillingEstimateLines.md
92
+ - docs/BillingEstimateLinesLineItems.md
91
93
  - docs/BillingEstimateResponse.md
92
- - docs/BillingEstimateResponseAllOf.md
93
- - docs/BillingEstimateResponseAllOfLine.md
94
- - docs/BillingEstimateResponseAllOfLines.md
95
94
  - docs/BillingResponse.md
96
- - docs/BillingResponseAllOf.md
95
+ - docs/BillingResponseItemItemsData.md
97
96
  - docs/BillingResponseLineItem.md
98
- - docs/BillingResponseLineItemAllOf.md
99
97
  - docs/BillingStatus.md
100
98
  - docs/BillingTotal.md
101
99
  - docs/BillingTotalExtras.md
@@ -278,6 +276,8 @@ files:
278
276
  - docs/LegacyWafTagApi.md
279
277
  - docs/LegacyWafUpdateStatus.md
280
278
  - docs/LegacyWafUpdateStatusApi.md
279
+ - docs/LineItemData.md
280
+ - docs/LineItemDataReadOnlyInvoiceId.md
281
281
  - docs/LoggingAddressAndPort.md
282
282
  - docs/LoggingAzureblob.md
283
283
  - docs/LoggingAzureblobAllOf.md
@@ -565,6 +565,7 @@ files:
565
565
  - docs/SchemasContactResponse.md
566
566
  - docs/SchemasSnippetResponse.md
567
567
  - docs/SchemasUserResponse.md
568
+ - docs/SchemasUserResponseReadOnly.md
568
569
  - docs/SchemasVclResponse.md
569
570
  - docs/SchemasVersion.md
570
571
  - docs/SchemasVersionResponse.md
@@ -743,7 +744,7 @@ files:
743
744
  - docs/User.md
744
745
  - docs/UserApi.md
745
746
  - docs/UserResponse.md
746
- - docs/UserResponseAllOf.md
747
+ - docs/UserResponseReadOnly.md
747
748
  - docs/ValidatorResult.md
748
749
  - docs/ValidatorResultData.md
749
750
  - docs/ValidatorResultDataAttributes.md
@@ -982,14 +983,12 @@ files:
982
983
  - lib/fastly/models/billing_address_response_data.rb
983
984
  - lib/fastly/models/billing_address_verification_error_response.rb
984
985
  - lib/fastly/models/billing_address_verification_error_response_errors.rb
986
+ - lib/fastly/models/billing_estimate_lines.rb
987
+ - lib/fastly/models/billing_estimate_lines_line_items.rb
985
988
  - lib/fastly/models/billing_estimate_response.rb
986
- - lib/fastly/models/billing_estimate_response_all_of.rb
987
- - lib/fastly/models/billing_estimate_response_all_of_line.rb
988
- - lib/fastly/models/billing_estimate_response_all_of_lines.rb
989
989
  - lib/fastly/models/billing_response.rb
990
- - lib/fastly/models/billing_response_all_of.rb
990
+ - lib/fastly/models/billing_response_item_items_data.rb
991
991
  - lib/fastly/models/billing_response_line_item.rb
992
- - lib/fastly/models/billing_response_line_item_all_of.rb
993
992
  - lib/fastly/models/billing_status.rb
994
993
  - lib/fastly/models/billing_total.rb
995
994
  - lib/fastly/models/billing_total_extras.rb
@@ -1133,6 +1132,8 @@ files:
1133
1132
  - lib/fastly/models/legacy_waf_ruleset.rb
1134
1133
  - lib/fastly/models/legacy_waf_tag.rb
1135
1134
  - lib/fastly/models/legacy_waf_update_status.rb
1135
+ - lib/fastly/models/line_item_data.rb
1136
+ - lib/fastly/models/line_item_data_read_only_invoice_id.rb
1136
1137
  - lib/fastly/models/logging_address_and_port.rb
1137
1138
  - lib/fastly/models/logging_azureblob.rb
1138
1139
  - lib/fastly/models/logging_azureblob_all_of.rb
@@ -1380,6 +1381,7 @@ files:
1380
1381
  - lib/fastly/models/schemas_contact_response.rb
1381
1382
  - lib/fastly/models/schemas_snippet_response.rb
1382
1383
  - lib/fastly/models/schemas_user_response.rb
1384
+ - lib/fastly/models/schemas_user_response_read_only.rb
1383
1385
  - lib/fastly/models/schemas_vcl_response.rb
1384
1386
  - lib/fastly/models/schemas_version.rb
1385
1387
  - lib/fastly/models/schemas_version_response.rb
@@ -1539,7 +1541,7 @@ files:
1539
1541
  - lib/fastly/models/update_billing_address_request_data.rb
1540
1542
  - lib/fastly/models/user.rb
1541
1543
  - lib/fastly/models/user_response.rb
1542
- - lib/fastly/models/user_response_all_of.rb
1544
+ - lib/fastly/models/user_response_read_only.rb
1543
1545
  - lib/fastly/models/validator_result.rb
1544
1546
  - lib/fastly/models/validator_result_data.rb
1545
1547
  - lib/fastly/models/validator_result_data_attributes.rb