fastly 8.0.1 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +223 -130
  3. data/Gemfile.lock +1 -1
  4. data/README.md +19 -7
  5. data/docs/{ErrorResponse.md → AutomationTokenErrorResponse.md} +1 -1
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +5 -1
  8. data/docs/BackendApi.md +20 -4
  9. data/docs/BackendResponse.md +5 -1
  10. data/docs/BillingInvoicesApi.md +96 -0
  11. data/docs/Director.md +1 -1
  12. data/docs/DirectorApi.md +2 -2
  13. data/docs/DirectorResponse.md +1 -1
  14. data/docs/DomainInspectorHistoricalApi.md +4 -4
  15. data/docs/DomainInspectorRealtimeEntry.md +1 -1
  16. data/docs/Error.md +13 -0
  17. data/docs/ErrorResponseData.md +11 -0
  18. data/docs/Invoice.md +18 -0
  19. data/docs/InvoiceResponse.md +18 -0
  20. data/docs/Invoicelineitems.md +18 -0
  21. data/docs/KvStoreApi.md +1 -1
  22. data/docs/ListInvoicesResponse.md +11 -0
  23. data/docs/Listinvoices.md +11 -0
  24. data/docs/LoggingScalyrAdditional.md +1 -1
  25. data/docs/LoggingScalyrApi.md +4 -4
  26. data/docs/LoggingScalyrResponse.md +1 -1
  27. data/docs/Metadata.md +13 -0
  28. data/docs/OriginInspectorHistoricalApi.md +4 -4
  29. data/docs/OriginInspectorRealtimeEntry.md +1 -1
  30. data/docs/PoolAdditional.md +1 -1
  31. data/docs/PoolApi.md +4 -4
  32. data/docs/PoolResponse.md +1 -1
  33. data/docs/PoolResponsePost.md +1 -1
  34. data/docs/Pop.md +2 -2
  35. data/docs/PublishApi.md +1 -1
  36. data/docs/RealtimeEntry.md +1 -1
  37. data/docs/RealtimeEntryAggregated.md +22 -1
  38. data/docs/RealtimeMeasurements.md +22 -1
  39. data/docs/RelationshipCustomerCustomer.md +1 -1
  40. data/docs/Results.md +23 -0
  41. data/docs/SecretStoreApi.md +4 -2
  42. data/docs/SecretStoreItemApi.md +2 -2
  43. data/docs/ServiceDetail.md +1 -1
  44. data/docs/ServiceListResponse.md +2 -2
  45. data/docs/ServiceListResponseAllOf.md +2 -2
  46. data/docs/ServiceResponse.md +1 -1
  47. data/docs/ServiceResponseAllOf.md +1 -1
  48. data/docs/TlsConfigurationResponseAttributes.md +1 -1
  49. data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
  50. data/docs/TlsCsr.md +10 -0
  51. data/docs/TlsCsrData.md +12 -0
  52. data/docs/TlsCsrDataAttributes.md +20 -0
  53. data/docs/TlsCsrErrorResponse.md +10 -0
  54. data/docs/TlsCsrResponse.md +10 -0
  55. data/docs/TlsCsrResponseAttributes.md +10 -0
  56. data/docs/TlsCsrResponseData.md +13 -0
  57. data/docs/TlsCsrsApi.md +52 -0
  58. data/docs/TlsSubscriptionResponseAttributes.md +1 -0
  59. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -0
  60. data/docs/TokensApi.md +1 -1
  61. data/docs/TypeTlsCsr.md +9 -0
  62. data/docs/VclApi.md +1 -1
  63. data/docs/WafActiveRulesApi.md +1 -1
  64. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  65. data/lib/fastly/api/backend_api.rb +28 -4
  66. data/lib/fastly/api/billing_invoices_api.rb +151 -0
  67. data/lib/fastly/api/director_api.rb +2 -2
  68. data/lib/fastly/api/domain_inspector_historical_api.rb +4 -4
  69. data/lib/fastly/api/kv_store_api.rb +2 -2
  70. data/lib/fastly/api/logging_scalyr_api.rb +4 -4
  71. data/lib/fastly/api/origin_inspector_historical_api.rb +4 -4
  72. data/lib/fastly/api/pool_api.rb +4 -4
  73. data/lib/fastly/api/publish_api.rb +2 -2
  74. data/lib/fastly/api/secret_store_api.rb +5 -2
  75. data/lib/fastly/api/secret_store_item_api.rb +2 -2
  76. data/lib/fastly/api/tls_csrs_api.rb +83 -0
  77. data/lib/fastly/api/tokens_api.rb +2 -2
  78. data/lib/fastly/api/vcl_api.rb +2 -2
  79. data/lib/fastly/api/waf_active_rules_api.rb +2 -2
  80. data/lib/fastly/configuration.rb +18 -0
  81. data/lib/fastly/models/{error_response.rb → automation_token_error_response.rb} +3 -3
  82. data/lib/fastly/models/backend.rb +45 -2
  83. data/lib/fastly/models/backend_response.rb +45 -2
  84. data/lib/fastly/models/director.rb +1 -1
  85. data/lib/fastly/models/director_response.rb +1 -1
  86. data/lib/fastly/models/domain_inspector_realtime_entry.rb +1 -1
  87. data/lib/fastly/models/error.rb +243 -0
  88. data/lib/fastly/models/error_response_data.rb +225 -0
  89. data/lib/fastly/models/event_attributes.rb +2 -2
  90. data/lib/fastly/models/invoice.rb +298 -0
  91. data/lib/fastly/models/invoice_response.rb +305 -0
  92. data/lib/fastly/models/invoicelineitems.rb +297 -0
  93. data/lib/fastly/models/list_invoices_response.rb +234 -0
  94. data/lib/fastly/models/listinvoices.rb +227 -0
  95. data/lib/fastly/models/logging_scalyr_additional.rb +1 -1
  96. data/lib/fastly/models/logging_scalyr_response.rb +1 -1
  97. data/lib/fastly/models/metadata.rb +250 -0
  98. data/lib/fastly/models/origin_inspector_realtime_entry.rb +1 -1
  99. data/lib/fastly/models/pool_additional.rb +1 -1
  100. data/lib/fastly/models/pool_response.rb +1 -1
  101. data/lib/fastly/models/pool_response_post.rb +1 -1
  102. data/lib/fastly/models/pop.rb +2 -2
  103. data/lib/fastly/models/realtime_entry.rb +1 -1
  104. data/lib/fastly/models/realtime_entry_aggregated.rb +215 -5
  105. data/lib/fastly/models/realtime_measurements.rb +215 -5
  106. data/lib/fastly/models/relationship_customer_customer.rb +2 -4
  107. data/lib/fastly/models/relationship_tls_certificate.rb +1 -1
  108. data/lib/fastly/models/relationship_tls_configuration.rb +1 -1
  109. data/lib/fastly/models/request_settings_additional.rb +1 -0
  110. data/lib/fastly/models/request_settings_response.rb +6 -0
  111. data/lib/fastly/models/request_settings_response_all_of.rb +5 -0
  112. data/lib/fastly/models/results.rb +231 -1
  113. data/lib/fastly/models/service_detail.rb +1 -1
  114. data/lib/fastly/models/service_list_response.rb +2 -2
  115. data/lib/fastly/models/service_list_response_all_of.rb +2 -2
  116. data/lib/fastly/models/service_response.rb +1 -1
  117. data/lib/fastly/models/service_response_all_of.rb +1 -1
  118. data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
  119. data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
  120. data/lib/fastly/models/tls_csr.rb +216 -0
  121. data/lib/fastly/models/tls_csr_data.rb +236 -0
  122. data/lib/fastly/models/tls_csr_data_attributes.rb +358 -0
  123. data/lib/fastly/models/tls_csr_error_response.rb +218 -0
  124. data/lib/fastly/models/tls_csr_response.rb +216 -0
  125. data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
  126. data/lib/fastly/models/tls_csr_response_data.rb +245 -0
  127. data/lib/fastly/models/tls_subscription_data_attributes.rb +2 -2
  128. data/lib/fastly/models/tls_subscription_response_attributes.rb +14 -4
  129. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +14 -4
  130. data/lib/fastly/models/type_tls_csr.rb +34 -0
  131. data/lib/fastly/version.rb +1 -1
  132. data/lib/fastly.rb +19 -1
  133. data/sig.json +1 -1
  134. metadata +41 -5
