Class: Google::Apis::SaasservicemgmtV1beta1::ReplicationStats

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

Overview

ReplicationStats contains the stats of the replication. It contains the resources that are pending, finished, failed, and the errors if any.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicationStats

Returns a new instance of ReplicationStats.



902
903
904
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 902

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

Instance Attribute Details

#errorsArray<Google::Apis::SaasservicemgmtV1beta1::Status>

The errors that occurred during replication, one error for each failed resource. Corresponds to the JSON property errors



880
881
882
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 880

def errors
  @errors
end

#failed_resourcesArray<String>

The resources that are failed replication. Corresponds to the JSON property failedResources

Returns:

  • (Array<String>)


885
886
887
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 885

def failed_resources
  @failed_resources
end

#finished_resourcesArray<String>

The resources that are finished replication. Corresponds to the JSON property finishedResources

Returns:

  • (Array<String>)


890
891
892
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 890

def finished_resources
  @finished_resources
end

#pending_resourcesArray<String>

The resources that are pending replication. Corresponds to the JSON property pendingResources

Returns:

  • (Array<String>)


895
896
897
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 895

def pending_resources
  @pending_resources
end

#retry_countArray<Fixnum>

The number of retries for the failed resources. Corresponds to the JSON property retryCount

Returns:

  • (Array<Fixnum>)


900
901
902
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 900

def retry_count
  @retry_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



907
908
909
910
911
912
913
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 907

def update!(**args)
  @errors = args[:errors] if args.key?(:errors)
  @failed_resources = args[:failed_resources] if args.key?(:failed_resources)
  @finished_resources = args[:finished_resources] if args.key?(:finished_resources)
  @pending_resources = args[:pending_resources] if args.key?(:pending_resources)
  @retry_count = args[:retry_count] if args.key?(:retry_count)
end