Reference documentation and code samples for the Cloud SQL Admin V1BETA4 API class Google::Cloud::Sql::V1beta4::StartSession.
Start a new session. The client must send this as the first message to the server to start a new session. The client may immediately send Data messages without waiting for a reply from the server.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#instance_id
def instance_id() -> ::String
Returns
- (::String) — Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
#instance_id=
def instance_id=(value) -> ::String
Parameter
- value (::String) — Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
Returns
- (::String) — Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
#location_id
def location_id() -> ::String
Returns
-
(::String) — Required.
location_idis used to route the request to a specific region. Use the same region which was used to create the instance. Use the formatlocations/{location}, for example:locations/us-central1.
#location_id=
def location_id=(value) -> ::String
Parameter
-
value (::String) — Required.
location_idis used to route the request to a specific region. Use the same region which was used to create the instance. Use the formatlocations/{location}, for example:locations/us-central1.
Returns
-
(::String) — Required.
location_idis used to route the request to a specific region. Use the same region which was used to create the instance. Use the formatlocations/{location}, for example:locations/us-central1.
#session_id
def session_id() -> ::String
Returns
- (::String) — Optional. The session id, chosen by the client. This should be an unguessable string. If the client does not intend to reconnect to this session, the client may leave session_id unset.
#session_id=
def session_id=(value) -> ::String
Parameter
- value (::String) — Optional. The session id, chosen by the client. This should be an unguessable string. If the client does not intend to reconnect to this session, the client may leave session_id unset.
Returns
- (::String) — Optional. The session id, chosen by the client. This should be an unguessable string. If the client does not intend to reconnect to this session, the client may leave session_id unset.