fastly 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +7 -11
  5. data/docs/Backend.md +1 -1
  6. data/docs/BackendApi.md +4 -4
  7. data/docs/BackendResponse.md +1 -1
  8. data/docs/EnabledProductResponse.md +12 -0
  9. data/docs/{EnabledProductProduct.md → EnabledProductResponseLinks.md} +3 -3
  10. data/docs/{ResourceCreateAllOf.md → EnabledProductResponseProduct.md} +3 -2
  11. data/docs/{EnabledProductLinks.md → EnabledProductResponseService.md} +3 -3
  12. data/docs/EnabledProductsApi.md +7 -7
  13. data/docs/EventsApi.md +2 -0
  14. data/docs/HistoricalApi.md +10 -10
  15. data/docs/{GetStoresResponse.md → InlineResponse2002.md} +2 -2
  16. data/docs/{GetStoresResponseMeta.md → InlineResponse2002Meta.md} +1 -1
  17. data/docs/ObjectStoreApi.md +3 -166
  18. data/docs/Pop.md +7 -4
  19. data/docs/PopCoordinates.md +2 -4
  20. data/docs/RealtimeMeasurements.md +4 -2
  21. data/docs/Resource.md +2 -1
  22. data/docs/ResourceApi.md +34 -32
  23. data/docs/ResourceResponse.md +3 -3
  24. data/docs/ResourceResponseAllOf.md +1 -1
  25. data/docs/Results.md +5 -3
  26. data/docs/TlsSubscriptionResponseAttributes.md +1 -1
  27. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -1
  28. data/docs/TlsSubscriptionsApi.md +3 -3
  29. data/lib/fastly/api/backend_api.rb +4 -4
  30. data/lib/fastly/api/enabled_products_api.rb +12 -12
  31. data/lib/fastly/api/events_api.rb +3 -0
  32. data/lib/fastly/api/historical_api.rb +10 -10
  33. data/lib/fastly/api/object_store_api.rb +5 -289
  34. data/lib/fastly/api/purge_api.rb +1 -1
  35. data/lib/fastly/api/resource_api.rb +51 -48
  36. data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
  37. data/lib/fastly/models/backend.rb +1 -1
  38. data/lib/fastly/models/backend_response.rb +1 -1
  39. data/lib/fastly/models/{enabled_product.rb → enabled_product_response.rb} +6 -6
  40. data/lib/fastly/models/{enabled_product_links.rb → enabled_product_response_links.rb} +5 -3
  41. data/lib/fastly/models/{enabled_product_product.rb → enabled_product_response_product.rb} +5 -3
  42. data/lib/fastly/models/{key_response.rb → enabled_product_response_service.rb} +18 -18
  43. data/lib/fastly/models/{get_stores_response.rb → inline_response2002.rb} +4 -4
  44. data/lib/fastly/models/{get_stores_response_meta.rb → inline_response2002_meta.rb} +3 -3
  45. data/lib/fastly/models/pop.rb +121 -1
  46. data/lib/fastly/models/pop_coordinates.rb +12 -19
  47. data/lib/fastly/models/realtime_measurements.rb +23 -3
  48. data/lib/fastly/models/resource.rb +12 -2
  49. data/lib/fastly/models/resource_response.rb +23 -23
  50. data/lib/fastly/models/resource_response_all_of.rb +1 -1
  51. data/lib/fastly/models/results.rb +24 -4
  52. data/lib/fastly/models/tls_subscription_response_attributes.rb +2 -2
  53. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +2 -2
  54. data/lib/fastly/models/type_resource.rb +2 -0
  55. data/lib/fastly/version.rb +1 -1
  56. data/lib/fastly.rb +6 -8
  57. data/sig.json +1 -1
  58. metadata +14 -18
  59. data/docs/EnabledProduct.md +0 -12
  60. data/docs/KeyResponse.md +0 -11
  61. data/docs/ResourceCreate.md +0 -11
  62. data/lib/fastly/models/resource_create.rb +0 -235
  63. data/lib/fastly/models/resource_create_all_of.rb +0 -217