@@ -277,7 +277,7 @@ module Fastly
277
277
  # Revoke an Automation Token by ID
278
278
  # Revoke an automation token by ID.
279
279
  # @option opts [String] :id (required)
280
- # @return [ErrorResponse]
280
+ # @return [AutomationTokenErrorResponse]
281
281
  def revoke_automation_token_id(opts = {})
282
282
  data, _status_code, _headers = revoke_automation_token_id_with_http_info(opts)
283
283
  data
@@ -286,7 +286,7 @@ module Fastly
286
286
  # Revoke an Automation Token by ID
287
287
  # Revoke an automation token by ID.
288
288
  # @option opts [String] :id (required)
289
- # @return [Array<(ErrorResponse, Integer, Hash)>] ErrorResponse data, response status code and response headers
289
+ # @return [Array<(AutomationTokenErrorResponse, Integer, Hash)>] AutomationTokenErrorResponse data, response status code and response headers
290
290
  def revoke_automation_token_id_with_http_info(opts = {})
291
291
  if @api_client.config.debugging
292
292
  @api_client.config.logger.debug 'Calling API: AutomationTokensApi.revoke_automation_token_id ...'
@@ -315,7 +315,7 @@ module Fastly
315
315
  post_body = opts[:debug_body]
316
316
 
317
317
  # return_type
318
- return_type = opts[:debug_return_type] || 'ErrorResponse'
318
+ return_type = opts[:debug_return_type] || 'AutomationTokenErrorResponse'
319
319
 
320
320
  # auth_names
321
321
  auth_names = opts[:debug_auth_names] || ['token']
@@ -45,11 +45,15 @@ module Fastly
45
45
  # @option opts [String] :ssl_ca_cert CA certificate attached to origin.
46
46
  # @option opts [String] :ssl_cert_hostname Overrides &#x60;ssl_hostname&#x60;, but only for cert verification. Does not affect SNI at all.
47
47
  # @option opts [Boolean] :ssl_check_cert Be strict on checking SSL certs. (default to true)
48
- # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
48
+ # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
49
49
  # @option opts [String] :ssl_client_cert Client certificate attached to origin.
50
50
  # @option opts [String] :ssl_client_key Client key attached to origin.
51
51
  # @option opts [String] :ssl_hostname Use &#x60;ssl_cert_hostname&#x60; and &#x60;ssl_sni_hostname&#x60; to configure certificate validation.
52
52
  # @option opts [String] :ssl_sni_hostname Overrides &#x60;ssl_hostname&#x60;, but only for SNI in the handshake. Does not affect cert validation at all.
53
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
54
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
55
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
56
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
53
57
  # @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
54
58
  # @option opts [Integer] :weight Weight used to load balance this backend against others. May be any positive integer. If &#x60;auto_loadbalance&#x60; is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have &#x60;auto_loadbalance&#x60; set to true.
55
59
  # @return [BackendResponse]
@@ -86,11 +90,15 @@ module Fastly
86
90
  # @option opts [String] :ssl_ca_cert CA certificate attached to origin.
87
91
  # @option opts [String] :ssl_cert_hostname Overrides &#x60;ssl_hostname&#x60;, but only for cert verification. Does not affect SNI at all.
88
92
  # @option opts [Boolean] :ssl_check_cert Be strict on checking SSL certs. (default to true)
89
- # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
93
+ # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
90
94
  # @option opts [String] :ssl_client_cert Client certificate attached to origin.
91
95
  # @option opts [String] :ssl_client_key Client key attached to origin.
92
96
  # @option opts [String] :ssl_hostname Use &#x60;ssl_cert_hostname&#x60; and &#x60;ssl_sni_hostname&#x60; to configure certificate validation.
93
97
  # @option opts [String] :ssl_sni_hostname Overrides &#x60;ssl_hostname&#x60;, but only for SNI in the handshake. Does not affect cert validation at all.
98
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
99
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
100
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
101
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
94
102
  # @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
95
103
  # @option opts [Integer] :weight Weight used to load balance this backend against others. May be any positive integer. If &#x60;auto_loadbalance&#x60; is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have &#x60;auto_loadbalance&#x60; set to true.
