Class: Google::Apis::SqladminV1::Database
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::Database
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
Represents a SQL database on the Cloud SQL instance.
Instance Attribute Summary collapse
-
#charset ⇒ String
The Cloud SQL charset value.
-
#collation ⇒ String
The Cloud SQL collation value.
-
#etag ⇒ String
This field is deprecated and will be removed from a future version of the API.
-
#instance ⇒ String
The name of the Cloud SQL instance.
-
#kind ⇒ String
This is always
sql#database. -
#name ⇒ String
The name of the database in the Cloud SQL instance.
-
#project ⇒ String
The project ID of the project containing the Cloud SQL database.
-
#self_link ⇒ String
The URI of this resource.
-
#sqlserver_database_details ⇒ Google::Apis::SqladminV1::SqlServerDatabaseDetails
Represents a Sql Server database on the Cloud SQL instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Database
constructor
A new instance of Database.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Database
Returns a new instance of Database.
1116 1117 1118 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1116 def initialize(**args) update!(**args) end |
Instance Attribute Details
#charset ⇒ String
The Cloud SQL charset value.
Corresponds to the JSON property charset
1072 1073 1074 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1072 def charset @charset end |
#collation ⇒ String
The Cloud SQL collation value.
Corresponds to the JSON property collation
1077 1078 1079 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1077 def collation @collation end |
#etag ⇒ String
This field is deprecated and will be removed from a future version of the API.
Corresponds to the JSON property etag
1082 1083 1084 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1082 def etag @etag end |
#instance ⇒ String
The name of the Cloud SQL instance. This does not include the project ID.
Corresponds to the JSON property instance
1087 1088 1089 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1087 def instance @instance end |
#kind ⇒ String
This is always sql#database.
Corresponds to the JSON property kind
1092 1093 1094 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1092 def kind @kind end |
#name ⇒ String
The name of the database in the Cloud SQL instance. This does not include the
project ID or instance name.
Corresponds to the JSON property name
1098 1099 1100 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1098 def name @name end |
#project ⇒ String
The project ID of the project containing the Cloud SQL database. The Google
apps domain is prefixed if applicable.
Corresponds to the JSON property project
1104 1105 1106 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1104 def project @project end |
#self_link ⇒ String
The URI of this resource.
Corresponds to the JSON property selfLink
1109 1110 1111 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1109 def self_link @self_link end |
#sqlserver_database_details ⇒ Google::Apis::SqladminV1::SqlServerDatabaseDetails
Represents a Sql Server database on the Cloud SQL instance.
Corresponds to the JSON property sqlserverDatabaseDetails
1114 1115 1116 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1114 def sqlserver_database_details @sqlserver_database_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1121 def update!(**args) @charset = args[:charset] if args.key?(:charset) @collation = args[:collation] if args.key?(:collation) @etag = args[:etag] if args.key?(:etag) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @project = args[:project] if args.key?(:project) @self_link = args[:self_link] if args.key?(:self_link) @sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details) end |