@@ -299,6 +299,39 @@ def update!(**args)
299299 end
300300 end
301301
302+ # The response structure for the ListReplicationsInternal method.
303+ class ListReplicationsInternalResponse
304+ include Google ::Apis ::Core ::Hashable
305+
306+ # If present, the next page token can be provided to a subsequent
307+ # ListReplicationsInternal call to list the next page. If empty, there are no
308+ # more pages.
309+ # Corresponds to the JSON property `nextPageToken`
310+ # @return [String]
311+ attr_accessor :next_page_token
312+
313+ # The resulting replication internals.
314+ # Corresponds to the JSON property `replicationsInternal`
315+ # @return [Array<Google::Apis::SaasservicemgmtV1beta1::ReplicationInternal>]
316+ attr_accessor :replications_internal
317+
318+ # Locations that could not be reached.
319+ # Corresponds to the JSON property `unreachable`
320+ # @return [Array<String>]
321+ attr_accessor :unreachable
322+
323+ def initialize ( **args )
324+ update! ( **args )
325+ end
326+
327+ # Update properties of this object
328+ def update! ( **args )
329+ @next_page_token = args [ :next_page_token ] if args . key? ( :next_page_token )
330+ @replications_internal = args [ :replications_internal ] if args . key? ( :replications_internal )
331+ @unreachable = args [ :unreachable ] if args . key? ( :unreachable )
332+ end
333+ end
334+
302335 # The response structure for the ListRolloutKinds method.
303336 class ListRolloutKindsResponse
304337 include Google ::Apis ::Core ::Hashable
@@ -729,6 +762,157 @@ def update!(**args)
729762 end
730763 end
731764
765+ # ReplicationInternal is a resource that represents the replication of a
766+ # resource to multiple locations. This is an internal resource to achieve
767+ # replication before GA and will not expose to the public API.
768+ class ReplicationInternal
769+ include Google ::Apis ::Core ::Hashable
770+
771+ # Optional. Annotations is an unstructured key-value map stored with a resource
772+ # that may be set by external tools to store and retrieve arbitrary metadata.
773+ # They are not queryable and should be preserved when modifying objects. More
774+ # info: https://kubernetes.io/docs/user-guide/annotations
775+ # Corresponds to the JSON property `annotations`
776+ # @return [Hash<String,String>]
777+ attr_accessor :annotations
778+
779+ # Output only. The timestamp when the resource was created.
780+ # Corresponds to the JSON property `createTime`
781+ # @return [String]
782+ attr_accessor :create_time
783+
784+ # Output only. An opaque value that uniquely identifies a version or generation
785+ # of a resource. It can be used to confirm that the client and server agree on
786+ # the ordering of a resource being written.
787+ # Corresponds to the JSON property `etag`
788+ # @return [String]
789+ attr_accessor :etag
790+
791+ # Optional. The labels on the resource, which can be used for categorization.
792+ # similar to Kubernetes resource labels.
793+ # Corresponds to the JSON property `labels`
794+ # @return [Hash<String,String>]
795+ attr_accessor :labels
796+
797+ # Optional. The maximum number of retries for the replication. If the
798+ # replication fails from a retryable error, it will be retried for this number
799+ # of times.
800+ # Corresponds to the JSON property `maxRetryCount`
801+ # @return [Fixnum]
802+ attr_accessor :max_retry_count
803+
804+ # Identifier. The resource name (full URI of the resource) following the
805+ # standard naming scheme: "projects/`project`/locations/`location`/
806+ # replicationInternal/`replication_internal_id`"
807+ # Corresponds to the JSON property `name`
808+ # @return [String]
809+ attr_accessor :name
810+
811+ # Required. The payload of the request for replication. It could be any request
812+ # type that is supported by the replication service. e.g. CreateUnitKindRequest,
813+ # UpdateUnitKindRequest, DeleteReleaseRequest, etc.
814+ # Corresponds to the JSON property `payload`
815+ # @return [Hash<String,Object>]
816+ attr_accessor :payload
817+
818+ # Output only. The state of the replication.
819+ # Corresponds to the JSON property `state`
820+ # @return [String]
821+ attr_accessor :state
822+
823+ # Output only. The stats of the replication. One key for each location in
824+ # target_locations
825+ # Corresponds to the JSON property `stats`
826+ # @return [Hash<String,Google::Apis::SaasservicemgmtV1beta1::ReplicationStats>]
827+ attr_accessor :stats
828+
829+ # Optional. The target locations to replicate the resource to.
830+ # Corresponds to the JSON property `targetLocations`
831+ # @return [Array<String>]
832+ attr_accessor :target_locations
833+
834+ # Output only. The unique identifier of the resource. UID is unique in the time
835+ # and space for this resource within the scope of the service. It is typically
836+ # generated by the server on successful creation of a resource and must not be
837+ # changed. UID is used to uniquely identify resources with resource name reuses.
838+ # This should be a UUID4.
839+ # Corresponds to the JSON property `uid`
840+ # @return [String]
841+ attr_accessor :uid
842+
843+ # Output only. The timestamp when the resource was last updated. Any change to
844+ # the resource made by users must refresh this value. Changes to a resource made
845+ # by the service should refresh this value.
846+ # Corresponds to the JSON property `updateTime`
847+ # @return [String]
848+ attr_accessor :update_time
849+
850+ def initialize ( **args )
851+ update! ( **args )
852+ end
853+
854+ # Update properties of this object
855+ def update! ( **args )
856+ @annotations = args [ :annotations ] if args . key? ( :annotations )
857+ @create_time = args [ :create_time ] if args . key? ( :create_time )
858+ @etag = args [ :etag ] if args . key? ( :etag )
859+ @labels = args [ :labels ] if args . key? ( :labels )
860+ @max_retry_count = args [ :max_retry_count ] if args . key? ( :max_retry_count )
861+ @name = args [ :name ] if args . key? ( :name )
862+ @payload = args [ :payload ] if args . key? ( :payload )
863+ @state = args [ :state ] if args . key? ( :state )
864+ @stats = args [ :stats ] if args . key? ( :stats )
865+ @target_locations = args [ :target_locations ] if args . key? ( :target_locations )
866+ @uid = args [ :uid ] if args . key? ( :uid )
867+ @update_time = args [ :update_time ] if args . key? ( :update_time )
868+ end
869+ end
870+
871+ # ReplicationStats contains the stats of the replication. It contains the
872+ # resources that are pending, finished, failed, and the errors if any.
873+ class ReplicationStats
874+ include Google ::Apis ::Core ::Hashable
875+
876+ # The errors that occurred during replication, one error for each failed
877+ # resource.
878+ # Corresponds to the JSON property `errors`
879+ # @return [Array<Google::Apis::SaasservicemgmtV1beta1::Status>]
880+ attr_accessor :errors
881+
882+ # The resources that are failed replication.
883+ # Corresponds to the JSON property `failedResources`
884+ # @return [Array<String>]
885+ attr_accessor :failed_resources
886+
887+ # The resources that are finished replication.
888+ # Corresponds to the JSON property `finishedResources`
889+ # @return [Array<String>]
890+ attr_accessor :finished_resources
891+
892+ # The resources that are pending replication.
893+ # Corresponds to the JSON property `pendingResources`
894+ # @return [Array<String>]
895+ attr_accessor :pending_resources
896+
897+ # The number of retries for the failed resources.
898+ # Corresponds to the JSON property `retryCount`
899+ # @return [Array<Fixnum>]
900+ attr_accessor :retry_count
901+
902+ def initialize ( **args )
903+ update! ( **args )
904+ end
905+
906+ # Update properties of this object
907+ def update! ( **args )
908+ @errors = args [ :errors ] if args . key? ( :errors )
909+ @failed_resources = args [ :failed_resources ] if args . key? ( :failed_resources )
910+ @finished_resources = args [ :finished_resources ] if args . key? ( :finished_resources )
911+ @pending_resources = args [ :pending_resources ] if args . key? ( :pending_resources )
912+ @retry_count = args [ :retry_count ] if args . key? ( :retry_count )
913+ end
914+ end
915+
732916 # Represents a single rollout execution and its results
733917 class Rollout
734918 include Google ::Apis ::Core ::Hashable
@@ -1180,6 +1364,45 @@ def update!(**args)
11801364 end
11811365 end
11821366
1367+ # The `Status` type defines a logical error model that is suitable for different
1368+ # programming environments, including REST APIs and RPC APIs. It is used by [
1369+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1370+ # data: error code, error message, and error details. You can find out more
1371+ # about this error model and how to work with it in the [API Design Guide](https:
1372+ # //cloud.google.com/apis/design/errors).
1373+ class Status
1374+ include Google ::Apis ::Core ::Hashable
1375+
1376+ # The status code, which should be an enum value of google.rpc.Code.
1377+ # Corresponds to the JSON property `code`
1378+ # @return [Fixnum]
1379+ attr_accessor :code
1380+
1381+ # A list of messages that carry the error details. There is a common set of
1382+ # message types for APIs to use.
1383+ # Corresponds to the JSON property `details`
1384+ # @return [Array<Hash<String,Object>>]
1385+ attr_accessor :details
1386+
1387+ # A developer-facing error message, which should be in English. Any user-facing
1388+ # error message should be localized and sent in the google.rpc.Status.details
1389+ # field, or localized by the client.
1390+ # Corresponds to the JSON property `message`
1391+ # @return [String]
1392+ attr_accessor :message
1393+
1394+ def initialize ( **args )
1395+ update! ( **args )
1396+ end
1397+
1398+ # Update properties of this object
1399+ def update! ( **args )
1400+ @code = args [ :code ] if args . key? ( :code )
1401+ @details = args [ :details ] if args . key? ( :details )
1402+ @message = args [ :message ] if args . key? ( :message )
1403+ end
1404+ end
1405+
11831406 # Tenant represents the service producer side of an instance of the service
11841407 # created based on a request from a consumer. In a typical scenario a Tenant has
11851408 # a one-to-one mapping with a resource given out to a service consumer. Example:
0 commit comments