Class: Google::Apis::SaasservicemgmtV1beta1::ReplicationInternal
- Inherits:
-
Object
- Object
- Google::Apis::SaasservicemgmtV1beta1::ReplicationInternal
- 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
-
#annotations ⇒ Hash<String,String>
Optional.
-
#create_time ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#max_retry_count ⇒ Fixnum
Optional.
-
#name ⇒ String
Identifier.
-
#payload ⇒ Hash<String,Object>
Required.
-
#state ⇒ String
Output only.
-
#stats ⇒ Hash<String,Google::Apis::SaasservicemgmtV1beta1::ReplicationStats>
Output only.
-
#target_locations ⇒ Array<String>
Optional.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicationInternal
constructor
A new instance of ReplicationInternal.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#annotations ⇒ Hash<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
777 778 779 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 777 def annotations @annotations end |
#create_time ⇒ String
Output only. The timestamp when the resource was created.
Corresponds to the JSON property createTime
782 783 784 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 782 def create_time @create_time end |
#etag ⇒ String
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
789 790 791 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 789 def etag @etag end |
#labels ⇒ Hash<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
795 796 797 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 795 def labels @labels end |
#max_retry_count ⇒ Fixnum
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
802 803 804 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 802 def max_retry_count @max_retry_count end |
#name ⇒ String
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
809 810 811 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 809 def name @name end |
#payload ⇒ Hash<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
816 817 818 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 816 def payload @payload end |
#state ⇒ String
Output only. The state of the replication.
Corresponds to the JSON property state
821 822 823 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 821 def state @state end |
#stats ⇒ Hash<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_locations ⇒ Array<String>
Optional. The target locations to replicate the resource to.
Corresponds to the JSON property targetLocations
832 833 834 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 832 def target_locations @target_locations end |
#uid ⇒ String
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
841 842 843 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 841 def uid @uid end |
#update_time ⇒ String
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
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 |