@@ -13,6 +13,12 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class ResourceResponse
16
+ # The ID of the underlying linked resource.
17
+ attr_accessor :resource_id
18
+
19
+ # The name of the resource link.
20
+ attr_accessor :name
21
+
16
22
  # Date and time in ISO 8601 format.
17
23
  attr_accessor :created_at
18
24
 
@@ -22,13 +28,7 @@ module Fastly
22
28
  # Date and time in ISO 8601 format.
23
29
  attr_accessor :updated_at
24
30
 
25
- # The name of the resource.
26
- attr_accessor :name
27
-
28
- # The ID of the linked resource.
29
- attr_accessor :resource_id
30
-
31
- # An alphanumeric string identifying the resource.
31
+ # An alphanumeric string identifying the resource link.
32
32
  attr_accessor :id
33
33
 
34
34
  # The path to the resource.
@@ -45,11 +45,11 @@ module Fastly
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
+ :'resource_id' => :'resource_id',
49
+ :'name' => :'name',
48
50
  :'created_at' => :'created_at',
49
51
  :'deleted_at' => :'deleted_at',
50
52
  :'updated_at' => :'updated_at',
51
- :'name' => :'name',
52
- :'resource_id' => :'resource_id',
53
53
  :'id' => :'id',
54
54
  :'href' => :'href',
55
55
  :'service_id' => :'service_id',
@@ -66,11 +66,11 @@ module Fastly
66
66
  # Attribute type mapping.
67
67
  def self.fastly_types
68
68
  {
69
+ :'resource_id' => :'String',
70
+ :'name' => :'String',
69
71
  :'created_at' => :'Time',
70
72
  :'deleted_at' => :'Time',
71
73
  :'updated_at' => :'Time',
72
- :'name' => :'String',
73
- :'resource_id' => :'String',
74
74
  :'id' => :'String',
75
75
  :'href' => :'String',
76
76
  :'service_id' => :'String',
@@ -91,7 +91,7 @@ module Fastly
91
91
  # List of class defined in allOf (OpenAPI v3)
92
92
  def self.fastly_all_of
93
93
  [
94
- :'ResourceCreate',
94
+ :'Resource',
95
95
  :'ResourceResponseAllOf',
96
96
  :'Timestamps'
97
97
  ]
@@ -112,6 +112,14 @@ module Fastly
112
112
  h[k.to_sym] = v
113
113
  }
114
114
 
115
+ if attributes.key?(:'resource_id')
116
+ self.resource_id = attributes[:'resource_id']
117
+ end
118
+
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
121
+ end
122
+
115
123
  if attributes.key?(:'created_at')
116
124
  self.created_at = attributes[:'created_at']
117
125
  end
@@ -124,14 +132,6 @@ module Fastly
124
132
  self.updated_at = attributes[:'updated_at']
125
133
  end
126
134
 
127
- if attributes.key?(:'name')
128
- self.name = attributes[:'name']
129
- end
130
-
131
- if attributes.key?(:'resource_id')
132
- self.resource_id = attributes[:'resource_id']
133
- end
134
-
135
135
  if attributes.key?(:'id')
136
136
  self.id = attributes[:'id']
137
137
  end
@@ -173,11 +173,11 @@ module Fastly
173
173
  def ==(o)
174
174
  return true if self.equal?(o)
175
175
  self.class == o.class &&
176
+ resource_id == o.resource_id &&
177
+ name == o.name &&
176
178
  created_at == o.created_at &&
177
179
  deleted_at == o.deleted_at &&
178
180
  updated_at == o.updated_at &&
179
- name == o.name &&
180
- resource_id == o.resource_id &&
181
181
  id == o.id &&
182
182
  href == o.href &&
183
183
  service_id == o.service_id &&
