Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR containerregistry/resource-manager] [ACR] Add "19-05-01" GA specification for Microsoft.ContainerRegistry #2973

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 83 additions & 118 deletions sdk/containerregistry/arm-containerregistry/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,69 @@ export interface NetworkRuleSet {
ipRules?: IPRule[];
}

/**
* The quarantine policy for a container registry.
*/
export interface QuarantinePolicy {
/**
* The value that indicates whether the policy is enabled or not. Possible values include:
* 'enabled', 'disabled'
*/
status?: PolicyStatus;
}

/**
* The content trust policy for a container registry.
*/
export interface TrustPolicy {
/**
* The type of trust policy. Possible values include: 'Notary'
*/
type?: TrustPolicyType;
/**
* The value that indicates whether the policy is enabled or not. Possible values include:
* 'enabled', 'disabled'
*/
status?: PolicyStatus;
}

/**
* The retention policy for a container registry.
*/
export interface RetentionPolicy {
/**
* The number of days to retain manifest before it expires.
*/
days?: number;
/**
* The timestamp when the the policy was last updated.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly lastUpdatedTime?: Date;
/**
* The value that indicates whether the policy is enabled or not.
*/
status?: string;
}

/**
* The policies for a container registry.
*/
export interface Policies {
/**
* The quarantine policy for a container registry.
*/
quarantinePolicy?: QuarantinePolicy;
/**
* The content trust policy for a container registry.
*/
trustPolicy?: TrustPolicy;
/**
* The retention policy for a container registry.
*/
retentionPolicy?: RetentionPolicy;
}

/**
* An Azure resource.
*/
Expand Down Expand Up @@ -355,6 +418,10 @@ export interface Registry extends Resource {
* The network rule set for a container registry.
*/
networkRuleSet?: NetworkRuleSet;
/**
* The policies for a container registry.
*/
policies?: Policies;
}

/**
Expand All @@ -373,16 +440,14 @@ export interface RegistryUpdateParameters {
* The value that indicates whether the admin user is enabled.
*/
adminUserEnabled?: boolean;
/**
* The parameters of a storage account for the container registry. Only applicable to Classic
* SKU. If specified, the storage account must be in the same physical location as the container
* registry.
*/
storageAccount?: StorageAccountProperties;
/**
* The network rule set for a container registry.
*/
networkRuleSet?: NetworkRuleSet;
/**
* The policies for a container registry.
*/
policies?: Policies;
}

/**
Expand Down Expand Up @@ -456,46 +521,6 @@ export interface RegistryUsageListResult {
value?: RegistryUsage[];
}

/**
* An object that represents quarantine policy for a container registry.
*/
export interface QuarantinePolicy {
/**
* The value that indicates whether the policy is enabled or not. Possible values include:
* 'enabled', 'disabled'
*/
status?: PolicyStatus;
}

/**
* An object that represents content trust policy for a container registry.
*/
export interface TrustPolicy {
/**
* The type of trust policy. Possible values include: 'Notary'
*/
type?: TrustPolicyType;
/**
* The value that indicates whether the policy is enabled or not. Possible values include:
* 'enabled', 'disabled'
*/
status?: PolicyStatus;
}

/**
* An object that represents policies for a container registry.
*/
export interface RegistryPolicies {
/**
* An object that represents quarantine policy for a container registry.
*/
quarantinePolicy?: QuarantinePolicy;
/**
* An object that represents content trust policy for a container registry.
*/
trustPolicy?: TrustPolicy;
}

/**
* An object that represents a replication for a container registry.
*/
Expand Down Expand Up @@ -2311,36 +2336,36 @@ export type DefaultAction = 'Allow' | 'Deny';
export type Action = 'Allow';

/**
* Defines values for PasswordName.
* Possible values include: 'password', 'password2'
* Defines values for PolicyStatus.
* Possible values include: 'enabled', 'disabled'
* @readonly
* @enum {string}
*/
export type PasswordName = 'password' | 'password2';
export type PolicyStatus = 'enabled' | 'disabled';

/**
* Defines values for RegistryUsageUnit.
* Possible values include: 'Count', 'Bytes'
* Defines values for TrustPolicyType.
* Possible values include: 'Notary'
* @readonly
* @enum {string}
*/
export type RegistryUsageUnit = 'Count' | 'Bytes';
export type TrustPolicyType = 'Notary';

/**
* Defines values for PolicyStatus.
* Possible values include: 'enabled', 'disabled'
* Defines values for PasswordName.
* Possible values include: 'password', 'password2'
* @readonly
* @enum {string}
*/
export type PolicyStatus = 'enabled' | 'disabled';
export type PasswordName = 'password' | 'password2';

/**
* Defines values for TrustPolicyType.
* Possible values include: 'Notary'
* Defines values for RegistryUsageUnit.
* Possible values include: 'Count', 'Bytes'
* @readonly
* @enum {string}
*/
export type TrustPolicyType = 'Notary';
export type RegistryUsageUnit = 'Count' | 'Bytes';

/**
* Defines values for WebhookStatus.
Expand Down Expand Up @@ -2660,46 +2685,6 @@ export type RegistriesListUsagesResponse = RegistryUsageListResult & {
};
};

/**
* Contains response data for the listPolicies operation.
*/
export type RegistriesListPoliciesResponse = RegistryPolicies & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: RegistryPolicies;
};
};

/**
* Contains response data for the updatePolicies operation.
*/
export type RegistriesUpdatePoliciesResponse = RegistryPolicies & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: RegistryPolicies;
};
};

/**
* Contains response data for the scheduleRun operation.
*/
Expand Down Expand Up @@ -2780,26 +2765,6 @@ export type RegistriesBeginUpdateResponse = Registry & {
};
};

/**
* Contains response data for the beginUpdatePolicies operation.
*/
export type RegistriesBeginUpdatePoliciesResponse = RegistryPolicies & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: RegistryPolicies;
};
};

/**
* Contains response data for the beginScheduleRun operation.
*/
Expand Down
Loading