Skip to content

Commit

Permalink
feat(artifactregistry): update the API
Browse files Browse the repository at this point in the history
#### artifactregistry:v1beta1

The following keys were changed:
- schemas.Tag.properties.version.description

#### artifactregistry:v1beta2

The following keys were changed:
- schemas.Tag.properties.version.description

#### artifactregistry:v1

The following keys were added:
- schemas.Repository.properties.registryUri.description
- schemas.Repository.properties.registryUri.readOnly
- schemas.Repository.properties.registryUri.type
- schemas.Repository.properties.vulnerabilityScanningConfig.$ref
- schemas.Repository.properties.vulnerabilityScanningConfig.description
- schemas.VulnerabilityScanningConfig.description
- schemas.VulnerabilityScanningConfig.id
- schemas.VulnerabilityScanningConfig.properties.enablementConfig.description
- schemas.VulnerabilityScanningConfig.properties.enablementConfig.enum
- schemas.VulnerabilityScanningConfig.properties.enablementConfig.enumDescriptions
- schemas.VulnerabilityScanningConfig.properties.enablementConfig.type
- schemas.VulnerabilityScanningConfig.properties.enablementState.description
- schemas.VulnerabilityScanningConfig.properties.enablementState.enum
- schemas.VulnerabilityScanningConfig.properties.enablementState.enumDescriptions
- schemas.VulnerabilityScanningConfig.properties.enablementState.readOnly
- schemas.VulnerabilityScanningConfig.properties.enablementState.type
- schemas.VulnerabilityScanningConfig.properties.enablementStateReason.description
- schemas.VulnerabilityScanningConfig.properties.enablementStateReason.readOnly
- schemas.VulnerabilityScanningConfig.properties.enablementStateReason.type
- schemas.VulnerabilityScanningConfig.properties.lastEnableTime.description
- schemas.VulnerabilityScanningConfig.properties.lastEnableTime.format
- schemas.VulnerabilityScanningConfig.properties.lastEnableTime.readOnly
- schemas.VulnerabilityScanningConfig.properties.lastEnableTime.type
- schemas.VulnerabilityScanningConfig.type