@@ -194,7 +194,7 @@ module Fastly
194
194
  # Calculates hash code according to all attributes.
195
195
  # @return [Integer] Hash code
196
196
  def hash
197
- [created_at, deleted_at, updated_at, name, resource_id, id, href, service_id, version, resource_type].hash
197
+ [resource_id, name, created_at, deleted_at, updated_at, id, href, service_id, version, resource_type].hash
198
198
  end
199
199
 
200
200
  # Builds the object from hash
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class ResourceResponseAllOf
16
- # An alphanumeric string identifying the resource.
16
+ # An alphanumeric string identifying the resource link.
17
17
  attr_accessor :id
18
18
 
19
19
  # The path to the resource.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Ratio of cache hits to cache misses (between 0 and 1).
45
45
  attr_accessor :hit_ratio
46
46
 
47
- # Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes`).
47
+ # Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`).
48
48
  attr_accessor :bandwidth
49
49
 
50
50
  # Total body bytes delivered (alias for resp_body_bytes).
@@ -602,10 +602,16 @@ module Fastly
602
602
  # Total published messages sent to end users.
603
603
  attr_accessor :fanout_send_publishes
604
604
 
605
- # The total number of reads received for the object store.
605
+ # The total number of class a operations for the object store.
606
+ attr_accessor :object_store_class_a_operations
607
+
608
+ # The total number of class b operations for the object store.
609
+ attr_accessor :object_store_class_b_operations
610
+
611
+ # Use object_store_class_b_operations.
606
612
  attr_accessor :object_store_read_requests
607
613
 
608
- # The total number of writes received for the object store.
614
+ # Use object_store_class_a_operations.
609
615
  attr_accessor :object_store_write_requests
610
616
 
611
617
  # Total header bytes received from end users over Fanout connections.
@@ -834,6 +840,8 @@ module Fastly
834
840
  :'websocket_conn_time_ms' => :'websocket_conn_time_ms',
835
841
  :'fanout_recv_publishes' => :'fanout_recv_publishes',
836
842
  :'fanout_send_publishes' => :'fanout_send_publishes',
843
+ :'object_store_class_a_operations' => :'object_store_class_a_operations',
844
+ :'object_store_class_b_operations' => :'object_store_class_b_operations',
837
845
  :'object_store_read_requests' => :'object_store_read_requests',
838
846
  :'object_store_write_requests' => :'object_store_write_requests',
839
847
  :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
@@ -1052,6 +1060,8 @@ module Fastly
1052
1060
  :'websocket_conn_time_ms' => :'Integer',
1053
1061
  :'fanout_recv_publishes' => :'Integer',
1054
1062
  :'fanout_send_publishes' => :'Integer',
1063
+ :'object_store_class_a_operations' => :'Integer',
1064
+ :'object_store_class_b_operations' => :'Integer',
1055
1065
  :'object_store_read_requests' => :'Integer',
1056
1066
  :'object_store_write_requests' => :'Integer',
1057
1067
  :'fanout_req_header_bytes' => :'Integer',
@@ -1872,6 +1882,14 @@ module Fastly
1872
1882
  self.fanout_send_publishes = attributes[:'fanout_send_publishes']
1873
1883
  end
1874
1884
 
1885
+ if attributes.key?(:'object_store_class_a_operations')
1886
+ self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1887
+ end
1888
+
1889
+ if attributes.key?(:'object_store_class_b_operations')
1890
+ self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1891
+ end
1892
+
1875
1893
  if attributes.key?(:'object_store_read_requests')
1876
1894
  self.object_store_read_requests = attributes[:'object_store_read_requests']
1877
1895
  end
@@ -2131,6 +2149,8 @@ module Fastly
2131
2149
  websocket_conn_time_ms == o.websocket_conn_time_ms &&
2132
2150
  fanout_recv_publishes == o.fanout_recv_publishes &&
2133
2151
  fanout_send_publishes == o.fanout_send_publishes &&
