Sha256: 6ebc575fd886bbdc8674ff0a4b3592924a0046d88512362a23ab79025489e8e1

Contents?: true

Size: 639 Bytes

Versions: 22

Compression:

Stored size: 639 Bytes

Contents

# Update Fastly account returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new

# there is a valid "fastly_account" in the system
FASTLY_ACCOUNT_DATA_ID = ENV["FASTLY_ACCOUNT_DATA_ID"]

body = DatadogAPIClient::V2::FastlyAccountUpdateRequest.new({
  data: DatadogAPIClient::V2::FastlyAccountUpdateRequestData.new({
    attributes: DatadogAPIClient::V2::FastlyAccountUpdateRequestAttributes.new({
      api_key: "update-secret",
    }),
    type: DatadogAPIClient::V2::FastlyAccountType::FASTLY_ACCOUNTS,
  }),
})
p api_instance.update_fastly_account(FASTLY_ACCOUNT_DATA_ID, body)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.27.1 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.26.1 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.26.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.25.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.24.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.22.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.21.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.20.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.19.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.18.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.17.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.16.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.15.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.14.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.13.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.12.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.11.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.10.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb
datadog_api_client-2.9.0 examples/v2/fastly-integration/UpdateFastlyAccount.rb