fastly 5.0.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -8
  5. data/docs/AclResponse.md +1 -1
  6. data/docs/AclResponseAllOf.md +2 -0
  7. data/docs/BulkUpdateConfigStoreItem.md +12 -0
  8. data/docs/{BulkUpdateDictionaryItemAllOf.md → BulkUpdateConfigStoreItemAllOf.md} +1 -1
  9. data/docs/BulkUpdateConfigStoreListRequest.md +10 -0
  10. data/docs/ConfigStore.md +10 -0
  11. data/docs/ConfigStoreApi.md +277 -0
  12. data/docs/ConfigStoreInfoResponse.md +10 -0
  13. data/docs/ConfigStoreItem.md +11 -0
  14. data/docs/ConfigStoreItemApi.md +302 -0
  15. data/docs/ConfigStoreItemResponse.md +15 -0
  16. data/docs/ConfigStoreItemResponseAllOf.md +10 -0
  17. data/docs/ConfigStoreResponse.md +14 -0
  18. data/docs/ConfigStoreResponseAllOf.md +10 -0
  19. data/docs/SchemasSnippetResponse.md +3 -3
  20. data/docs/Snippet.md +1 -1
  21. data/docs/SnippetApi.md +4 -4
  22. data/docs/SnippetResponse.md +3 -3
  23. data/docs/SnippetResponseAllOf.md +2 -0
  24. data/lib/fastly/api/config_store_api.rb +463 -0
  25. data/lib/fastly/api/config_store_item_api.rb +529 -0
  26. data/lib/fastly/api/purge_api.rb +1 -1
  27. data/lib/fastly/api/snippet_api.rb +4 -4
  28. data/lib/fastly/api_client.rb +0 -2
  29. data/lib/fastly/models/acl_response.rb +2 -2
  30. data/lib/fastly/models/acl_response_all_of.rb +20 -1
  31. data/lib/fastly/models/backend.rb +1 -0
  32. data/lib/fastly/models/backend_response.rb +1 -0
  33. data/lib/fastly/models/bulk_update_config_store_item.rb +278 -0
  34. data/lib/fastly/models/{bulk_update_dictionary_item_all_of.rb → bulk_update_config_store_item_all_of.rb} +3 -3
  35. data/lib/fastly/models/bulk_update_config_store_list_request.rb +218 -0
  36. data/lib/fastly/models/bulk_update_dictionary_item.rb +1 -1
  37. data/lib/fastly/models/config_store.rb +217 -0
  38. data/lib/fastly/models/config_store_info_response.rb +217 -0
  39. data/lib/fastly/models/config_store_item.rb +227 -0
  40. data/lib/fastly/models/config_store_item_response.rb +278 -0
  41. data/lib/fastly/models/config_store_item_response_all_of.rb +216 -0
  42. data/lib/fastly/models/config_store_response.rb +269 -0
  43. data/lib/fastly/models/config_store_response_all_of.rb +217 -0
  44. data/lib/fastly/models/schemas_snippet_response.rb +22 -22
  45. data/lib/fastly/models/snippet.rb +2 -2
  46. data/lib/fastly/models/snippet_response.rb +22 -22
  47. data/lib/fastly/models/snippet_response_all_of.rb +20 -1
  48. data/lib/fastly/version.rb +1 -1
  49. data/lib/fastly.rb +12 -1
  50. data/sig.json +1 -1
  51. metadata +26 -4
@@ -28,10 +28,6 @@ module Fastly
28
28
  # Priority determines execution order. Lower numbers execute first.
29
29
  attr_accessor :priority
30
30
 
31
- attr_accessor :service_id
32
-
33
- attr_accessor :version
34
-
35
31
  # Date and time in ISO 8601 format.
36
32
  attr_accessor :created_at
37
33
 
@@ -41,6 +37,11 @@ module Fastly
41
37
  # Date and time in ISO 8601 format.
42
38
  attr_accessor :updated_at
43
39
 
40
+ attr_accessor :service_id
41
+
42
+ # String representing the number identifying a version of the service.
43
+ attr_accessor :version
44
+
44
45
  attr_accessor :id
45
46
 
46
47
  class EnumAttributeValidator
@@ -73,11 +74,11 @@ module Fastly
73
74
  :'type' => :'type',
74
75
  :'content' => :'content',
75
76
  :'priority' => :'priority',
76
- :'service_id' => :'service_id',
77
- :'version' => :'version',
78
77
  :'created_at' => :'created_at',
79
78
  :'deleted_at' => :'deleted_at',
80
79
  :'updated_at' => :'updated_at',