2152
+ object_store_class_a_operations == o.object_store_class_a_operations &&
2153
+ object_store_class_b_operations == o.object_store_class_b_operations &&
2134
2154
  object_store_read_requests == o.object_store_read_requests &&
2135
2155
  object_store_write_requests == o.object_store_write_requests &&
2136
2156
  fanout_req_header_bytes == o.fanout_req_header_bytes &&
@@ -2153,7 +2173,7 @@ module Fastly
2153
2173
  # Calculates hash code according to all attributes.
2154
2174
  # @return [Integer] Hash code
2155
2175
  def hash
2156
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, object_store_read_requests, object_store_write_requests, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms].hash
2176
+ [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms].hash
2157
2177
  end
2158
2178
 
2159
2179
  # Builds the object from hash
@@ -131,7 +131,7 @@ module Fastly
131
131
  # Check to see if the all the properties in the model are valid
132
132
  # @return true if the model is valid
133
133
  def valid?
134
- state_validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing"])
134
+ state_validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing", "failed"])
135
135
  return false unless state_validator.valid?(@state)
136
136
  true
137
137
  end
@@ -139,7 +139,7 @@ module Fastly
139
139
  # Custom attribute writer method checking allowed values (enum).
140
140
  # @param [Object] state Object to be assigned
141
141
  def state=(state)
142
- validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing"])
142
+ validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing", "failed"])
143
143
  unless validator.valid?(state)
144
144
  fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
145
145
  end
@@ -93,7 +93,7 @@ module Fastly
93
93
  # Check to see if the all the properties in the model are valid
94
94
  # @return true if the model is valid
95
95
  def valid?
96
- state_validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing"])
96
+ state_validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing", "failed"])
97
97
  return false unless state_validator.valid?(@state)
98
98
  true
99
99
  end
@@ -101,7 +101,7 @@ module Fastly
101
101
  # Custom attribute writer method checking allowed values (enum).
102
102
  # @param [Object] state Object to be assigned
103
103
  def state=(state)
104
- validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing"])
104
+ validator = EnumAttributeValidator.new('String', ["pending", "processing", "issued", "renewing", "failed"])
105
105
  unless validator.valid?(state)
106
106
  fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
107
107
  end
@@ -14,6 +14,8 @@ require 'time'
14
14
  module Fastly
15
15
  class TypeResource
16
16
  OBJECT_STORE = "object-store".freeze
17
+ SECRET_STORE = "secret-store".freeze
18
+ CONFIG_STORE = "config-store".freeze
17
19
 
18
20
  # Builds the enum from string
19
21
  # @param [String] The enum value in the form of the string
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '4.1.0'
12
+ VERSION = '4.2.0'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -86,9 +86,10 @@ require 'fastly/models/director_response'
86
86
  require 'fastly/models/domain'
87
87
  require 'fastly/models/domain_check_item'
88
88
  require 'fastly/models/domain_response'
89
- require 'fastly/models/enabled_product'
90
- require 'fastly/models/enabled_product_links'
91
- require 'fastly/models/enabled_product_product'
89
+ require 'fastly/models/enabled_product_response'
90
+ require 'fastly/models/enabled_product_response_links'
91
+ require 'fastly/models/enabled_product_response_product'
92
+ require 'fastly/models/enabled_product_response_service'
92
93
  require 'fastly/models/error_response'
93
94
  require 'fastly/models/error_response_data'
94
95
  require 'fastly/models/event'
@@ -97,8 +98,6 @@ require 'fastly/models/event_response'
97
98
  require 'fastly/models/events_response'
98
99
  require 'fastly/models/events_response_all_of'
99
100
  require 'fastly/models/generic_token_error'
100
- require 'fastly/models/get_stores_response'
101
- require 'fastly/models/get_stores_response_meta'
102
101
  require 'fastly/models/gzip'
103
102
  require 'fastly/models/gzip_response'
104
103
  require 'fastly/models/header'
