Class: DatadogAPIClient::V2::LogsArchiveDestinationGCS
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::LogsArchiveDestinationGCS
- Defined in:
- lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb
Overview
The GCS archive destination.
Instance Attribute Summary collapse
-
#bucket ⇒ Object
The bucket where the archive will be stored.
-
#integration ⇒ Object
Returns the value of attribute integration.
-
#path ⇒ Object
The archive path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ LogsArchiveDestinationGCS
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ LogsArchiveDestinationGCS
Initializes the object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb', line 73 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationGCS` 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::LogsArchiveDestinationGCS`. 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?(:'bucket') self.bucket = attributes[:'bucket'] end if attributes.key?(:'integration') self.integration = attributes[:'integration'] end if attributes.key?(:'path') self.path = attributes[:'path'] end if attributes.key?(:'type') self.type = attributes[:'type'] else self.type = 'gcs' end end |
Instance Attribute Details
#bucket ⇒ Object
The bucket where the archive will be stored.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb', line 27 def bucket @bucket end |
#integration ⇒ Object
Returns the value of attribute integration.
29 30 31 |
# File 'lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb', line 29 def integration @integration end |
#path ⇒ Object
The archive path.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb', line 32 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb', line 34 def type @type end |