The following keys were changed:
- resources.projects.resources.locations.resources.repositories.resources.rules.methods.patch.parameters.name.description
- schemas.Attachment.properties.attachmentNamespace.description
- schemas.Attachment.properties.name.description
- schemas.Attachment.properties.target.description
- schemas.Attachment.properties.type.description
- schemas.GoogleDevtoolsArtifactregistryV1Rule.description
- schemas.GoogleDevtoolsArtifactregistryV1Rule.properties.action.description
- schemas.GoogleDevtoolsArtifactregistryV1Rule.properties.condition.description
- schemas.GoogleDevtoolsArtifactregistryV1Rule.properties.name.description
- schemas.GoogleDevtoolsArtifactregistryV1Rule.properties.packageId.description
- schemas.ListAttachmentsResponse.properties.attachments.description
- schemas.RemoteRepositoryConfig.properties.commonRepository.description
- schemas.Tag.properties.version.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 29, 2025
1 parent 80f3431 commit 4b68c95
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 32 deletions.
86 changes: 72 additions & 14 deletions discovery/artifactregistry-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@
],
"parameters": {
"name": {
"description": "The name of the rule, for example: \"projects/p1/locations/us-central1/repositories/repo1/rules/rule1\".",
"description": "The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/rules/[^/]+$",
"required": true,
Expand Down Expand Up @@ -2439,7 +2439,7 @@
}
}
},
"revision": "20241001",
"revision": "20241205",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -2517,7 +2517,7 @@
"type": "object"
},
"attachmentNamespace": {
"description": "The namespace this attachment belongs to. E.g. If an Attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.",
"description": "The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.",
"type": "string"
},
"createTime": {
Expand All @@ -2534,7 +2534,7 @@
"type": "array"
},
"name": {
"description": "The name of the attachment. E.g. \"projects/p1/locations/us/repositories/repo/attachments/sbom\".",
"description": "The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.",
"type": "string"
},
"ociVersionName": {
Expand All @@ -2543,11 +2543,11 @@
"type": "string"
},
"target": {
"description": "Required. The target the attachment is for, can be a Version, Package or Repository. E.g. \"projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1\".",
"description": "Required. The target the attachment is for, can be a Version, Package or Repository. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.",
"type": "string"
},
"type": {
"description": "Type of Attachment. E.g. `application/vnd.spdx+json`",
"description": "Type of attachment. E.g. `application/vnd.spdx+json`",
"type": "string"
},
"updateTime": {
Expand Down Expand Up @@ -3101,11 +3101,11 @@
"type": "object"
},
"GoogleDevtoolsArtifactregistryV1Rule": {
"description": "A Rule applies to repository or package level. It defines the deny or allow action of the operation when the conditions in the rule are met.",
"description": "A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within.",
"id": "GoogleDevtoolsArtifactregistryV1Rule",
"properties": {
"action": {
"description": "The action this rule makes.",
"description": "The action this rule takes.",
"enum": [
"ACTION_UNSPECIFIED",
"ALLOW",
Expand All @@ -3120,10 +3120,10 @@
},
"condition": {
"$ref": "Expr",
"description": "Optional. The condition of the rule in CEL expression. If not provided, the rule matches all the objects."
"description": "Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects."
},
"name": {
"description": "The name of the rule, for example: \"projects/p1/locations/us-central1/repositories/repo1/rules/rule1\".",
"description": "The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.",
"type": "string"
},
"operation": {
Expand All @@ -3138,7 +3138,7 @@
"type": "string"
},
"packageId": {
"description": "The package ID the rule applies to. If empty, this rule applies to all the packages inside the repository.",
"description": "The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.",
"type": "string"
}
},
Expand Down Expand Up @@ -3404,7 +3404,7 @@
"id": "ListAttachmentsResponse",
"properties": {
"attachments": {
"description": "The Attachments returned.",
"description": "The attachments returned.",
"items": {
"$ref": "Attachment"
},
Expand Down Expand Up @@ -4006,7 +4006,7 @@
},
"commonRepository": {
"$ref": "CommonRemoteRepository",
"description": "Common remote repository settings. Used as the RemoteRepository upstream URL instead of Predefined and Custom remote repositories. Google Cloud Console and Google Cloud CLI will map all the new remote repositories to this field."
"description": "Common remote repository settings. Used as the remote repository upstream URL."
},
"description": {
"description": "The description of the remote source.",
Expand Down Expand Up @@ -4145,6 +4145,11 @@
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.",
"type": "string"
},
"registryUri": {
"description": "Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.",
"readOnly": true,
"type": "string"
},
"remoteRepositoryConfig": {
"$ref": "RemoteRepositoryConfig",
"description": "Configuration specific for a Remote Repository."
Expand Down Expand Up @@ -4174,6 +4179,10 @@
"virtualRepositoryConfig": {
"$ref": "VirtualRepositoryConfig",
"description": "Configuration specific for a Virtual Repository."
},
"vulnerabilityScanningConfig": {
"$ref": "VulnerabilityScanningConfig",
"description": "Optional. Config and state for vulnerability scanning of resources within this Repository."
}
},
"type": "object"
Expand Down Expand Up @@ -4225,7 +4234,7 @@
"type": "string"
},
"version": {
"description": "The name of the version the tag refers to, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811\" If the package or version ID parts contain slashes, the slashes are escaped.",
"description": "The name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.",
"type": "string"
}
},
Expand Down Expand Up @@ -4619,6 +4628,55 @@
},
"type": "object"
},
"VulnerabilityScanningConfig": {
"description": "Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.",
"id": "VulnerabilityScanningConfig",
"properties": {
"enablementConfig": {
"description": "Optional. Config for whether this repository has vulnerability scanning disabled.",
"enum": [
"ENABLEMENT_CONFIG_UNSPECIFIED",
"INHERITED",
"DISABLED"
],
"enumDescriptions": [
"Not set. This will be treated as INHERITED.",
"Scanning is Enabled, but dependent on API enablement.",
"No automatic vulnerability scanning will be performed for this repository."
],
"type": "string"
},
"enablementState": {
"description": "Output only. State of feature enablement, combining repository enablement config and API enablement state.",
"enum": [
"ENABLEMENT_STATE_UNSPECIFIED",
"SCANNING_UNSUPPORTED",
"SCANNING_DISABLED",
"SCANNING_ACTIVE"
],
"enumDescriptions": [
"Enablement state is unclear.",
"Repository does not support vulnerability scanning.",
"Vulnerability scanning is disabled for this repository.",
"Vulnerability scanning is active for this repository."
],
"readOnly": true,
"type": "string"
},
"enablementStateReason": {
"description": "Output only. Reason for the repository state.",
"readOnly": true,
"type": "string"
},
"lastEnableTime": {
"description": "Output only. The last time this repository config was enabled.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"YumArtifact": {
"description": "A detailed representation of a Yum artifact.",
"id": "YumArtifact",
Expand Down
4 changes: 2 additions & 2 deletions discovery/artifactregistry-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@
}
}
},
"revision": "20241001",
"revision": "20241010",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"Binding": {
Expand Down Expand Up @@ -1626,7 +1626,7 @@
"type": "string"
},
"version": {
"description": "The name of the version the tag refers to, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811\" If the package or version ID parts contain slashes, the slashes are escaped.",
"description": "The name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.",
"type": "string"
}
},
Expand Down
4 changes: 2 additions & 2 deletions discovery/artifactregistry-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@
}
}
},
"revision": "20241001",
"revision": "20241010",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -2176,7 +2176,7 @@
"type": "string"
},
"version": {
"description": "The name of the version the tag refers to, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811\" If the package or version ID parts contain slashes, the slashes are escaped.",
"description": "The name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.",
"type": "string"
}
},
Expand Down
55 changes: 42 additions & 13 deletions src/apis/artifactregistry/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export namespace artifactregistry_v1 {
*/
annotations?: {[key: string]: string} | null;
/**
* The namespace this attachment belongs to. E.g. If an Attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
* The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
*/
attachmentNamespace?: string | null;
/**
Expand All @@ -187,19 +187,19 @@ export namespace artifactregistry_v1 {
*/
files?: string[] | null;
/**
* The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
* The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.
*/
name?: string | null;
/**
* Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
*/
ociVersionName?: string | null;
/**
* Required. The target the attachment is for, can be a Version, Package or Repository. E.g. "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
* Required. The target the attachment is for, can be a Version, Package or Repository. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
*/
target?: string | null;
/**
* Type of Attachment. E.g. `application/vnd.spdx+json`
* Type of attachment. E.g. `application/vnd.spdx+json`
*/
type?: string | null;
/**
Expand Down Expand Up @@ -583,24 +583,24 @@ export namespace artifactregistry_v1 {
repositoryPath?: string | null;
}
/**
* A Rule applies to repository or package level. It defines the deny or allow action of the operation when the conditions in the rule are met.
* A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within.
*/
export interface Schema$GoogleDevtoolsArtifactregistryV1Rule {
/**
* The action this rule makes.
* The action this rule takes.
*/
action?: string | null;
/**
* Optional. The condition of the rule in CEL expression. If not provided, the rule matches all the objects.
* Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
*/
condition?: Schema$Expr;
/**
* The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
* The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
*/
name?: string | null;
operation?: string | null;
/**
* The package ID the rule applies to. If empty, this rule applies to all the packages inside the repository.
* The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
*/
packageId?: string | null;
}
Expand Down Expand Up @@ -791,7 +791,7 @@ export namespace artifactregistry_v1 {
*/
export interface Schema$ListAttachmentsResponse {
/**
* The Attachments returned.
* The attachments returned.
*/
attachments?: Schema$Attachment[];
/**
Expand Down Expand Up @@ -1207,7 +1207,7 @@ export namespace artifactregistry_v1 {
*/
aptRepository?: Schema$AptRepository;
/**
* Common remote repository settings. Used as the RemoteRepository upstream URL instead of Predefined and Custom remote repositories. Google Cloud Console and Google Cloud CLI will map all the new remote repositories to this field.
* Common remote repository settings. Used as the remote repository upstream URL.
*/
commonRepository?: Schema$CommonRemoteRepository;
/**
Expand Down Expand Up @@ -1295,6 +1295,10 @@ export namespace artifactregistry_v1 {
* The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.
*/
name?: string | null;
/**
* Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
*/
registryUri?: string | null;
/**
* Configuration specific for a Remote Repository.
*/
Expand All @@ -1319,6 +1323,10 @@ export namespace artifactregistry_v1 {
* Configuration specific for a Virtual Repository.
*/
virtualRepositoryConfig?: Schema$VirtualRepositoryConfig;
/**
* Optional. Config and state for vulnerability scanning of resources within this Repository.
*/
vulnerabilityScanningConfig?: Schema$VulnerabilityScanningConfig;
}
/**
* Request message for `SetIamPolicy` method.
Expand Down Expand Up @@ -1355,7 +1363,7 @@ export namespace artifactregistry_v1 {
*/
name?: string | null;
/**
* The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
* The name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.
*/
version?: string | null;
}
Expand Down Expand Up @@ -1640,6 +1648,27 @@ export namespace artifactregistry_v1 {
*/
vpcscPolicy?: string | null;
}
/**
* Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
*/
export interface Schema$VulnerabilityScanningConfig {
/**
* Optional. Config for whether this repository has vulnerability scanning disabled.
*/
enablementConfig?: string | null;
/**
* Output only. State of feature enablement, combining repository enablement config and API enablement state.
*/
enablementState?: string | null;
/**
* Output only. Reason for the repository state.
*/
enablementStateReason?: string | null;
/**
* Output only. The last time this repository config was enabled.
*/
lastEnableTime?: string | null;
}
/**
* A detailed representation of a Yum artifact.
*/
Expand Down Expand Up @@ -8100,7 +8129,7 @@ export namespace artifactregistry_v1 {
export interface Params$Resource$Projects$Locations$Repositories$Rules$Patch
extends StandardParameters {
/**
* The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
* The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
*/
name?: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/artifactregistry/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export namespace artifactregistry_v1beta1 {
*/
name?: string | null;
/**
* The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
* The name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.
*/
version?: string | null;
}
Expand Down

0 comments on commit 4b68c95

Please sign in to comment.