@@ -143,6 +142,8 @@ require 'fastly/models/inline_object'
143
142
  require 'fastly/models/inline_object1'
144
143
  require 'fastly/models/inline_response200'
145
144
  require 'fastly/models/inline_response2001'
145
+ require 'fastly/models/inline_response2002'
146
+ require 'fastly/models/inline_response2002_meta'
146
147
  require 'fastly/models/invitation'
147
148
  require 'fastly/models/invitation_data'
148
149
  require 'fastly/models/invitation_data_attributes'
@@ -152,7 +153,6 @@ require 'fastly/models/invitation_response_data'
152
153
  require 'fastly/models/invitation_response_data_all_of'
153
154
  require 'fastly/models/invitations_response'
154
155
  require 'fastly/models/invitations_response_all_of'
155
- require 'fastly/models/key_response'
156
156
  require 'fastly/models/logging_address_and_port'
157
157
  require 'fastly/models/logging_azureblob'
158
158
  require 'fastly/models/logging_azureblob_all_of'
@@ -370,8 +370,6 @@ require 'fastly/models/relationships_for_waf_rule'
370
370
  require 'fastly/models/request_settings'
371
371
  require 'fastly/models/request_settings_response'
372
372
  require 'fastly/models/resource'
373
- require 'fastly/models/resource_create'
374
- require 'fastly/models/resource_create_all_of'
375
373
  require 'fastly/models/resource_response'
376
374
  require 'fastly/models/resource_response_all_of'
377
375
  require 'fastly/models/response_object'
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "83b1ff61", "D": "e4d025a1"}
1
+ {"G": "c9a346f2", "D": "91b21ede"}
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: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -141,9 +141,10 @@ files:
141
141
  - docs/DomainApi.md
142
142
  - docs/DomainCheckItem.md
143
143
  - docs/DomainResponse.md
144
- - docs/EnabledProduct.md
145
- - docs/EnabledProductLinks.md
146
- - docs/EnabledProductProduct.md
144
+ - docs/EnabledProductResponse.md
145
+ - docs/EnabledProductResponseLinks.md
146
+ - docs/EnabledProductResponseProduct.md
147
+ - docs/EnabledProductResponseService.md
147
148
  - docs/EnabledProductsApi.md
148
149
  - docs/ErrorResponse.md
149
150
  - docs/ErrorResponseData.md
@@ -154,8 +155,6 @@ files:
154
155
  - docs/EventsResponse.md
155
156
  - docs/EventsResponseAllOf.md
156
157
  - docs/GenericTokenError.md
157
- - docs/GetStoresResponse.md
158
- - docs/GetStoresResponseMeta.md
159
158
  - docs/Gzip.md
160
159
  - docs/GzipApi.md
161
160
  - docs/GzipResponse.md
@@ -209,6 +208,8 @@ files:
209
208
  - docs/InlineObject1.md
210
209
  - docs/InlineResponse200.md
211
210
  - docs/InlineResponse2001.md
211
+ - docs/InlineResponse2002.md
212
+ - docs/InlineResponse2002Meta.md
212
213
  - docs/Invitation.md
213
214
  - docs/InvitationData.md
214
215
  - docs/InvitationDataAttributes.md
@@ -219,7 +220,6 @@ files:
219
220
  - docs/InvitationsApi.md
220
221
  - docs/InvitationsResponse.md
221
222
  - docs/InvitationsResponseAllOf.md
222
- - docs/KeyResponse.md
223
223
  - docs/LoggingAddressAndPort.md
224
224
  - docs/LoggingAzureblob.md
225
225
  - docs/LoggingAzureblobAllOf.md
@@ -475,8 +475,6 @@ files:
475
475
  - docs/RequestSettingsResponse.md
476
476
  - docs/Resource.md
477
477
  - docs/ResourceApi.md
478
- - docs/ResourceCreate.md
479
- - docs/ResourceCreateAllOf.md
480
478
  - docs/ResourceResponse.md
