Class: OCI::Database::Models::AutonomousDatabaseConnectionUrls

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/database/models/autonomous_database_connection_urls.rb

Overview

The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. Note that these URLs are provided by the console only for databases on dedicated Exadata infrastructure.

Example: {\"sqlDevWebUrl\": \"https:///ords...\", \"apexUrl\", \"https:///ords...\"}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AutonomousDatabaseConnectionUrls

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



99
100
101
102
103
104
105
106
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 99

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.sql_dev_web_url = attributes[:'sqlDevWebUrl'] if attributes[:'sqlDevWebUrl']

  raise 'You cannot provide both :sqlDevWebUrl and :sql_dev_web_url' if attributes.key?(:'sqlDevWebUrl') && attributes.key?(:'sql_dev_web_url')

  self.sql_dev_web_url = attributes[:'sql_dev_web_url'] if attributes[:'sql_dev_web_url']

  self.apex_url = attributes[:'apexUrl'] if attributes[:'apexUrl']

  raise 'You cannot provide both :apexUrl and :apex_url' if attributes.key?(:'apexUrl') && attributes.key?(:'apex_url')

  self.apex_url = attributes[:'apex_url'] if attributes[:'apex_url']

  self.machine_learning_user_management_url = attributes[:'machineLearningUserManagementUrl'] if attributes[:'machineLearningUserManagementUrl']

  raise 'You cannot provide both :machineLearningUserManagementUrl and :machine_learning_user_management_url' if attributes.key?(:'machineLearningUserManagementUrl') && attributes.key?(:'machine_learning_user_management_url')

  self.machine_learning_user_management_url = attributes[:'machine_learning_user_management_url'] if attributes[:'machine_learning_user_management_url']

  self.graph_studio_url = attributes[:'graphStudioUrl'] if attributes[:'graphStudioUrl']

  raise 'You cannot provide both :graphStudioUrl and :graph_studio_url' if attributes.key?(:'graphStudioUrl') && attributes.key?(:'graph_studio_url')

  self.graph_studio_url = attributes[:'graph_studio_url'] if attributes[:'graph_studio_url']

  self.mongo_db_url = attributes[:'mongoDbUrl'] if attributes[:'mongoDbUrl']

  raise 'You cannot provide both :mongoDbUrl and :mongo_db_url' if attributes.key?(:'mongoDbUrl') && attributes.key?(:'mongo_db_url')

  self.mongo_db_url = attributes[:'mongo_db_url'] if attributes[:'mongo_db_url']

  self.machine_learning_notebook_url = attributes[:'machineLearningNotebookUrl'] if attributes[:'machineLearningNotebookUrl']

  raise 'You cannot provide both :machineLearningNotebookUrl and :machine_learning_notebook_url' if attributes.key?(:'machineLearningNotebookUrl') && attributes.key?(:'machine_learning_notebook_url')

  self.machine_learning_notebook_url = attributes[:'machine_learning_notebook_url'] if attributes[:'machine_learning_notebook_url']

  self.ords_url = attributes[:'ordsUrl'] if attributes[:'ordsUrl']

  raise 'You cannot provide both :ordsUrl and :ords_url' if attributes.key?(:'ordsUrl') && attributes.key?(:'ords_url')

  self.ords_url = attributes[:'ords_url'] if attributes[:'ords_url']

  self.database_transforms_url = attributes[:'databaseTransformsUrl'] if attributes[:'databaseTransformsUrl']

  raise 'You cannot provide both :databaseTransformsUrl and :database_transforms_url' if attributes.key?(:'databaseTransformsUrl') && attributes.key?(:'database_transforms_url')

  self.database_transforms_url = attributes[:'database_transforms_url'] if attributes[:'database_transforms_url']

  self.spatial_studio_url = attributes[:'spatialStudioUrl'] if attributes[:'spatialStudioUrl']

  raise 'You cannot provide both :spatialStudioUrl and :spatial_studio_url' if attributes.key?(:'spatialStudioUrl') && attributes.key?(:'spatial_studio_url')

  self.spatial_studio_url = attributes[:'spatial_studio_url'] if attributes[:'spatial_studio_url']
end

Instance Attribute Details

#apex_urlString

Oracle Application Express (APEX) URL.

Returns:

  • (String)


20
21
22
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 20

def apex_url
  @apex_url
end

#database_transforms_urlString

The URL of the Database Transforms for the Autonomous AI Database.

Returns:

  • (String)


44
45
46
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 44

def database_transforms_url
  @database_transforms_url
end

#graph_studio_urlString

The URL of the Graph Studio for the Autonomous AI Database.

Returns:

  • (String)


28
29
30
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 28

def graph_studio_url
  @graph_studio_url
end

#machine_learning_notebook_urlString

The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous AI Database.

Returns:

  • (String)


36
37
38
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 36

def machine_learning_notebook_url
  @machine_learning_notebook_url
end

#machine_learning_user_management_urlString

Oracle Machine Learning user management URL.

Returns:

  • (String)


24
25
26
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 24

def machine_learning_user_management_url
  @machine_learning_user_management_url
end

#mongo_db_urlString

The URL of the MongoDB API for the Autonomous AI Database.

Returns:

  • (String)


32
33
34
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 32

def mongo_db_url
  @mongo_db_url
end

#ords_urlString

The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous AI Database.

Returns:

  • (String)


40
41
42
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 40

def ords_url
  @ords_url
end

#spatial_studio_urlString

The URL of the Spatial Studio for the Autonomous AI Database.

Returns:

  • (String)


48
49
50
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 48

def spatial_studio_url
  @spatial_studio_url
end

#sql_dev_web_urlString

Oracle SQL Developer Web URL.

Returns:

  • (String)


16
17
18
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 16

def sql_dev_web_url
  @sql_dev_web_url
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 51

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'sql_dev_web_url': :'sqlDevWebUrl',
    'apex_url': :'apexUrl',
    'machine_learning_user_management_url': :'machineLearningUserManagementUrl',
    'graph_studio_url': :'graphStudioUrl',
    'mongo_db_url': :'mongoDbUrl',
    'machine_learning_notebook_url': :'machineLearningNotebookUrl',
    'ords_url': :'ordsUrl',
    'database_transforms_url': :'databaseTransformsUrl',
    'spatial_studio_url': :'spatialStudioUrl'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 68

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'sql_dev_web_url': :'String',
    'apex_url': :'String',
    'machine_learning_user_management_url': :'String',
    'graph_studio_url': :'String',
    'mongo_db_url': :'String',
    'machine_learning_notebook_url': :'String',
    'ords_url': :'String',
    'database_transforms_url': :'String',
    'spatial_studio_url': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 167

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    sql_dev_web_url == other.sql_dev_web_url &&
    apex_url == other.apex_url &&
    machine_learning_user_management_url == other.machine_learning_user_management_url &&
    graph_studio_url == other.graph_studio_url &&
    mongo_db_url == other.mongo_db_url &&
    machine_learning_notebook_url == other.machine_learning_notebook_url &&
    ords_url == other.ords_url &&
    database_transforms_url == other.database_transforms_url &&
    spatial_studio_url == other.spatial_studio_url
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 205

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


185
186
187
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 185

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



194
195
196
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 194

def hash
  [sql_dev_web_url, apex_url, machine_learning_user_management_url, graph_studio_url, mongo_db_url, machine_learning_notebook_url, ords_url, database_transforms_url, spatial_studio_url].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



238
239
240
241
242
243
244
245
246
247
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 238

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



232
233
234
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 232

def to_s
  to_hash.to_s
end