96
104
  # @return [Array<(BackendResponse, Integer, Hash)>] BackendResponse data, response status code and response headers
@@ -161,6 +169,10 @@ module Fastly
161
169
  form_params['ssl_client_key'] = opts[:'ssl_client_key'] if !opts[:'ssl_client_key'].nil?
162
170
  form_params['ssl_hostname'] = opts[:'ssl_hostname'] if !opts[:'ssl_hostname'].nil?
163
171
  form_params['ssl_sni_hostname'] = opts[:'ssl_sni_hostname'] if !opts[:'ssl_sni_hostname'].nil?
172
+ form_params['tcp_keepalive_enable'] = opts[:'tcp_keepalive_enable'] if !opts[:'tcp_keepalive_enable'].nil?
173
+ form_params['tcp_keepalive_interval'] = opts[:'tcp_keepalive_interval'] if !opts[:'tcp_keepalive_interval'].nil?
174
+ form_params['tcp_keepalive_probes'] = opts[:'tcp_keepalive_probes'] if !opts[:'tcp_keepalive_probes'].nil?
175
+ form_params['tcp_keepalive_time'] = opts[:'tcp_keepalive_time'] if !opts[:'tcp_keepalive_time'].nil?
164
176
  form_params['use_ssl'] = opts[:'use_ssl'] if !opts[:'use_ssl'].nil?
165
177
  form_params['weight'] = opts[:'weight'] if !opts[:'weight'].nil?
166
178
 
@@ -443,11 +455,15 @@ module Fastly
443
455
  # @option opts [String] :ssl_ca_cert CA certificate attached to origin.
444
456
  # @option opts [String] :ssl_cert_hostname Overrides &#x60;ssl_hostname&#x60;, but only for cert verification. Does not affect SNI at all.
445
457
  # @option opts [Boolean] :ssl_check_cert Be strict on checking SSL certs. (default to true)
446
- # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
458
+ # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
447
459
  # @option opts [String] :ssl_client_cert Client certificate attached to origin.
448
460
  # @option opts [String] :ssl_client_key Client key attached to origin.
449
461
  # @option opts [String] :ssl_hostname Use &#x60;ssl_cert_hostname&#x60; and &#x60;ssl_sni_hostname&#x60; to configure certificate validation.
450
462
  # @option opts [String] :ssl_sni_hostname Overrides &#x60;ssl_hostname&#x60;, but only for SNI in the handshake. Does not affect cert validation at all.
463
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
464
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
465
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
466
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
451
467
  # @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
452
468
  # @option opts [Integer] :weight Weight used to load balance this backend against others. May be any positive integer. If &#x60;auto_loadbalance&#x60; is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have &#x60;auto_loadbalance&#x60; set to true.
453
469
  # @return [BackendResponse]
@@ -485,11 +501,15 @@ module Fastly
485
501
  # @option opts [String] :ssl_ca_cert CA certificate attached to origin.
486
502
  # @option opts [String] :ssl_cert_hostname Overrides &#x60;ssl_hostname&#x60;, but only for cert verification. Does not affect SNI at all.
487
503
  # @option opts [Boolean] :ssl_check_cert Be strict on checking SSL certs. (default to true)
488
- # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
504
+ # @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
489
505
  # @option opts [String] :ssl_client_cert Client certificate attached to origin.
490
506
  # @option opts [String] :ssl_client_key Client key attached to origin.
491
507
  # @option opts [String] :ssl_hostname Use &#x60;ssl_cert_hostname&#x60; and &#x60;ssl_sni_hostname&#x60; to configure certificate validation.
492
508
  # @option opts [String] :ssl_sni_hostname Overrides &#x60;ssl_hostname&#x60;, but only for SNI in the handshake. Does not affect cert validation at all.
509
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
510
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
511
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
512
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
493
513
  # @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
494
514
  # @option opts [Integer] :weight Weight used to load balance this backend against others. May be any positive integer. If &#x60;auto_loadbalance&#x60; is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have &#x60;auto_loadbalance&#x60; set to true.
495
515
  # @return [Array<(BackendResponse, Integer, Hash)>] BackendResponse data, response status code and response headers
@@ -565,6 +585,10 @@ module Fastly
565
585
  form_params['ssl_client_key'] = opts[:'ssl_client_key'] if !opts[:'ssl_client_key'].nil?
566
586
  form_params['ssl_hostname'] = opts[:'ssl_hostname'] if !opts[:'ssl_hostname'].nil?
567
587
  form_params['ssl_sni_hostname'] = opts[:'ssl_sni_hostname'] if !opts[:'ssl_sni_hostname'].nil?
588
+ form_params['tcp_keepalive_enable'] = opts[:'tcp_keepalive_enable'] if !opts[:'tcp_keepalive_enable'].nil?
589
+ form_params['tcp_keepalive_interval'] = opts[:'tcp_keepalive_interval'] if !opts[:'tcp_keepalive_interval'].nil?
590
+ form_params['tcp_keepalive_probes'] = opts[:'tcp_keepalive_probes'] if !opts[:'tcp_keepalive_probes'].nil?
591
+ form_params['tcp_keepalive_time'] = opts[:'tcp_keepalive_time'] if !opts[:'tcp_keepalive_time'].nil?
568
592
  form_params['use_ssl'] = opts[:'use_ssl'] if !opts[:'use_ssl'].nil?
569
593
  form_params['weight'] = opts[:'weight'] if !opts[:'weight'].nil?
570
594
 
@@ -0,0 +1,151 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class BillingInvoicesApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Get invoice by ID.
21
+ # Returns invoice associated with the invoice id.
22
+ # @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
23
+ # @return [InvoiceResponse]
24
+ def get_invoice_by_invoice_id(opts = {})
25
+ data, _status_code, _headers = get_invoice_by_invoice_id_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Get invoice by ID.
30
+ # Returns invoice associated with the invoice id.
31
+ # @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
32
+ # @return [Array<(InvoiceResponse, Integer, Hash)>] InvoiceResponse data, response status code and response headers
33
+ def get_invoice_by_invoice_id_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: BillingInvoicesApi.get_invoice_by_invoice_id ...'
36
+ end
37
+ # unbox the parameters from the hash
38
+ invoice_id = opts[:'invoice_id']
39
+ # verify the required parameter 'invoice_id' is set
40
+ if @api_client.config.client_side_validation && invoice_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'invoice_id' when calling BillingInvoicesApi.get_invoice_by_invoice_id"
42
+ end
43
+ # resource path
44
+ local_var_path = '/billing/v3/invoices/{invoice_id}'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body]
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'InvoiceResponse'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['token']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"BillingInvoicesApi.get_invoice_by_invoice_id",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: BillingInvoicesApi#get_invoice_by_invoice_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # List of invoices.
84
+ # Returns the list of invoices, sorted by billing start date (newest to oldest).
85
+ # @option opts [String] :billing_start_date
86
+ # @option opts [String] :billing_end_date
87
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
88
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
89
+ # @return [ListInvoicesResponse]
90
+ def list_invoices(opts = {})
91
+ data, _status_code, _headers = list_invoices_with_http_info(opts)
92
+ data
93
+ end
94
+
95
+ # List of invoices.
96
+ # Returns the list of invoices, sorted by billing start date (newest to oldest).
97
+ # @option opts [String] :billing_start_date
98
+ # @option opts [String] :billing_end_date
99
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
100
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
101
+ # @return [Array<(ListInvoicesResponse, Integer, Hash)>] ListInvoicesResponse data, response status code and response headers
102
+ def list_invoices_with_http_info(opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: BillingInvoicesApi.list_invoices ...'
105
+ end
106
+ # unbox the parameters from the hash
107
+ # resource path
108
+ local_var_path = '/billing/v3/invoices'
109
+
110
+ # query parameters
111
+ query_params = opts[:query_params] || {}
112
+ query_params[:'billing_start_date'] = opts[:'billing_start_date'] if !opts[:'billing_start_date'].nil?
113
+ query_params[:'billing_end_date'] = opts[:'billing_end_date'] if !opts[:'billing_end_date'].nil?
114
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
115
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
116
+
117
+ # header parameters
118
+ header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
121
+
122
+ # form parameters
123
+ form_params = opts[:form_params] || {}
124
+
125
+ # http body (model)
126
+ post_body = opts[:debug_body]
127
+
128
+ # return_type
129
+ return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
130
+
131
+ # auth_names
132
+ auth_names = opts[:debug_auth_names] || ['token']
133
+
134
+ new_options = opts.merge(
135
+ :operation => :"BillingInvoicesApi.list_invoices",
136
+ :header_params => header_params,
137
+ :query_params => query_params,
138
+ :form_params => form_params,
139
+ :body => post_body,
140
+ :auth_names => auth_names,
141
+ :return_type => return_type
142
+ )
143
+
144
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
145
+ if @api_client.config.debugging
146
+ @api_client.config.logger.debug "API called: BillingInvoicesApi#list_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ end
148
+ return data, status_code, headers
149
+ end
150
+ end
151
+ end
@@ -26,7 +26,7 @@ module Fastly
26
26
  # @option opts [String] :comment A freeform descriptive note.
27
27
  # @option opts [String] :name Name for the Director.
28
28
  # @option opts [Integer] :quorum The percentage of capacity that needs to be up for a director to be considered up. &#x60;0&#x60; to &#x60;100&#x60;. (default to 75)
29
- # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
29
+ # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
30
30
  # @option opts [Integer] :type What type of load balance group to use. (default to 1)
31
31
  # @option opts [Integer] :retries How many backends to search if it fails. (default to 5)
32
32
  # @return [DirectorResponse]
@@ -44,7 +44,7 @@ module Fastly
44
44
  # @option opts [String] :comment A freeform descriptive note.
45
45
  # @option opts [String] :name Name for the Director.
46
46
  # @option opts [Integer] :quorum The percentage of capacity that needs to be up for a director to be considered up. &#x60;0&#x60; to &#x60;100&#x60;. (default to 75)
47
- # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
47
+ # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
48
48
  # @option opts [Integer] :type What type of load balance group to use. (default to 1)
49
49
  # @option opts [Integer] :retries How many backends to search if it fails. (default to 5)
50
50
  # @return [Array<(DirectorResponse, Integer, Hash)>] DirectorResponse data, response status code and response headers
@@ -23,10 +23,10 @@ module Fastly
23
23
  # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
24
24
  # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
25
25
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
26
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'edge_requests')
26
+ # @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'edge_requests')
27
27
  # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;domain&#x60; will return one timeseries for every domain, as a total across all datacenters (POPs).
