Class: OCI::FleetAppsManagement::Models::ReportMetadataSummary
- Inherits:
-
Object
- Object
- OCI::FleetAppsManagement::Models::ReportMetadataSummary
- Defined in:
- lib/oci/fleet_apps_management/models/report_metadata_summary.rb
Overview
Summary information about a ReportMetadata.
Instance Attribute Summary collapse
-
#column_metadata ⇒ Array<OCI::FleetAppsManagement::Models::ColumnMetadata>
Column Metadata.
-
#default_order_clause ⇒ Array<OCI::FleetAppsManagement::Models::OrderClause>
default order clause for reports.
-
#description ⇒ String
Description of report.
-
#filters ⇒ Array<OCI::FleetAppsManagement::Models::ReportFilter>
metricMetadata.
-
#metric ⇒ String
Metric Name.
-
#name ⇒ String
[Required] Name of Report.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ReportMetadataSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ ReportMetadataSummary
Initializes the object
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 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 75 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.name = attributes[:'name'] if attributes[:'name'] self.description = attributes[:'description'] if attributes[:'description'] self.default_order_clause = attributes[:'defaultOrderClause'] if attributes[:'defaultOrderClause'] raise 'You cannot provide both :defaultOrderClause and :default_order_clause' if attributes.key?(:'defaultOrderClause') && attributes.key?(:'default_order_clause') self.default_order_clause = attributes[:'default_order_clause'] if attributes[:'default_order_clause'] self. = attributes[:'columnMetadata'] if attributes[:'columnMetadata'] raise 'You cannot provide both :columnMetadata and :column_metadata' if attributes.key?(:'columnMetadata') && attributes.key?(:'column_metadata') self. = attributes[:'column_metadata'] if attributes[:'column_metadata'] self.metric = attributes[:'metric'] if attributes[:'metric'] self.filters = attributes[:'filters'] if attributes[:'filters'] end |
Instance Attribute Details
#column_metadata ⇒ Array<OCI::FleetAppsManagement::Models::ColumnMetadata>
Column Metadata.
25 26 27 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 25 def @column_metadata end |
#default_order_clause ⇒ Array<OCI::FleetAppsManagement::Models::OrderClause>
default order clause for reports.
21 22 23 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 21 def default_order_clause @default_order_clause end |
#description ⇒ String
Description of report.
17 18 19 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 17 def description @description end |
#filters ⇒ Array<OCI::FleetAppsManagement::Models::ReportFilter>
metricMetadata.
33 34 35 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 33 def filters @filters end |
#metric ⇒ String
Metric Name.
29 30 31 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 29 def metric @metric end |
#name ⇒ String
[Required] Name of Report.
13 14 15 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 13 def name @name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 36 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'name': :'name', 'description': :'description', 'default_order_clause': :'defaultOrderClause', 'column_metadata': :'columnMetadata', 'metric': :'metric', 'filters': :'filters' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 50 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'name': :'String', 'description': :'String', 'default_order_clause': :'Array<OCI::FleetAppsManagement::Models::OrderClause>', 'column_metadata': :'Array<OCI::FleetAppsManagement::Models::ColumnMetadata>', 'metric': :'String', 'filters': :'Array<OCI::FleetAppsManagement::Models::ReportFilter>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 109 def ==(other) return true if equal?(other) self.class == other.class && name == other.name && description == other.description && default_order_clause == other.default_order_clause && == other. && metric == other.metric && filters == other.filters end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 144 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
124 125 126 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 124 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
133 134 135 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 133 def hash [name, description, default_order_clause, , metric, filters].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
177 178 179 180 181 182 183 184 185 186 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 177 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
171 172 173 |
# File 'lib/oci/fleet_apps_management/models/report_metadata_summary.rb', line 171 def to_s to_hash.to_s end |