Sha256: 2e39c7f4a8b6306d6f253b6e19ce5a3bc0333f4d9f3636f5ffd14f649134ff22

Contents?: true

Size: 764 Bytes

Versions: 10

Compression:

Stored size: 764 Bytes

Contents

# Update STS Service Account returns "OK" response

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

# there is a valid "gcp_sts_account" in the system
GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"]

body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({
  data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({
    attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
      client_email: "252bf553ef04b351@example.com",
      host_filters: [
        "foo:bar",
      ],
    }),
    id: GCP_STS_ACCOUNT_DATA_ID,
    type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
  }),
})
p api_instance.update_gcpsts_account(GCP_STS_ACCOUNT_DATA_ID, body)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.21.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.20.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.19.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.18.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.17.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.16.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.15.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.14.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.13.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb
datadog_api_client-2.12.0 examples/v2/gcp-integration/UpdateGCPSTSAccount.rb