Class: Google::Apis::DatamigrationV1beta1::ConnectionProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1beta1::ConnectionProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1beta1/classes.rb,
lib/google/apis/datamigration_v1beta1/representations.rb,
lib/google/apis/datamigration_v1beta1/representations.rb
Overview
A connection profile definition.
Instance Attribute Summary collapse
-
#cloudsql ⇒ Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile
Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
The connection profile display name.
-
#error ⇒ Google::Apis::DatamigrationV1beta1::Status
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#labels ⇒ Hash<String,String>
The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs.
-
#mysql ⇒ Google::Apis::DatamigrationV1beta1::MySqlConnectionProfile
Specifies connection parameters required specifically for MySQL databases.
-
#name ⇒ String
The name of this connection profile resource in the form of projects/
project/ locations/location/connectionProfiles/connectionProfile. -
#provider ⇒ String
The database provider.
-
#state ⇒ String
The current connection profile state (e.g. DRAFT, READY, or FAILED).
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectionProfile
constructor
A new instance of ConnectionProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectionProfile
Returns a new instance of ConnectionProfile.
411 412 413 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloudsql ⇒ Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile
Specifies required connection parameters, and, optionally, the parameters
required to create a Cloud SQL destination database instance.
Corresponds to the JSON property cloudsql
351 352 353 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 351 def cloudsql @cloudsql end |
#create_time ⇒ String
Output only. The timestamp when the resource was created. A timestamp in
RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
23.045123456Z".
Corresponds to the JSON property createTime
358 359 360 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 358 def create_time @create_time end |
#display_name ⇒ String
The connection profile display name.
Corresponds to the JSON property displayName
363 364 365 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 363 def display_name @display_name end |
#error ⇒ Google::Apis::DatamigrationV1beta1::Status
The Status type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property error
373 374 375 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 373 def error @error end |
#labels ⇒ Hash<String,String>
The resource labels for connection profile to use to annotate any related
underlying resources such as Compute Engine VMs. An object containing a list
of "key": "value" pairs. Example: "name": "wrench", "mass": "1.3kg", "count"
: "3".
Corresponds to the JSON property labels
381 382 383 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 381 def labels @labels end |
#mysql ⇒ Google::Apis::DatamigrationV1beta1::MySqlConnectionProfile
Specifies connection parameters required specifically for MySQL databases.
Corresponds to the JSON property mysql
386 387 388 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 386 def mysql @mysql end |
#name ⇒ String
The name of this connection profile resource in the form of projects/project/
locations/location/connectionProfiles/connectionProfile.
Corresponds to the JSON property name
392 393 394 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 392 def name @name end |
#provider ⇒ String
The database provider.
Corresponds to the JSON property provider
397 398 399 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 397 def provider @provider end |
#state ⇒ String
The current connection profile state (e.g. DRAFT, READY, or FAILED).
Corresponds to the JSON property state
402 403 404 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 402 def state @state end |
#update_time ⇒ String
Output only. The timestamp when the resource was last updated. A timestamp in
RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
23.045123456Z".
Corresponds to the JSON property updateTime
409 410 411 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 409 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 416 def update!(**args) @cloudsql = args[:cloudsql] if args.key?(:cloudsql) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @error = args[:error] if args.key?(:error) @labels = args[:labels] if args.key?(:labels) @mysql = args[:mysql] if args.key?(:mysql) @name = args[:name] if args.key?(:name) @provider = args[:provider] if args.key?(:provider) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |