Class: Google::Apis::DataportabilityV1beta::PortabilityArchiveState
- Inherits:
-
Object
- Object
- Google::Apis::DataportabilityV1beta::PortabilityArchiveState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataportability_v1beta/classes.rb,
lib/google/apis/dataportability_v1beta/representations.rb,
lib/google/apis/dataportability_v1beta/representations.rb
Overview
Resource that contains the state of an Archive job.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of ArchiveJob's PortabilityArchiveState singleton.
-
#state ⇒ String
Resource that represents the state of the Archive job.
-
#urls ⇒ Array<String>
If the state is complete, this method returns the signed URLs of the objects in the Cloud Storage bucket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PortabilityArchiveState
constructor
A new instance of PortabilityArchiveState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PortabilityArchiveState
Returns a new instance of PortabilityArchiveState.
103 104 105 |
# File 'lib/google/apis/dataportability_v1beta/classes.rb', line 103 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of ArchiveJob's PortabilityArchiveState singleton. The
format is: archiveJobs/archive_job
/portabilityArchiveState. archive_job is
the job ID provided in the request.
Corresponds to the JSON property name
90 91 92 |
# File 'lib/google/apis/dataportability_v1beta/classes.rb', line 90 def name @name end |
#state ⇒ String
Resource that represents the state of the Archive job.
Corresponds to the JSON property state
95 96 97 |
# File 'lib/google/apis/dataportability_v1beta/classes.rb', line 95 def state @state end |
#urls ⇒ Array<String>
If the state is complete, this method returns the signed URLs of the objects
in the Cloud Storage bucket.
Corresponds to the JSON property urls
101 102 103 |
# File 'lib/google/apis/dataportability_v1beta/classes.rb', line 101 def urls @urls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
108 109 110 111 112 |
# File 'lib/google/apis/dataportability_v1beta/classes.rb', line 108 def update!(**args) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @urls = args[:urls] if args.key?(:urls) end |