Class: Google::Apis::SourcerepoV1::SyncRepoMetadata

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

Overview

Metadata of SyncRepo. This message is in the metadata field of Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SyncRepoMetadata

Returns a new instance of SyncRepoMetadata.



696
697
698
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 696

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

Instance Attribute Details

#nameString

The name of the repo being synchronized. Values are of the form projects// repos/. Corresponds to the JSON property name

Returns:

  • (String)


679
680
681
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 679

def name
  @name
end

#start_timeString

The time this operation is started. Corresponds to the JSON property startTime

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 684

def start_time
  @start_time
end

#status_messageString

The latest status message on syncing the repository. Corresponds to the JSON property statusMessage

Returns:

  • (String)


689
690
691
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 689

def status_message
  @status_message
end

#update_timeString

The time this operation's status message is updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


694
695
696
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 694

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



701
702
703
704
705
706
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 701

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status_message = args[:status_message] if args.key?(:status_message)
  @update_time = args[:update_time] if args.key?(:update_time)
end