fastly 6.0.1 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a4f45fab1a06cfd7db2ec2f7705f35a66c1fa174f1da9a72c5b07e656b1e0d2
4
- data.tar.gz: 49a176bd63b0138a8f143d01c536a102090d83b0fac9710d9d6c9e02e59848e8
3
+ metadata.gz: 1ed23e22a5908659c700134494ecf48df386ff42c2909654c97f912809bf4d08
4
+ data.tar.gz: 199c167ebd4a4e65219c210d308ee867891ff9da0702f97da6ca92389d45d683
5
5
  SHA512:
6
- metadata.gz: bb6cd9d12dbc31c8e566be3c4a6e3f9025e8f171e8e4db3e564d6808d2e2f6d7d4cea744c36090add68cc2dd317b34fe8ae48c735b2e6c307a5d6811ea556273
7
- data.tar.gz: bd560421c31c30fd1ec777b0b4388e5756cc7de4ab22e711d8dd896c4a86a5d4da4f90163eb167867e5713e0d1f66885835ffb7f9142908896f3f1bf1e2489d4
6
+ metadata.gz: 0cbcc514172260a8a921070e51e1cbdf42961ff4ca0083daf3e11f15e426347eb6f018e598fce28b3a47fea65f563935b72e72bcc2e42b0f7235b00b01a39602
7
+ data.tar.gz: 8b1dd194857d2d58eb56417e536c2fb684b0b2e01d6c1b3750097896d797cfc15e421fa5d556e6c72d41950711dead9d93392a3205391e9f58583b0c1c302923
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v6.0.2](https://github.com/fastly/fastly-ruby/releases/tag/release/v6.0.2) (2023-07-13)
4
+
5
+ **Bug fixes:**
6
+
7
+ - fix(logging_gcs): set expected default value for 'path'.
8
+ - fix(origin_inspector_historical): use correct type for 'values'.
9
+ - fix(tls_subscriptions): fix argument order for deleting globalsign email challenge.
10
+
3
11
  ## [v6.0.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v6.0.1) (2023-07-12)
4
12
 
5
13
  **Bug fixes:**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (6.0.1)
4
+ fastly (6.0.2)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
8
8
  To install via RubyGems, add the following to your project's `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem 'fastly', '~> 6.0.1'
11
+ gem 'fastly', '~> 6.0.2'
12
12
  ```
13
13
 
14
14
  Then run `bundle install`.
data/docs/LoggingGcs.md CHANGED
@@ -18,7 +18,7 @@
18
18
  | **secret_key** | **String** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] |
19
19
  | **account_name** | **String** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] |
20
20
  | **bucket_name** | **String** | The name of the GCS bucket. | [optional] |
21
- | **path** | **String** | The path to upload logs to. | [optional] |
21
+ | **path** | **String** | | [optional][default to '/'] |
22
22
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to 'null'] |
23
23
  | **project_id** | **String** | Your Google Cloud Platform project ID. Required | [optional] |
24
24
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **bucket_name** | **String** | The name of the GCS bucket. | [optional] |
8
- | **path** | **String** | The path to upload logs to. | [optional] |
8
+ | **path** | **String** | | [optional][default to '/'] |
9
9
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to 'null'] |
10
10
  | **project_id** | **String** | Your Google Cloud Platform project ID. Required | [optional] |
11
11
 
@@ -46,7 +46,7 @@ opts = {
46
46
  secret_key: 'secret_key_example', # String | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
47
47
  account_name: 'account_name_example', # String | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
48
48
  bucket_name: 'bucket_name_example', # String | The name of the GCS bucket.
49
- path: 'path_example', # String | The path to upload logs to.
49
+ path: 'path_example', # String |
50
50
  public_key: 'public_key_example', # String | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
51
51
  project_id: 'project_id_example', # String | Your Google Cloud Platform project ID. Required
52
52
  }
@@ -80,7 +80,7 @@ end
80
80
  | **secret_key** | **String** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] |
81
81
  | **account_name** | **String** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] |
82
82
  | **bucket_name** | **String** | The name of the GCS bucket. | [optional] |
83
- | **path** | **String** | The path to upload logs to. | [optional] |
83
+ | **path** | **String** | | [optional][default to '/'] |
84
84
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to 'null'] |
85
85
  | **project_id** | **String** | Your Google Cloud Platform project ID. Required | [optional] |
86
86
 
@@ -241,7 +241,7 @@ opts = {
241
241
  secret_key: 'secret_key_example', # String | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
242
242
  account_name: 'account_name_example', # String | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
243
243
  bucket_name: 'bucket_name_example', # String | The name of the GCS bucket.
244
- path: 'path_example', # String | The path to upload logs to.
244
+ path: 'path_example', # String |
245
245
  public_key: 'public_key_example', # String | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
246
246
  project_id: 'project_id_example', # String | Your Google Cloud Platform project ID. Required
247
247
  }
@@ -276,7 +276,7 @@ end
276
276
  | **secret_key** | **String** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] |
277
277
  | **account_name** | **String** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] |
278
278
  | **bucket_name** | **String** | The name of the GCS bucket. | [optional] |
279
- | **path** | **String** | The path to upload logs to. | [optional] |
279
+ | **path** | **String** | | [optional][default to '/'] |
280
280
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to 'null'] |
281
281
  | **project_id** | **String** | Your Google Cloud Platform project ID. Required | [optional] |
282
282
 
@@ -18,7 +18,7 @@
18
18
  | **secret_key** | **String** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] |
19
19
  | **account_name** | **String** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] |
20
20
  | **bucket_name** | **String** | The name of the GCS bucket. | [optional] |
21
- | **path** | **String** | The path to upload logs to. | [optional] |
21
+ | **path** | **String** | | [optional][default to '/'] |
22
22
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to 'null'] |
23
23
  | **project_id** | **String** | Your Google Cloud Platform project ID. Required | [optional] |
24
24
  | **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **dimensions** | [**OriginInspectorDimensions**](OriginInspectorDimensions.md) | | [optional] |
8
- | **values** | [**Values**](Values.md) | | [optional] |
8
+ | **values** | [**Array<OriginInspectorValues>**](OriginInspectorValues.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] |
9
9
 
10
10
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
11
 
@@ -113,8 +113,8 @@ Deletes a GlobalSign email challenge. After a GlobalSign email challenge is dele
113
113
  api_instance = Fastly::TlsSubscriptionsApi.new
114
114
  opts = {
115
115
  tls_subscription_id: 'tls_subscription_id_example', # String | Alphanumeric string identifying a TLS subscription.
116
- globalsign_email_challenge_id: 'gU3guUGZzb2W9Euo4Mo0r', # String | Alphanumeric string identifying a GlobalSign email challenge.
117
116
  tls_authorization_id: 'tls_authorization_id_example', # String | Alphanumeric string identifying a TLS subscription.
117
+ globalsign_email_challenge_id: 'gU3guUGZzb2W9Euo4Mo0r', # String | Alphanumeric string identifying a GlobalSign email challenge.
118
118
  }
119
119
 
120
120
  begin
@@ -130,8 +130,8 @@ end
130
130
  | Name | Type | Description | Notes |
131
131
  | ---- | ---- | ----------- | ----- |
132
132
  | **tls_subscription_id** | **String** | Alphanumeric string identifying a TLS subscription. | |
133
- | **globalsign_email_challenge_id** | **String** | Alphanumeric string identifying a GlobalSign email challenge. | |
134
133
  | **tls_authorization_id** | **String** | Alphanumeric string identifying a TLS subscription. | |
134
+ | **globalsign_email_challenge_id** | **String** | Alphanumeric string identifying a GlobalSign email challenge. | |
135
135
 
136
136
  ### Return type
137
137
 
@@ -35,7 +35,7 @@ module Fastly
35
35
  # @option opts [String] :secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
36
36
  # @option opts [String] :account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
37
37
  # @option opts [String] :bucket_name The name of the GCS bucket.
38
- # @option opts [String] :path The path to upload logs to.
38
+ # @option opts [String] :path (default to '/')
39
39
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
40
40
  # @option opts [String] :project_id Your Google Cloud Platform project ID. Required
41
41
  # @return [LoggingGcsResponse]
@@ -62,7 +62,7 @@ module Fastly
62
62
  # @option opts [String] :secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
63
63
  # @option opts [String] :account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
64
64
  # @option opts [String] :bucket_name The name of the GCS bucket.
65
- # @option opts [String] :path The path to upload logs to.
65
+ # @option opts [String] :path (default to '/')
66
66
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
67
67
  # @option opts [String] :project_id Your Google Cloud Platform project ID. Required
68
68
  # @return [Array<(LoggingGcsResponse, Integer, Hash)>] LoggingGcsResponse data, response status code and response headers
@@ -402,7 +402,7 @@ module Fastly
402
402
  # @option opts [String] :secret_key Your Google Cloud Platform account secret key. The &#x60;private_key&#x60; field in your service account authentication JSON. Not required if &#x60;account_name&#x60; is specified.
403
403
  # @option opts [String] :account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if &#x60;user&#x60; and &#x60;secret_key&#x60; are provided.
404
404
  # @option opts [String] :bucket_name The name of the GCS bucket.
405
- # @option opts [String] :path The path to upload logs to.
405
+ # @option opts [String] :path (default to '/')
406
406
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
407
407
  # @option opts [String] :project_id Your Google Cloud Platform project ID. Required
408
408
  # @return [LoggingGcsResponse]
@@ -430,7 +430,7 @@ module Fastly
430
430
  # @option opts [String] :secret_key Your Google Cloud Platform account secret key. The &#x60;private_key&#x60; field in your service account authentication JSON. Not required if &#x60;account_name&#x60; is specified.
431
431
  # @option opts [String] :account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if &#x60;user&#x60; and &#x60;secret_key&#x60; are provided.
432
432
  # @option opts [String] :bucket_name The name of the GCS bucket.
433
- # @option opts [String] :path The path to upload logs to.
433
+ # @option opts [String] :path (default to '/')
434
434
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
435
435
  # @option opts [String] :project_id Your Google Cloud Platform project ID. Required
436
436
  # @return [Array<(LoggingGcsResponse, Integer, Hash)>] LoggingGcsResponse data, response status code and response headers
@@ -163,8 +163,8 @@ module Fastly
163
163
  # Delete a GlobalSign email challenge
164
164
  # Deletes a GlobalSign email challenge. After a GlobalSign email challenge is deleted, the domain can use HTTP and DNS validation methods again.
165
165
  # @option opts [String] :tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
166
- # @option opts [String] :globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
167
166
  # @option opts [String] :tls_authorization_id Alphanumeric string identifying a TLS subscription. (required)
167
+ # @option opts [String] :globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
168
168
  # @return [nil]
169
169
  def delete_globalsign_email_challenge(opts = {})
170
170
  delete_globalsign_email_challenge_with_http_info(opts)
@@ -174,8 +174,8 @@ module Fastly
174
174
  # Delete a GlobalSign email challenge
175
175
  # Deletes a GlobalSign email challenge. After a GlobalSign email challenge is deleted, the domain can use HTTP and DNS validation methods again.
176
176
  # @option opts [String] :tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
177
- # @option opts [String] :globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
178
177
  # @option opts [String] :tls_authorization_id Alphanumeric string identifying a TLS subscription. (required)
178
+ # @option opts [String] :globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
179
179
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
180
180
  def delete_globalsign_email_challenge_with_http_info(opts = {})
181
181
  if @api_client.config.debugging
@@ -183,22 +183,22 @@ module Fastly
183
183
  end
184
184
  # unbox the parameters from the hash
185
185
  tls_subscription_id = opts[:'tls_subscription_id']
186
- globalsign_email_challenge_id = opts[:'globalsign_email_challenge_id']
187
186
  tls_authorization_id = opts[:'tls_authorization_id']
187
+ globalsign_email_challenge_id = opts[:'globalsign_email_challenge_id']
188
188
  # verify the required parameter 'tls_subscription_id' is set
189
189
  if @api_client.config.client_side_validation && tls_subscription_id.nil?
190
190
  fail ArgumentError, "Missing the required parameter 'tls_subscription_id' when calling TlsSubscriptionsApi.delete_globalsign_email_challenge"
191
191
  end
192
- # verify the required parameter 'globalsign_email_challenge_id' is set
193
- if @api_client.config.client_side_validation && globalsign_email_challenge_id.nil?
194
- fail ArgumentError, "Missing the required parameter 'globalsign_email_challenge_id' when calling TlsSubscriptionsApi.delete_globalsign_email_challenge"
195
- end
196
192
  # verify the required parameter 'tls_authorization_id' is set
197
193
  if @api_client.config.client_side_validation && tls_authorization_id.nil?
198
194
  fail ArgumentError, "Missing the required parameter 'tls_authorization_id' when calling TlsSubscriptionsApi.delete_globalsign_email_challenge"
199
195
  end
196
+ # verify the required parameter 'globalsign_email_challenge_id' is set
197
+ if @api_client.config.client_side_validation && globalsign_email_challenge_id.nil?
198
+ fail ArgumentError, "Missing the required parameter 'globalsign_email_challenge_id' when calling TlsSubscriptionsApi.delete_globalsign_email_challenge"
199
+ end
200
200
  # resource path
201
- local_var_path = '/tls/subscriptions/{tls_subscription_id}/authorizations/{tls_authorization_id}/globalsign_email_challenges/{globalsign_email_challenge_id}'.sub('{' + 'tls_subscription_id' + '}', CGI.escape(tls_subscription_id.to_s)).sub('{' + 'globalsign_email_challenge_id' + '}', CGI.escape(globalsign_email_challenge_id.to_s)).sub('{' + 'tls_authorization_id' + '}', CGI.escape(tls_authorization_id.to_s))
201
+ local_var_path = '/tls/subscriptions/{tls_subscription_id}/authorizations/{tls_authorization_id}/globalsign_email_challenges/{globalsign_email_challenge_id}'.sub('{' + 'tls_subscription_id' + '}', CGI.escape(tls_subscription_id.to_s)).sub('{' + 'tls_authorization_id' + '}', CGI.escape(tls_authorization_id.to_s)).sub('{' + 'globalsign_email_challenge_id' + '}', CGI.escape(globalsign_email_challenge_id.to_s))
202
202
 
203
203
  # query parameters
204
204
  query_params = opts[:query_params] || {}
@@ -55,7 +55,6 @@ module Fastly
55
55
  # The name of the GCS bucket.
56
56
  attr_accessor :bucket_name
57
57
 
58
- # The path to upload logs to.
59
58
  attr_accessor :path
60
59
 
61
60
  # A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
@@ -240,6 +239,8 @@ module Fastly
240
239
 
241
240
  if attributes.key?(:'path')
242
241
  self.path = attributes[:'path']
242
+ else
243
+ self.path = '/'
243
244
  end
244
245
 
245
246
  if attributes.key?(:'public_key')
@@ -16,7 +16,6 @@ module Fastly
16
16
  # The name of the GCS bucket.
17
17
  attr_accessor :bucket_name
18
18
 
19
- # The path to upload logs to.
20
19
  attr_accessor :path
21
20
 
22
21
  # A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
@@ -78,6 +77,8 @@ module Fastly
78
77
 
79
78
  if attributes.key?(:'path')
80
79
  self.path = attributes[:'path']
80
+ else
81
+ self.path = '/'
81
82
  end
82
83
 
83
84
  if attributes.key?(:'public_key')
@@ -55,7 +55,6 @@ module Fastly
55
55
  # The name of the GCS bucket.
56
56
  attr_accessor :bucket_name
57
57
 
58
- # The path to upload logs to.
59
58
  attr_accessor :path
60
59
 
61
60
  # A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
@@ -265,6 +264,8 @@ module Fastly
265
264
 
266
265
  if attributes.key?(:'path')
267
266
  self.path = attributes[:'path']
267
+ else
268
+ self.path = '/'
268
269
  end
269
270
 
270
271
  if attributes.key?(:'public_key')
@@ -15,6 +15,7 @@ module Fastly
15
15
  class OriginInspectorHistoricalData
16
16
  attr_accessor :dimensions
17
17
 
18
+ # An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record.
18
19
  attr_accessor :values
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module Fastly
34
35
  def self.fastly_types
35
36
  {
36
37
  :'dimensions' => :'OriginInspectorDimensions',
37
- :'values' => :'Values'
38
+ :'values' => :'Array<OriginInspectorValues>'
38
39
  }
39
40
  end
40
41
 
@@ -64,7 +65,9 @@ module Fastly
64
65
  end
65
66
 
66
67
  if attributes.key?(:'values')
67
- self.values = attributes[:'values']
68
+ if (value = attributes[:'values']).is_a?(Array)
69
+ self.values = value
70
+ end
68
71
  end
69
72
  end
70
73
 
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '6.0.1'
12
+ VERSION = '6.0.2'
13
13
  end
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "fd9c0491", "D": "f16293ec"}
1
+ {"G": "59fc714d", "D": "3bd4fb97"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus