Class: Google::Apis::DataportabilityV1::PortabilityArchiveState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataportability_v1/classes.rb,
lib/google/apis/dataportability_v1/representations.rb,
lib/google/apis/dataportability_v1/representations.rb

Overview

Resource that contains the state of an Archive job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PortabilityArchiveState

Returns a new instance of PortabilityArchiveState.



103
104
105
# File 'lib/google/apis/dataportability_v1/classes.rb', line 103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

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

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/dataportability_v1/classes.rb', line 90

def name
  @name
end

#stateString

Resource that represents the state of the Archive job. Corresponds to the JSON property state

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/dataportability_v1/classes.rb', line 95

def state
  @state
end

#urlsArray<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

Returns:

  • (Array<String>)


101
102
103
# File 'lib/google/apis/dataportability_v1/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_v1/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