481
479
  - docs/ResourceResponseAllOf.md
482
480
  - docs/ResponseObject.md
@@ -918,9 +916,10 @@ files:
918
916
  - lib/fastly/models/domain.rb
919
917
  - lib/fastly/models/domain_check_item.rb
920
918
  - lib/fastly/models/domain_response.rb
921
- - lib/fastly/models/enabled_product.rb
922
- - lib/fastly/models/enabled_product_links.rb
923
- - lib/fastly/models/enabled_product_product.rb
919
+ - lib/fastly/models/enabled_product_response.rb
920
+ - lib/fastly/models/enabled_product_response_links.rb
921
+ - lib/fastly/models/enabled_product_response_product.rb
922
+ - lib/fastly/models/enabled_product_response_service.rb
924
923
  - lib/fastly/models/error_response.rb
925
924
  - lib/fastly/models/error_response_data.rb
926
925
  - lib/fastly/models/event.rb
@@ -929,8 +928,6 @@ files:
929
928
  - lib/fastly/models/events_response.rb
930
929
  - lib/fastly/models/events_response_all_of.rb
931
930
  - lib/fastly/models/generic_token_error.rb
932
- - lib/fastly/models/get_stores_response.rb
933
- - lib/fastly/models/get_stores_response_meta.rb
934
931
  - lib/fastly/models/gzip.rb
935
932
  - lib/fastly/models/gzip_response.rb
936
933
  - lib/fastly/models/header.rb
@@ -975,6 +972,8 @@ files:
975
972
  - lib/fastly/models/inline_object1.rb
976
973
  - lib/fastly/models/inline_response200.rb
977
974
  - lib/fastly/models/inline_response2001.rb
975
+ - lib/fastly/models/inline_response2002.rb
976
+ - lib/fastly/models/inline_response2002_meta.rb
978
977
  - lib/fastly/models/invitation.rb
979
978
  - lib/fastly/models/invitation_data.rb
980
979
  - lib/fastly/models/invitation_data_attributes.rb
@@ -984,7 +983,6 @@ files:
984
983
  - lib/fastly/models/invitation_response_data_all_of.rb
985
984
  - lib/fastly/models/invitations_response.rb
986
985
  - lib/fastly/models/invitations_response_all_of.rb
987
- - lib/fastly/models/key_response.rb
988
986
  - lib/fastly/models/logging_address_and_port.rb
989
987
  - lib/fastly/models/logging_azureblob.rb
990
988
  - lib/fastly/models/logging_azureblob_all_of.rb
@@ -1202,8 +1200,6 @@ files:
1202
1200
  - lib/fastly/models/request_settings.rb
1203
1201
  - lib/fastly/models/request_settings_response.rb
1204
1202
  - lib/fastly/models/resource.rb
1205
- - lib/fastly/models/resource_create.rb
1206
- - lib/fastly/models/resource_create_all_of.rb
1207
1203
  - lib/fastly/models/resource_response.rb
1208
1204
  - lib/fastly/models/resource_response_all_of.rb
1209
1205
  - lib/fastly/models/response_object.rb
@@ -1,12 +0,0 @@
1
- # Fastly::EnabledProduct
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **product** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional] |
8
- | **service** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional] |
9
- | **_links** | [**EnabledProductLinks**](EnabledProductLinks.md) | | [optional] |
10
-
11
- [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
-
data/docs/KeyResponse.md DELETED
@@ -1,11 +0,0 @@
1
- # Fastly::KeyResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **data** | **Array<String>** | | [optional] |
8
- | **meta** | [**GetStoresResponseMeta**](GetStoresResponseMeta.md) | | [optional] |
9
-
10
- [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
-
@@ -1,11 +0,0 @@
1
- # Fastly::ResourceCreate
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | The name of the resource. | [optional] |
8
- | **resource_id** | **String** | The ID of the linked resource. | [optional] |
9
-
10
- [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
-