Class: Google::Apis::MetastoreV1alpha::RestoreServiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1alpha::RestoreServiceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/metastore_v1alpha/classes.rb,
lib/google/apis/metastore_v1alpha/representations.rb,
lib/google/apis/metastore_v1alpha/representations.rb
Overview
Request message for DataprocMetastore.Restore.
Instance Attribute Summary collapse
-
#backup ⇒ String
Required.
-
#request_id ⇒ String
Optional.
-
#restore_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreServiceRequest
constructor
A new instance of RestoreServiceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreServiceRequest
Returns a new instance of RestoreServiceRequest.
1187 1188 1189 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
Required. The relative resource name of the metastore service backup to
restore from, in the following form:projects/project_id/locations/
location_id/services/service_id/backups/backup_id.
Corresponds to the JSON property backup
1168 1169 1170 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1168 def backup @backup end |
#request_id ⇒ String
Optional. A request ID. Specify a unique request ID to allow the server to
ignore the request if it has completed. The server will ignore subsequent
requests that provide a duplicate request ID for at least 60 minutes after the
first request.For example, if an initial request times out, followed by
another request with the same request ID, the server ignores the second
request to prevent the creation of duplicate commitments.The request ID must
be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
Corresponds to the JSON property requestId
1180 1181 1182 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1180 def request_id @request_id end |
#restore_type ⇒ String
Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
Corresponds to the JSON property restoreType
1185 1186 1187 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1185 def restore_type @restore_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1192 1193 1194 1195 1196 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1192 def update!(**args) @backup = args[:backup] if args.key?(:backup) @request_id = args[:request_id] if args.key?(:request_id) @restore_type = args[:restore_type] if args.key?(:restore_type) end |