vcenter content registries harbor: create spec

The create_spec structure contains the specification required to create a Harbor registry.

Representation:

{
    "cluster""obj-103",
    "garbage_collection"{
        "hour"1,
        "type""NONE",
        "day_of_week""SUNDAY",
        "minute"1
    },
    "storage"[
        {
            "limit"1,
            "policy""obj-103"
        },
        {
            "limit"1,
            "policy""obj-103"
        }
    ]
}

Attributes:

Name Type Description
Required
garbage_collection.type string Frequency of garbage collection.

Defines the supported values for how often to run a specific operation for a container registry. Value is one of:
NONE: No operation is scheduled.
DAILY: An operation occurs on a daily basis.
WEEKLY: An operation occurs on a weekly basis.

storage storage_spec[] Storage associated with the Harbor registry. The list contains only one storage backing in this version.

storage[].policy string Identifier of the storage policy.

When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: SpsStorageProfile. When operations return a value of this structure as a result, the field will be an identifier for the resource type: SpsStorageProfile.

Optional
cluster string Identifier of the cluster hosting the registry.

Optional. If unset, registry will not be created on a specified cluster. This is required in current version, since Harbor can only be created on a cluster with Kubernetes enabled.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ClusterComputeResource. When operations return a value of this structure as a result, the field will be an identifier for the resource type: ClusterComputeResource.

garbage_collection garbage_collection Garbage collection configuration for the Harbor registry.

Optional. If unset, a default configuration is set, Recurrence#WEEKLY, DayOfWeek#SATURDAY, GarbageCollection#hour is 2, GarbageCollection#minute is 0.

garbage_collection.day_of_week string Day of the week when garbage collection should run.

Describes the supported days of the week to run a specific operation for a container registry. Value is one of:
SUNDAY: Sunday.
MONDAY: Monday.
TUESDAY: Tuesday.
WEDNESDAY: Wednesday.
THURSDAY: Thursday.
FRIDAY: Friday.
SATURDAY: Saturday.Optional. It is only relevant when type has value [WEEKLY]. This field is optional and it is only relevant when the value of type is WEEKLY.

garbage_collection.hour long Hour at which garbage collection should run.

Optional. It is only relevant when type has value [DAILY, WEEKLY]. This field is optional and it is only relevant when the value of type is one of DAILY or WEEKLY.

garbage_collection.minute long Minute at which garbage collection should run.

Optional. It is only relevant when type has value [DAILY, WEEKLY]. This field is optional and it is only relevant when the value of type is one of DAILY or WEEKLY.

storage[].limit long The maximum amount of storage (in mebibytes) which can be utilized by the registry for this specification.

Optional. If unset, a default limit of 204800 mebibytes will be set as the registry's storage capacity.