28
28
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
29
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
29
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
30
30
  # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
31
31
  # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
32
32
  # @option opts [String] :domain Limit query to one or more specific domains. Values should be comma-separated.
@@ -42,10 +42,10 @@ module Fastly
42
42
  # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
43
43
  # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
44
44
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
45
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'edge_requests')
45
+ # @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'edge_requests')
46
46
  # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;domain&#x60; will return one timeseries for every domain, as a total across all datacenters (POPs).
47
47
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
48
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
48
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
49
49
  # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
50
50
  # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
51
51
  # @option opts [String] :domain Limit query to one or more specific domains. Values should be comma-separated.
@@ -210,7 +210,7 @@ module Fastly
210
210
  # List KV stores.
211
211
  # Get all stores for a given customer.
212
212
  # @option opts [String] :cursor
213
- # @option opts [Integer] :limit (default to 100)
213
+ # @option opts [Integer] :limit (default to 1000)
214
214
  # @return [InlineResponse2003]
215
215
  def get_stores(opts = {})
216
216
  data, _status_code, _headers = get_stores_with_http_info(opts)
@@ -220,7 +220,7 @@ module Fastly
220
220
  # List KV stores.
221
221
  # Get all stores for a given customer.
222
222
  # @option opts [String] :cursor
223
- # @option opts [Integer] :limit (default to 100)
223
+ # @option opts [Integer] :limit (default to 1000)
224
224
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
225
225
  def get_stores_with_http_info(opts = {})
226
226
  if @api_client.config.debugging
@@ -27,7 +27,7 @@ module Fastly
27
27
  # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %&gt;s %b')
28
28
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
29
29
  # @option opts [String] :region The region that log data will be sent to. (default to 'US')
30
- # @option opts [String] :token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
30
+ # @option opts [String] :token The token to use for authentication.
31
31
  # @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
32
32
  # @return [LoggingScalyrResponse]
33
33
  def create_log_scalyr(opts = {})
@@ -45,7 +45,7 @@ module Fastly
45
45
  # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %&gt;s %b')
46
46
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
47
47
  # @option opts [String] :region The region that log data will be sent to. (default to 'US')
48
- # @option opts [String] :token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
48
+ # @option opts [String] :token The token to use for authentication.
49
49
  # @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
50
50
  # @return [Array<(LoggingScalyrResponse, Integer, Hash)>] LoggingScalyrResponse data, response status code and response headers
51
51
  def create_log_scalyr_with_http_info(opts = {})
@@ -363,7 +363,7 @@ module Fastly
363
363
  # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %&gt;s %b')
364
364
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
365
365
  # @option opts [String] :region The region that log data will be sent to. (default to 'US')
366
- # @option opts [String] :token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
366
+ # @option opts [String] :token The token to use for authentication.
367
367
  # @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
368
368
  # @return [LoggingScalyrResponse]
369
369
  def update_log_scalyr(opts = {})
@@ -382,7 +382,7 @@ module Fastly
382
382
  # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %&gt;s %b')
383
383
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
384
384
  # @option opts [String] :region The region that log data will be sent to. (default to 'US')
385
- # @option opts [String] :token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
385
+ # @option opts [String] :token The token to use for authentication.
386
386
  # @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
387
387
  # @return [Array<(LoggingScalyrResponse, Integer, Hash)>] LoggingScalyrResponse data, response status code and response headers
388
388
  def update_log_scalyr_with_http_info(opts = {})
@@ -23,10 +23,10 @@ module Fastly
23
23
  # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
24
24
  # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
25
25
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
26
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
26
+ # @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'responses')
27
27
  # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;host&#x60; will return one timeseries for every origin host, as a total across all POPs.
28
28
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
29
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
29
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
30
30
  # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
31
31
  # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
32
32
  # @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
@@ -42,10 +42,10 @@ module Fastly
42
42
  # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
43
43
  # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
44
44
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
45
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
45
+ # @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'responses')
46
46
  # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;host&#x60; will return one timeseries for every origin host, as a total across all POPs.
47
47
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
48
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
48
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
49
49
  # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
50
50
  # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
51
51
  # @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
@@ -32,7 +32,7 @@ module Fastly
32
32
  # @option opts [String] :service_id
33
33
  # @option opts [String] :version
34
34
  # @option opts [String] :name Name for the Pool.
35
- # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
35
+ # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
36
36
  # @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
37
37
  # @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
38
38
  # @option opts [String] :tls_sni_hostname SNI hostname. Optional.
@@ -69,7 +69,7 @@ module Fastly
69
69
  # @option opts [String] :service_id
70
70
  # @option opts [String] :version
71
71
  # @option opts [String] :name Name for the Pool.
72
- # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
72
+ # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
73
73
  # @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
74
74
  # @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
75
75
  # @option opts [String] :tls_sni_hostname SNI hostname. Optional.
@@ -429,7 +429,7 @@ module Fastly
429
429
  # @option opts [String] :service_id
430
430
  # @option opts [String] :version
431
431
  # @option opts [String] :name Name for the Pool.
432
- # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
432
+ # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
433
433
  # @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
434
434
  # @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
435
435
  # @option opts [String] :tls_sni_hostname SNI hostname. Optional.
@@ -467,7 +467,7 @@ module Fastly
467
467
  # @option opts [String] :service_id
468
468
  # @option opts [String] :version
469
469
  # @option opts [String] :name Name for the Pool.
470
- # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
470
+ # @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to &#x60;null&#x60; meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
471
471
  # @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
472
472
  # @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
473
473
  # @option opts [String] :tls_sni_hostname SNI hostname. Optional.
@@ -18,7 +18,7 @@ module Fastly
18
18
  @api_client = api_client
19
19
  end
20
20
  # Send messages to Fanout subscribers
21
- # Send one or more messages to [Fanout](https://developer.fastly.com/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. > **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme.
21
+ # Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. > **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme.
22
22
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
23
  # @option opts [PublishRequest] :publish_request
24
24
  # @return [String]
@@ -28,7 +28,7 @@ module Fastly
28
28
  end
29
29
 
30
30
  # Send messages to Fanout subscribers
