All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ksyun.client.kcrs.updateretentionrule.v20211109.UpdateRetentionRuleRequest Maven / Gradle / Ivy

Go to download

The KSYUN Web Services SDK for Java provides Java APIs for building software on KSYUN' cost-effective, scalable, and reliable infrastructure products. The KSYUN Java SDK allows developers to code against APIs for all of KSYUN's infrastructure web services (KSC S3, KSC KEC, KSC RDS etc).

The newest version!
package ksyun.client.kcrs.updateretentionrule.v20211109;

import common.annotation.KsYunField;
import lombok.Data;
import lombok.ToString;

/**
 * @Classname UpdateRetentionRuleRequest
 * @Description 请求参数
 */
@Data
public class UpdateRetentionRuleRequest {
    /**
     * 实例Id
     */
    @KsYunField(name = "InstanceId")
    private String InstanceId;

    /**
     * 命名空间
     */
    @KsYunField(name = "Namespace")
    private String Namespace;

    /**
     * 参数实体类
     */
    @KsYunField(name = "Rule")

    private RuleDto RuleList;

    @Data
    @ToString
    public static class RuleDto {
        /**
         * RuleId
         */
        @KsYunField(name = "RuleId")
        private String RuleId;
        /**
         * 生效范围,多个仓库用逗号隔开 eg: repo1,repo2
         */
        @KsYunField(name = "Scope")
        private String Scope;
        /**
         * 保留策略为镜像版本时,Template=always
         * 

* 保留策略为镜像数量时,Template =latestPushedK/latestPulledN/nDaysSinceLastPush/nDaysSinceLastPull,分别对应“保留最新推送的#个镜像”,“保留最新拉取的#个镜像”,“保留最近#天推送的镜像”,“保留最近#天拉取的镜像” */ @KsYunField(name = "Template") private String Template; /** * 在保留策略为镜像版本时必选 ,匹配版本名称,支持repo* 表示模糊匹配。 */ @KsYunField(name = "Tag") private String Tag; /** * 在保留策略为镜像版本时可选 ,是否匹配无tag版本,默认为true */ @KsYunField(name = "UnTagged") private Boolean UnTagged; /** * 在保留策略为镜像数量时必选 ,保留数量 */ @KsYunField(name = "Param") private String Param; /** * 是否禁用,默认false */ @KsYunField(name = "Disabled") private Boolean Disabled; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy