Class: Google::Apis::SaasservicemgmtV1beta1::ReplicationInternal

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

ReplicationInternal is a resource that represents the replication of a resource to multiple locations. This is an internal resource to achieve replication before GA and will not expose to the public API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicationInternal

Returns a new instance of ReplicationInternal.



850
851
852
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 850

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


777
778
779
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 777

def annotations
  @annotations
end

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


782
783
784
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 782

def create_time
  @create_time
end

#etagString

Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written. Corresponds to the JSON property etag

Returns:

  • (String)


789
790
791
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 789

def etag
  @etag
end

#labelsHash<String,String>

Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


795
796
797
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 795

def labels
  @labels
end

#max_retry_countFixnum

Optional. The maximum number of retries for the replication. If the replication fails from a retryable error, it will be retried for this number of times. Corresponds to the JSON property maxRetryCount

Returns:

  • (Fixnum)


802
803
804
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 802

def max_retry_count
  @max_retry_count
end

#nameString

Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/project/locations/location/ replicationInternal/replication_internal_id" Corresponds to the JSON property name

Returns:

  • (String)


809
810
811
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 809

def name
  @name
end

#payloadHash<String,Object>

Required. The payload of the request for replication. It could be any request type that is supported by the replication service. e.g. CreateUnitKindRequest, UpdateUnitKindRequest, DeleteReleaseRequest, etc. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


816
817
818
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 816

def payload
  @payload
end

#stateString

Output only. The state of the replication. Corresponds to the JSON property state

Returns:

  • (String)


821
822
823
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 821

def state
  @state
end

#statsHash<String,Google::Apis::SaasservicemgmtV1beta1::ReplicationStats>

Output only. The stats of the replication. One key for each location in target_locations Corresponds to the JSON property stats



827
828
829
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 827

def stats
  @stats
end

#target_locationsArray<String>

Optional. The target locations to replicate the resource to. Corresponds to the JSON property targetLocations

Returns:

  • (Array<String>)


832
833
834
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 832

def target_locations
  @target_locations
end

#uidString

Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4. Corresponds to the JSON property uid

Returns:

  • (String)


841
842
843
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 841

def uid
  @uid
end

#update_timeString

Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value. Corresponds to the JSON property updateTime

Returns:

  • (String)


848
849
850
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 848

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



855
856
857
858
859
860
861
862
863
864
865
866
867
868
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 855

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @max_retry_count = args[:max_retry_count] if args.key?(:max_retry_count)
  @name = args[:name] if args.key?(:name)
  @payload = args[:payload] if args.key?(:payload)
  @state = args[:state] if args.key?(:state)
  @stats = args[:stats] if args.key?(:stats)
  @target_locations = args[:target_locations] if args.key?(:target_locations)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end