fastly 5.1.0 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +2 -5
  5. data/docs/AclResponse.md +1 -1
  6. data/docs/AclResponseAllOf.md +2 -0
  7. data/docs/HistoricalFieldAggregateResponse.md +1 -1
  8. data/docs/HistoricalFieldAggregateResponseAllOf.md +1 -1
  9. data/docs/HistoricalFieldResultsAttributes.md +227 -0
  10. data/docs/HistoricalFieldResultsAttributesAllOf.md +11 -0
  11. data/docs/KvStoreApi.md +0 -2
  12. data/docs/KvStoreItemApi.md +0 -2
  13. data/docs/RealtimeMeasurements.md +5 -4
  14. data/docs/Results.md +5 -4
  15. data/docs/SchemasSnippetResponse.md +3 -3
  16. data/docs/Snippet.md +1 -1
  17. data/docs/SnippetApi.md +4 -4
  18. data/docs/SnippetResponse.md +3 -3
  19. data/docs/SnippetResponseAllOf.md +2 -0
  20. data/docs/TokensApi.md +38 -0
  21. data/lib/fastly/api/kv_store_api.rb +0 -3
  22. data/lib/fastly/api/kv_store_item_api.rb +0 -3
  23. data/lib/fastly/api/purge_api.rb +1 -1
  24. data/lib/fastly/api/snippet_api.rb +4 -4
  25. data/lib/fastly/api/tokens_api.rb +63 -0
  26. data/lib/fastly/api_client.rb +0 -2
  27. data/lib/fastly/configuration.rb +2616 -0
  28. data/lib/fastly/models/acl_response.rb +2 -2
  29. data/lib/fastly/models/acl_response_all_of.rb +20 -1
  30. data/lib/fastly/models/backend.rb +1 -0
  31. data/lib/fastly/models/backend_response.rb +1 -0
  32. data/lib/fastly/models/historical_field_aggregate_response.rb +1 -1
  33. data/lib/fastly/models/historical_field_aggregate_response_all_of.rb +1 -1
  34. data/lib/fastly/models/historical_field_results_attributes.rb +2395 -0
  35. data/lib/fastly/models/historical_field_results_attributes_all_of.rb +226 -0
  36. data/lib/fastly/models/realtime_measurements.rb +33 -23
  37. data/lib/fastly/models/results.rb +33 -23
  38. data/lib/fastly/models/schemas_snippet_response.rb +22 -22
  39. data/lib/fastly/models/snippet.rb +2 -2
  40. data/lib/fastly/models/snippet_response.rb +22 -22
  41. data/lib/fastly/models/snippet_response_all_of.rb +20 -1
  42. data/lib/fastly/version.rb +1 -1
  43. data/lib/fastly.rb +2 -0
  44. data/sig.json +1 -1
  45. metadata +6 -2
@@ -27,6 +27,7 @@ module Fastly
27
27
 
28
28
  attr_accessor :service_id
29
29
 
30
+ # String representing the number identifying a version of the service.
30
31
  attr_accessor :version
31
32
 
32
33
  attr_accessor :id
@@ -57,7 +58,7 @@ module Fastly
57
58
  :'deleted_at' => :'Time',
58
59
  :'updated_at' => :'Time',
59
60
  :'service_id' => :'String',
60
- :'version' => :'Integer',
61
+ :'version' => :'String',
61
62
  :'id' => :'String'
62
63
  }
63
64
  end
@@ -76,7 +77,6 @@ module Fastly
76
77
  [
77
78
  :'Acl',
78
79
  :'AclResponseAllOf',
79
- :'ServiceIdAndVersion',
80
80
  :'Timestamps'
81
81
  ]
82
82
  end
@@ -13,11 +13,18 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class AclResponseAllOf
16
+ attr_accessor :service_id
17
+
18
+ # String representing the number identifying a version of the service.
19
+ attr_accessor :version
20
+
16
21
  attr_accessor :id
17
22
 
18
23
  # Attribute mapping from ruby-style variable name to JSON key.
19
24
  def self.attribute_map
20
25
  {
26
+ :'service_id' => :'service_id',
27
+ :'version' => :'version',
21
28
  :'id' => :'id'
22
29
  }
23
30
  end
@@ -30,6 +37,8 @@ module Fastly
30
37
  # Attribute type mapping.
31
38
  def self.fastly_types
32
39
  {
40
+ :'service_id' => :'String',
41
+ :'version' => :'String',
33
42
  :'id' => :'String'
34
43
  }
35
44
  end
@@ -55,6 +64,14 @@ module Fastly
55
64
  h[k.to_sym] = v
56
65
  }
57
66
 
67
+ if attributes.key?(:'service_id')
68
+ self.service_id = attributes[:'service_id']
69
+ end
70
+
71
+ if attributes.key?(:'version')
72
+ self.version = attributes[:'version']
73
+ end
74
+
58
75
  if attributes.key?(:'id')
59
76
  self.id = attributes[:'id']
60
77
  end
@@ -78,6 +95,8 @@ module Fastly
78
95
  def ==(o)
79
96
  return true if self.equal?(o)
80
97
  self.class == o.class &&
98
+ service_id == o.service_id &&
99
+ version == o.version &&
81
100
  id == o.id
82
101
  end
83
102
 
@@ -90,7 +109,7 @@ module Fastly
90
109
  # Calculates hash code according to all attributes.
91
110
  # @return [Integer] Hash code
92
111
  def hash
93
- [id].hash
112
+ [service_id, version, id].hash
94
113
  end
95
114
 
96
115
  # Builds the object from hash
@@ -196,6 +196,7 @@ module Fastly
196
196
  :'shield',
197
197
  :'ssl_ca_cert',
198
198
  :'ssl_cert_hostname',
199
+ :'ssl_check_cert',
199
200
  :'ssl_ciphers',
200
201
  :'ssl_client_cert',
201
202
  :'ssl_client_key',
@@ -224,6 +224,7 @@ module Fastly
224
224
  :'shield',
225
225
  :'ssl_ca_cert',
226
226
  :'ssl_cert_hostname',
227
+ :'ssl_check_cert',
227
228
  :'ssl_ciphers',
228
229
  :'ssl_client_cert',
229
230
  :'ssl_client_key',
@@ -44,7 +44,7 @@ module Fastly
44
44
  :'status' => :'String',
45
45
  :'meta' => :'HistoricalMeta',
46
46
  :'msg' => :'String',
47
- :'data' => :'Array<Hash<String, String>>'
47
+ :'data' => :'Array<HistoricalFieldResultsAttributes>'
48
48
  }
49
49
  end
50
50
 
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Attribute type mapping.
31
31
  def self.fastly_types
32
32
  {
33
- :'data' => :'Array<Hash<String, String>>'
33
+ :'data' => :'Array<HistoricalFieldResultsAttributes>'
34
34
  }
35
35
  end
36
36