31
- # Send one or more messages to [Fanout](https://developer.fastly.com/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. &gt; **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the &#x60;Authorization&#x60; header (instead of the &#x60;Fastly-Key&#x60; header) using the &#x60;Bearer&#x60; scheme.
31
+ # Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. &gt; **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the &#x60;Authorization&#x60; header (instead of the &#x60;Fastly-Key&#x60; header) using the &#x60;Bearer&#x60; scheme.
32
32
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
33
33
  # @option opts [PublishRequest] :publish_request
34
34
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
@@ -262,8 +262,9 @@ module Fastly
262
262
 
263
263
  # Get all secret stores
264
264
  # Get all secret stores.
265
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
265
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
266
266
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
267
+ # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
267
268
  # @return [InlineResponse2005]
268
269
  def get_secret_stores(opts = {})
269
270
  data, _status_code, _headers = get_secret_stores_with_http_info(opts)
@@ -272,8 +273,9 @@ module Fastly
272
273
 
273
274
  # Get all secret stores
274
275
  # Get all secret stores.
275
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
276
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
276
277
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
278
+ # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
277
279
  # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
278
280
  def get_secret_stores_with_http_info(opts = {})
279
281
  if @api_client.config.debugging
@@ -287,6 +289,7 @@ module Fastly
287
289
  query_params = opts[:query_params] || {}
288
290
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
289
291
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
292
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
290
293
 
291
294
  # header parameters
292
295
  header_params = opts[:header_params] || {}
@@ -228,7 +228,7 @@ module Fastly
228
228
  # List secrets within a store.
229
229
  # List all secrets within a store.
230
230
  # @option opts [String] :store_id (required)
231
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
231
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
232
232
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
233
233
  # @return [InlineResponse2006]
234
234
  def get_secrets(opts = {})
@@ -239,7 +239,7 @@ module Fastly
239
239
  # List secrets within a store.
240
240
  # List all secrets within a store.
241
241
  # @option opts [String] :store_id (required)
242
- # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
242
+ # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
243
243
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
244
244
  # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
245
245
  def get_secrets_with_http_info(opts = {})
@@ -0,0 +1,83 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class TlsCsrsApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Create CSR
21
+ # Creates a certificate signing request (CSR).
22
+ # @option opts [TlsCsr] :tls_csr
23
+ # @return [TlsCsrResponse]
24
+ def create_csr(opts = {})
25
+ data, _status_code, _headers = create_csr_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Create CSR
30
+ # Creates a certificate signing request (CSR).
31
+ # @option opts [TlsCsr] :tls_csr
32
+ # @return [Array<(TlsCsrResponse, Integer, Hash)>] TlsCsrResponse data, response status code and response headers
33
+ def create_csr_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: TlsCsrsApi.create_csr ...'
36
+ end
37
+ # unbox the parameters from the hash
38
+ # resource path
39
+ local_var_path = '/tls/certificate_signing_requests'
40
+
41
+ # query parameters
42
+ query_params = opts[:query_params] || {}
43
+
44
+ # header parameters
45
+ header_params = opts[:header_params] || {}
46
+ # HTTP header 'Accept' (if needed)
47
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
48
+ # HTTP header 'Content-Type'
49
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
50
+ if !content_type.nil?
51
+ header_params['Content-Type'] = content_type
52
+ end
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'tls_csr'])
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'TlsCsrResponse'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['token']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"TlsCsrsApi.create_csr",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: TlsCsrsApi#create_csr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ end
83
+ end
@@ -79,7 +79,7 @@ module Fastly
79
79
  end
80
80
 
81
81
  # Create a token
82
- # Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request.
82
+ # Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request.
83
83
  # @return [TokenCreatedResponse]
84
84
  def create_token(opts = {})
85
85
  data, _status_code, _headers = create_token_with_http_info(opts)
@@ -87,7 +87,7 @@ module Fastly
87
87
  end
88
88
 
89
89
  # Create a token
90
- # Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request.
90
+ # Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request.
91
91
  # @return [Array<(TokenCreatedResponse, Integer, Hash)>] TokenCreatedResponse data, response status code and response headers
92
92
  def create_token_with_http_info(opts = {})
93
93
  if @api_client.config.debugging