Class: OCI::IdentityDomains::Models::ExtensionDbcsGroup
- Inherits:
-
Object
- Object
- OCI::IdentityDomains::Models::ExtensionDbcsGroup
- Defined in:
- lib/oci/identity_domains/models/extension_dbcs_group.rb
Overview
Schema for Database Service Resource
Instance Attribute Summary collapse
-
#domain_level_schema ⇒ String
DBCS Domain-level schema-name.
-
#domain_level_schema_names ⇒ Array<OCI::IdentityDomains::Models::GroupExtDomainLevelSchemaNames>
DBCS Domain-level schema-names.
-
#instance_level_schema ⇒ String
DBCS instance-level schema-name.
-
#instance_level_schema_names ⇒ Array<OCI::IdentityDomains::Models::GroupExtInstanceLevelSchemaNames>
DBCS instance-level schema-names.
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 = {}) ⇒ ExtensionDbcsGroup
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 = {}) ⇒ ExtensionDbcsGroup
Initializes the object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 107 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.instance_level_schema_names = attributes[:'instanceLevelSchemaNames'] if attributes[:'instanceLevelSchemaNames'] raise 'You cannot provide both :instanceLevelSchemaNames and :instance_level_schema_names' if attributes.key?(:'instanceLevelSchemaNames') && attributes.key?(:'instance_level_schema_names') self.instance_level_schema_names = attributes[:'instance_level_schema_names'] if attributes[:'instance_level_schema_names'] self.domain_level_schema_names = attributes[:'domainLevelSchemaNames'] if attributes[:'domainLevelSchemaNames'] raise 'You cannot provide both :domainLevelSchemaNames and :domain_level_schema_names' if attributes.key?(:'domainLevelSchemaNames') && attributes.key?(:'domain_level_schema_names') self.domain_level_schema_names = attributes[:'domain_level_schema_names'] if attributes[:'domain_level_schema_names'] self.domain_level_schema = attributes[:'domainLevelSchema'] if attributes[:'domainLevelSchema'] raise 'You cannot provide both :domainLevelSchema and :domain_level_schema' if attributes.key?(:'domainLevelSchema') && attributes.key?(:'domain_level_schema') self.domain_level_schema = attributes[:'domain_level_schema'] if attributes[:'domain_level_schema'] self.instance_level_schema = attributes[:'instanceLevelSchema'] if attributes[:'instanceLevelSchema'] raise 'You cannot provide both :instanceLevelSchema and :instance_level_schema' if attributes.key?(:'instanceLevelSchema') && attributes.key?(:'instance_level_schema') self.instance_level_schema = attributes[:'instance_level_schema'] if attributes[:'instance_level_schema'] end |
Instance Attribute Details
#domain_level_schema ⇒ String
DBCS Domain-level schema-name. This attribute refers implicitly to a value of 'domainLevelSchemaNames' for a particular DB Domain.
Added In: 18.2.4
SCIM++ Properties: - idcsSearchable: false - idcsSensitive: none - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none
55 56 57 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 55 def domain_level_schema @domain_level_schema end |
#domain_level_schema_names ⇒ Array<OCI::IdentityDomains::Models::GroupExtDomainLevelSchemaNames>
DBCS Domain-level schema-names. Each value is specific to a DB Domain.
Added In: 18.2.4
SCIM++ Properties: - idcsCompositeKey: [domainName, schemaName] - idcsSearchable: true - multiValued: true - mutability: readOnly - required: false - returned: request - type: complex
39 40 41 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 39 def domain_level_schema_names @domain_level_schema_names end |
#instance_level_schema ⇒ String
DBCS instance-level schema-name. This attribute refers implicitly to a value of 'instanceLevelSchemaNames' for a particular DB Instance.
Added In: 18.2.4
SCIM++ Properties: - idcsSearchable: false - idcsSensitive: none - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none
71 72 73 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 71 def instance_level_schema @instance_level_schema end |
#instance_level_schema_names ⇒ Array<OCI::IdentityDomains::Models::GroupExtInstanceLevelSchemaNames>
DBCS instance-level schema-names. Each schema-name is specific to a DB Instance.
Added In: 18.2.4
SCIM++ Properties: - idcsCompositeKey: [dbInstanceId, schemaName] - idcsSearchable: true - multiValued: true - mutability: readOnly - required: false - returned: request - type: complex
24 25 26 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 24 def instance_level_schema_names @instance_level_schema_names end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 74 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'instance_level_schema_names': :'instanceLevelSchemaNames', 'domain_level_schema_names': :'domainLevelSchemaNames', 'domain_level_schema': :'domainLevelSchema', 'instance_level_schema': :'instanceLevelSchema' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 86 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'instance_level_schema_names': :'Array<OCI::IdentityDomains::Models::GroupExtInstanceLevelSchemaNames>', 'domain_level_schema_names': :'Array<OCI::IdentityDomains::Models::GroupExtDomainLevelSchemaNames>', 'domain_level_schema': :'String', 'instance_level_schema': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
145 146 147 148 149 150 151 152 153 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 145 def ==(other) return true if equal?(other) self.class == other.class && instance_level_schema_names == other.instance_level_schema_names && domain_level_schema_names == other.domain_level_schema_names && domain_level_schema == other.domain_level_schema && instance_level_schema == other.instance_level_schema end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 178 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
158 159 160 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 158 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
167 168 169 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 167 def hash [instance_level_schema_names, domain_level_schema_names, domain_level_schema, instance_level_schema].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
211 212 213 214 215 216 217 218 219 220 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 211 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
205 206 207 |
# File 'lib/oci/identity_domains/models/extension_dbcs_group.rb', line 205 def to_s to_hash.to_s end |