80
+ :'service_id' => :'service_id',
81
+ :'version' => :'version',
81
82
  :'id' => :'id'
82
83
  }
83
84
  end
@@ -94,12 +95,12 @@ module Fastly
94
95
  :'dynamic' => :'Integer',
95
96
  :'type' => :'String',
96
97
  :'content' => :'String',
97
- :'priority' => :'Integer',
98
- :'service_id' => :'String',
99
- :'version' => :'Integer',
98
+ :'priority' => :'String',
100
99
  :'created_at' => :'Time',
101
100
  :'deleted_at' => :'Time',
102
101
  :'updated_at' => :'Time',
102
+ :'service_id' => :'String',
103
+ :'version' => :'String',
103
104
  :'id' => :'String'
104
105
  }
105
106
  end
@@ -116,7 +117,6 @@ module Fastly
116
117
  # List of class defined in allOf (OpenAPI v3)
117
118
  def self.fastly_all_of
118
119
  [
119
- :'ServiceIdAndVersion',
120
120
  :'Snippet',
121
121
  :'SnippetResponseAllOf',
122
122
  :'Timestamps'
@@ -157,15 +157,7 @@ module Fastly
157
157
  if attributes.key?(:'priority')
158
158
  self.priority = attributes[:'priority']
159
159
  else
160
- self.priority = 100
161
- end
162
-
163
- if attributes.key?(:'service_id')
164
- self.service_id = attributes[:'service_id']
165
- end
166
-
167
- if attributes.key?(:'version')
168
- self.version = attributes[:'version']
160
+ self.priority = '100'
169
161
  end
170
162
 
171
163
  if attributes.key?(:'created_at')
@@ -180,6 +172,14 @@ module Fastly
180
172
  self.updated_at = attributes[:'updated_at']
181
173
  end
182
174
 
175
+ if attributes.key?(:'service_id')
176
+ self.service_id = attributes[:'service_id']
177
+ end
178
+
179
+ if attributes.key?(:'version')
180
+ self.version = attributes[:'version']
181
+ end
182
+
183
183
  if attributes.key?(:'id')
184
184
  self.id = attributes[:'id']
185
185
  end
@@ -232,11 +232,11 @@ module Fastly
232
232
  type == o.type &&
233
233
  content == o.content &&
234
234
  priority == o.priority &&
235
- service_id == o.service_id &&
236
- version == o.version &&
237
235
  created_at == o.created_at &&
238
236
  deleted_at == o.deleted_at &&
239
237
  updated_at == o.updated_at &&
238
+ service_id == o.service_id &&
239
+ version == o.version &&
240
240
  id == o.id
241
241
  end
242
242
 
@@ -249,7 +249,7 @@ module Fastly
249
249
  # Calculates hash code according to all attributes.
250
250
  # @return [Integer] Hash code
251
251
  def hash
252
- [name, dynamic, type, content, priority, service_id, version, created_at, deleted_at, updated_at, id].hash
252
+ [name, dynamic, type, content, priority, created_at, deleted_at, updated_at, service_id, version, id].hash
253
253
  end
254
254
 
255
255
  # Builds the object from hash
@@ -13,11 +13,18 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class SnippetResponseAllOf
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
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '5.0.0'
12
+ VERSION = '5.1.1'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -56,14 +56,23 @@ require 'fastly/models/billing_total_extras'
56
56
  require 'fastly/models/bulk_update_acl_entries_request'
57
57
  require 'fastly/models/bulk_update_acl_entry'
58
58
  require 'fastly/models/bulk_update_acl_entry_all_of'
59
+ require 'fastly/models/bulk_update_config_store_item'
60
+ require 'fastly/models/bulk_update_config_store_item_all_of'
61
+ require 'fastly/models/bulk_update_config_store_list_request'
59
62
  require 'fastly/models/bulk_update_dictionary_item'
60
- require 'fastly/models/bulk_update_dictionary_item_all_of'
61
63
  require 'fastly/models/bulk_update_dictionary_list_request'
62
64
  require 'fastly/models/bulk_waf_active_rules'
63
65
  require 'fastly/models/cache_setting'
64
66
  require 'fastly/models/cache_setting_response'
65
67
  require 'fastly/models/condition'
66
68
  require 'fastly/models/condition_response'
69
+ require 'fastly/models/config_store'
70
+ require 'fastly/models/config_store_info_response'
71
+ require 'fastly/models/config_store_item'
72
+ require 'fastly/models/config_store_item_response'
73
+ require 'fastly/models/config_store_item_response_all_of'
74
+ require 'fastly/models/config_store_response'
75
+ require 'fastly/models/config_store_response_all_of'
67
76
  require 'fastly/models/contact'
68
77
  require 'fastly/models/contact_response'
69
78
  require 'fastly/models/contact_response_all_of'
@@ -615,6 +624,8 @@ require 'fastly/api/billing_api'
615
624
  require 'fastly/api/billing_address_api'
616
625
  require 'fastly/api/cache_settings_api'
617
626
  require 'fastly/api/condition_api'
627
+ require 'fastly/api/config_store_api'
628
+ require 'fastly/api/config_store_item_api'
618
629
  require 'fastly/api/contact_api'
619
630
  require 'fastly/api/customer_api'
620
631
  require 'fastly/api/dictionary_api'
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "fe405794", "D": "07b55669"}
1
+ {"G": "68da606c", "D": "3408edcc"}
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: 5.0.0
4
+ version: 5.1.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-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -100,8 +100,10 @@ files:
100
100
  - docs/BulkUpdateAclEntriesRequest.md
