Sha256: 95fad3a7ab6a07a2009c29821bfd943b17a7816515c71c54d94ce34018834741

Contents?: true

Size: 985 Bytes

Versions: 7

Compression:

Stored size: 985 Bytes

Contents

# Update a GCP integration cloud run revision filters returns "OK" response

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

body = DatadogAPIClient::V1::GCPAccount.new({
  auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
  auth_uri: "https://accounts.google.com/o/oauth2/auth",
  client_email: "252bf553ef04b351@example.com",
  client_id: "163662907116366290710",
  client_x509_cert_url: "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL",
  host_filters: "key:value,filter:example",
  cloud_run_revision_filters: [
    "merp:derp",
  ],
  is_cspm_enabled: true,
  is_security_command_center_enabled: true,
  private_key: "private_key",
  private_key_id: "123456789abcdefghi123456789abcdefghijklm",
  project_id: "datadog-apitest",
  resource_collection_enabled: true,
  token_uri: "https://accounts.google.com/o/oauth2/token",
  type: "service_account",
})
p api_instance.update_gcp_integration(body)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog_api_client-2.27.1 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.26.1 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.26.0 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.25.0 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.24.0 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.22.0 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb
datadog_api_client-2.21.0 examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb