=begin #Datadog API V2 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'date' require 'time' module DatadogAPIClient::V2 # Attributes associated with your service account. class GCPSTSServiceAccountAttributes include BaseGenericModel # Tags to be associated with GCP metrics and service checks from your account. attr_accessor :account_tags # Silence monitors for expected GCE instance shutdowns. attr_accessor :automute # Your service account email address. attr_accessor :client_email # Your Host Filters. attr_accessor :host_filters # When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true. attr_accessor :is_cspm_enabled # When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account. attr_accessor :is_security_command_center_enabled # When enabled, Datadog scans for all resources in your GCP environment. attr_accessor :resource_collection_enabled # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { :'account_tags' => :'account_tags', :'automute' => :'automute', :'client_email' => :'client_email', :'host_filters' => :'host_filters', :'is_cspm_enabled' => :'is_cspm_enabled', :'is_security_command_center_enabled' => :'is_security_command_center_enabled', :'resource_collection_enabled' => :'resource_collection_enabled' } end # Attribute type mapping. # @!visibility private def self.openapi_types { :'account_tags' => :'Array', :'automute' => :'Boolean', :'client_email' => :'String', :'host_filters' => :'Array', :'is_cspm_enabled' => :'Boolean', :'is_security_command_center_enabled' => :'Boolean', :'resource_collection_enabled' => :'Boolean' } end # Initializes the object # @param attributes [Hash] Model attributes in the form of hash # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'account_tags') if (value = attributes[:'account_tags']).is_a?(Array) self.account_tags = value end end if attributes.key?(:'automute') self.automute = attributes[:'automute'] end if attributes.key?(:'client_email') self.client_email = attributes[:'client_email'] end if attributes.key?(:'host_filters') if (value = attributes[:'host_filters']).is_a?(Array) self.host_filters = value end end if attributes.key?(:'is_cspm_enabled') self.is_cspm_enabled = attributes[:'is_cspm_enabled'] end if attributes.key?(:'is_security_command_center_enabled') self.is_security_command_center_enabled = attributes[:'is_security_command_center_enabled'] end if attributes.key?(:'resource_collection_enabled') self.resource_collection_enabled = attributes[:'resource_collection_enabled'] end end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && account_tags == o.account_tags && automute == o.automute && client_email == o.client_email && host_filters == o.host_filters && is_cspm_enabled == o.is_cspm_enabled && is_security_command_center_enabled == o.is_security_command_center_enabled && resource_collection_enabled == o.resource_collection_enabled end # Calculates hash code according to all attributes. # @return [Integer] Hash code # @!visibility private def hash [account_tags, automute, client_email, host_filters, is_cspm_enabled, is_security_command_center_enabled, resource_collection_enabled].hash end end end