101
101
  - docs/BulkUpdateAclEntry.md
102
102
  - docs/BulkUpdateAclEntryAllOf.md
103
+ - docs/BulkUpdateConfigStoreItem.md
104
+ - docs/BulkUpdateConfigStoreItemAllOf.md
105
+ - docs/BulkUpdateConfigStoreListRequest.md
103
106
  - docs/BulkUpdateDictionaryItem.md
104
- - docs/BulkUpdateDictionaryItemAllOf.md
105
107
  - docs/BulkUpdateDictionaryListRequest.md
106
108
  - docs/BulkWafActiveRules.md
107
109
  - docs/CacheSetting.md
@@ -110,6 +112,15 @@ files:
110
112
  - docs/Condition.md
111
113
  - docs/ConditionApi.md
112
114
  - docs/ConditionResponse.md
115
+ - docs/ConfigStore.md
116
+ - docs/ConfigStoreApi.md
117
+ - docs/ConfigStoreInfoResponse.md
118
+ - docs/ConfigStoreItem.md
119
+ - docs/ConfigStoreItemApi.md
120
+ - docs/ConfigStoreItemResponse.md
121
+ - docs/ConfigStoreItemResponseAllOf.md
122
+ - docs/ConfigStoreResponse.md
123
+ - docs/ConfigStoreResponseAllOf.md
113
124
  - docs/Contact.md
114
125
  - docs/ContactApi.md
115
126
  - docs/ContactResponse.md
@@ -749,6 +760,8 @@ files:
749
760
  - lib/fastly/api/billing_api.rb
750
761
  - lib/fastly/api/cache_settings_api.rb
751
762
  - lib/fastly/api/condition_api.rb
763
+ - lib/fastly/api/config_store_api.rb
764
+ - lib/fastly/api/config_store_item_api.rb
752
765
  - lib/fastly/api/contact_api.rb
753
766
  - lib/fastly/api/customer_api.rb
754
767
  - lib/fastly/api/dictionary_api.rb
@@ -881,14 +894,23 @@ files:
881
894
  - lib/fastly/models/bulk_update_acl_entries_request.rb
882
895
  - lib/fastly/models/bulk_update_acl_entry.rb
883
896
  - lib/fastly/models/bulk_update_acl_entry_all_of.rb
897
+ - lib/fastly/models/bulk_update_config_store_item.rb
898
+ - lib/fastly/models/bulk_update_config_store_item_all_of.rb
899
+ - lib/fastly/models/bulk_update_config_store_list_request.rb
884
900
  - lib/fastly/models/bulk_update_dictionary_item.rb
885
- - lib/fastly/models/bulk_update_dictionary_item_all_of.rb
886
901
  - lib/fastly/models/bulk_update_dictionary_list_request.rb
887
902
  - lib/fastly/models/bulk_waf_active_rules.rb
888
903
  - lib/fastly/models/cache_setting.rb
889
904
  - lib/fastly/models/cache_setting_response.rb
890
905
  - lib/fastly/models/condition.rb
891
906
  - lib/fastly/models/condition_response.rb
907
+ - lib/fastly/models/config_store.rb
908
+ - lib/fastly/models/config_store_info_response.rb
909
+ - lib/fastly/models/config_store_item.rb
910
+ - lib/fastly/models/config_store_item_response.rb
911
+ - lib/fastly/models/config_store_item_response_all_of.rb
912
+ - lib/fastly/models/config_store_response.rb
913
+ - lib/fastly/models/config_store_response_all_of.rb
892
914
  - lib/fastly/models/contact.rb
893
915
  - lib/fastly/models/contact_response.rb
894
916
  - lib/fastly/models/contact_response_all_of.rb