Skip to content

Commit 4b68c95

Browse files
yoshi-automationsofisl
authored andcommitted
feat(artifactregistry): update the API
#### 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
1 parent 80f3431 commit 4b68c95

File tree

5 files changed

+119
-32
lines changed

5 files changed

+119
-32
lines changed

‎discovery/artifactregistry-v1.json

Lines changed: 72 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@
23342334
],
23352335
"parameters": {
23362336
"name": {
2337-
"description": "The name of the rule, for example: \"projects/p1/locations/us-central1/repositories/repo1/rules/rule1\".",
2337+
"description": "The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.",
23382338
"location": "path",
23392339
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/rules/[^/]+$",
23402340
"required": true,
@@ -2439,7 +2439,7 @@
24392439
}
24402440
}
24412441
},
2442-
"revision": "20241001",
2442+
"revision": "20241205",
24432443
"rootUrl": "https://artifactregistry.googleapis.com/",
24442444
"schemas": {
24452445
"AptArtifact": {
@@ -2517,7 +2517,7 @@
25172517
"type": "object"
25182518
},
25192519
"attachmentNamespace": {
2520-
"description": "The namespace this attachment belongs to. E.g. If an Attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.",
2520+
"description": "The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.",
25212521
"type": "string"
25222522
},
25232523
"createTime": {
@@ -2534,7 +2534,7 @@
25342534
"type": "array"
25352535
},
25362536
"name": {
2537-
"description": "The name of the attachment. E.g. \"projects/p1/locations/us/repositories/repo/attachments/sbom\".",
2537+
"description": "The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.",
25382538
"type": "string"
25392539
},
25402540
"ociVersionName": {
@@ -2543,11 +2543,11 @@
25432543
"type": "string"
25442544
},
25452545
"target": {
2546-
"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\".",
2546+
"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`.",
25472547
"type": "string"
25482548
},
25492549
"type": {
2550-
"description": "Type of Attachment. E.g. `application/vnd.spdx+json`",
2550+
"description": "Type of attachment. E.g. `application/vnd.spdx+json`",
25512551
"type": "string"
25522552
},
25532553
"updateTime": {
@@ -3101,11 +3101,11 @@
31013101
"type": "object"
31023102
},
31033103
"GoogleDevtoolsArtifactregistryV1Rule": {
3104-
"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.",
3104+
"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.",
31053105
"id": "GoogleDevtoolsArtifactregistryV1Rule",
31063106
"properties": {
31073107
"action": {
3108-
"description": "The action this rule makes.",
3108+
"description": "The action this rule takes.",
31093109
"enum": [
31103110
"ACTION_UNSPECIFIED",
31113111
"ALLOW",
@@ -3120,10 +3120,10 @@
31203120
},
31213121
"condition": {
31223122
"$ref": "Expr",
3123-
"description": "Optional. The condition of the rule in CEL expression. If not provided, the rule matches all the objects."
3123+
"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."
31243124
},
31253125
"name": {
3126-
"description": "The name of the rule, for example: \"projects/p1/locations/us-central1/repositories/repo1/rules/rule1\".",
3126+
"description": "The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.",
31273127
"type": "string"
31283128
},
31293129
"operation": {
@@ -3138,7 +3138,7 @@
31383138
"type": "string"
31393139
},
31403140
"packageId": {
3141-
"description": "The package ID the rule applies to. If empty, this rule applies to all the packages inside the repository.",
3141+
"description": "The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.",
31423142
"type": "string"
31433143
}
31443144
},
@@ -3404,7 +3404,7 @@
34043404
"id": "ListAttachmentsResponse",
34053405
"properties": {
34063406
"attachments": {
3407-
"description": "The Attachments returned.",
3407+
"description": "The attachments returned.",
34083408
"items": {
34093409
"$ref": "Attachment"
34103410
},
@@ -4006,7 +4006,7 @@
40064006
},
40074007
"commonRepository": {
40084008
"$ref": "CommonRemoteRepository",
4009-
"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."
4009+
"description": "Common remote repository settings. Used as the remote repository upstream URL."
40104010
},
40114011
"description": {
40124012
"description": "The description of the remote source.",
@@ -4145,6 +4145,11 @@
41454145
"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.",
41464146
"type": "string"
41474147
},
4148+
"registryUri": {
4149+
"description": "Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.",
4150+
"readOnly": true,
4151+
"type": "string"
4152+
},
41484153
"remoteRepositoryConfig": {
41494154
"$ref": "RemoteRepositoryConfig",
41504155
"description": "Configuration specific for a Remote Repository."
@@ -4174,6 +4179,10 @@
41744179
"virtualRepositoryConfig": {
41754180
"$ref": "VirtualRepositoryConfig",
41764181
"description": "Configuration specific for a Virtual Repository."
4182+
},
4183+
"vulnerabilityScanningConfig": {
4184+
"$ref": "VulnerabilityScanningConfig",
4185+
"description": "Optional. Config and state for vulnerability scanning of resources within this Repository."
41774186
}
41784187
},
41794188
"type": "object"
@@ -4225,7 +4234,7 @@
42254234
"type": "string"
42264235
},
42274236
"version": {
4228-
"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.",
4237+
"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.",
42294238
"type": "string"
42304239
}
42314240
},
@@ -4619,6 +4628,55 @@
46194628
},
46204629
"type": "object"
46214630
},
4631+
"VulnerabilityScanningConfig": {
4632+
"description": "Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.",
4633+
"id": "VulnerabilityScanningConfig",
4634+
"properties": {
4635+
"enablementConfig": {
4636+
"description": "Optional. Config for whether this repository has vulnerability scanning disabled.",
4637+
"enum": [
4638+
"ENABLEMENT_CONFIG_UNSPECIFIED",
4639+
"INHERITED",
4640+
"DISABLED"
4641+
],
4642+
"enumDescriptions": [
4643+
"Not set. This will be treated as INHERITED.",
4644+
"Scanning is Enabled, but dependent on API enablement.",
4645+
"No automatic vulnerability scanning will be performed for this repository."
4646+
],
4647+
"type": "string"
4648+
},
4649+
"enablementState": {
4650+
"description": "Output only. State of feature enablement, combining repository enablement config and API enablement state.",
4651+
"enum": [
4652+
"ENABLEMENT_STATE_UNSPECIFIED",
4653+
"SCANNING_UNSUPPORTED",
4654+
"SCANNING_DISABLED",
4655+
"SCANNING_ACTIVE"
4656+
],
4657+
"enumDescriptions": [
4658+
"Enablement state is unclear.",
4659+
"Repository does not support vulnerability scanning.",
4660+
"Vulnerability scanning is disabled for this repository.",
4661+
"Vulnerability scanning is active for this repository."
4662+
],
4663+
"readOnly": true,
4664+
"type": "string"
4665+
},
4666+
"enablementStateReason": {
4667+
"description": "Output only. Reason for the repository state.",
4668+
"readOnly": true,
4669+
"type": "string"
4670+
},
4671+
"lastEnableTime": {
4672+
"description": "Output only. The last time this repository config was enabled.",
4673+
"format": "google-datetime",
4674+
"readOnly": true,
4675+
"type": "string"
4676+
}
4677+
},
4678+
"type": "object"
4679+
},
46224680
"YumArtifact": {
46234681
"description": "A detailed representation of a Yum artifact.",
46244682
"id": "YumArtifact",

‎discovery/artifactregistry-v1beta1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@
11561156
}
11571157
}
11581158
},
1159-
"revision": "20241001",
1159+
"revision": "20241010",
11601160
"rootUrl": "https://artifactregistry.googleapis.com/",
11611161
"schemas": {
11621162
"Binding": {
@@ -1626,7 +1626,7 @@
16261626
"type": "string"
16271627
},
16281628
"version": {
1629-
"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.",
1629+
"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.",
16301630
"type": "string"
16311631
}
16321632
},

‎discovery/artifactregistry-v1beta2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@
14241424
}
14251425
}
14261426
},
1427-
"revision": "20241001",
1427+
"revision": "20241010",
14281428
"rootUrl": "https://artifactregistry.googleapis.com/",
14291429
"schemas": {
14301430
"AptArtifact": {
@@ -2176,7 +2176,7 @@
21762176
"type": "string"
21772177
},
21782178
"version": {
2179-
"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.",
2179+
"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.",
21802180
"type": "string"
21812181
}
21822182
},

‎src/apis/artifactregistry/v1.ts

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export namespace artifactregistry_v1 {
175175
*/
176176
annotations?: {[key: string]: string} | null;
177177
/**
178-
* The namespace this attachment belongs to. E.g. If an Attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
178+
* The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
179179
*/
180180
attachmentNamespace?: string | null;
181181
/**
@@ -187,19 +187,19 @@ export namespace artifactregistry_v1 {
187187
*/
188188
files?: string[] | null;
189189
/**
190-
* The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
190+
* The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.
191191
*/
192192
name?: string | null;
193193
/**
194194
* 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`.
195195
*/
196196
ociVersionName?: string | null;
197197
/**
198-
* 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".
198+
* 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`.
199199
*/
200200
target?: string | null;
201201
/**
202-
* Type of Attachment. E.g. `application/vnd.spdx+json`
202+
* Type of attachment. E.g. `application/vnd.spdx+json`
203203
*/
204204
type?: string | null;
205205
/**
@@ -583,24 +583,24 @@ export namespace artifactregistry_v1 {
583583
repositoryPath?: string | null;
584584
}
585585
/**
586-
* 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.
586+
* 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.
587587
*/
588588
export interface Schema$GoogleDevtoolsArtifactregistryV1Rule {
589589
/**
590-
* The action this rule makes.
590+
* The action this rule takes.
591591
*/
592592
action?: string | null;
593593
/**
594-
* Optional. The condition of the rule in CEL expression. If not provided, the rule matches all the objects.
594+
* 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.
595595
*/
596596
condition?: Schema$Expr;
597597
/**
598-
* The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
598+
* The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
599599
*/
600600
name?: string | null;
601601
operation?: string | null;
602602
/**
603-
* The package ID the rule applies to. If empty, this rule applies to all the packages inside the repository.
603+
* The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
604604
*/
605605
packageId?: string | null;
606606
}
@@ -791,7 +791,7 @@ export namespace artifactregistry_v1 {
791791
*/
792792
export interface Schema$ListAttachmentsResponse {
793793
/**
794-
* The Attachments returned.
794+
* The attachments returned.
795795
*/
796796
attachments?: Schema$Attachment[];
797797
/**
@@ -1207,7 +1207,7 @@ export namespace artifactregistry_v1 {
12071207
*/
12081208
aptRepository?: Schema$AptRepository;
12091209
/**
1210-
* 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.
1210+
* Common remote repository settings. Used as the remote repository upstream URL.
12111211
*/
12121212
commonRepository?: Schema$CommonRemoteRepository;
12131213
/**
@@ -1295,6 +1295,10 @@ export namespace artifactregistry_v1 {
12951295
* 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.
12961296
*/
12971297
name?: string | null;
1298+
/**
1299+
* Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
1300+
*/
1301+
registryUri?: string | null;
12981302
/**
12991303
* Configuration specific for a Remote Repository.
13001304
*/
@@ -1319,6 +1323,10 @@ export namespace artifactregistry_v1 {
13191323
* Configuration specific for a Virtual Repository.
13201324
*/
13211325
virtualRepositoryConfig?: Schema$VirtualRepositoryConfig;
1326+
/**
1327+
* Optional. Config and state for vulnerability scanning of resources within this Repository.
1328+
*/
1329+
vulnerabilityScanningConfig?: Schema$VulnerabilityScanningConfig;
13221330
}
13231331
/**
13241332
* Request message for `SetIamPolicy` method.
@@ -1355,7 +1363,7 @@ export namespace artifactregistry_v1 {
13551363
*/
13561364
name?: string | null;
13571365
/**
1358-
* 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.
1366+
* 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.
13591367
*/
13601368
version?: string | null;
13611369
}
@@ -1640,6 +1648,27 @@ export namespace artifactregistry_v1 {
16401648
*/
16411649
vpcscPolicy?: string | null;
16421650
}
1651+
/**
1652+
* Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
1653+
*/
1654+
export interface Schema$VulnerabilityScanningConfig {
1655+
/**
1656+
* Optional. Config for whether this repository has vulnerability scanning disabled.
1657+
*/
1658+
enablementConfig?: string | null;
1659+
/**
1660+
* Output only. State of feature enablement, combining repository enablement config and API enablement state.
1661+
*/
1662+
enablementState?: string | null;
1663+
/**
1664+
* Output only. Reason for the repository state.
1665+
*/
1666+
enablementStateReason?: string | null;
1667+
/**
1668+
* Output only. The last time this repository config was enabled.
1669+
*/
1670+
lastEnableTime?: string | null;
1671+
}
16431672
/**
16441673
* A detailed representation of a Yum artifact.
16451674
*/
@@ -8100,7 +8129,7 @@ export namespace artifactregistry_v1 {
81008129
export interface Params$Resource$Projects$Locations$Repositories$Rules$Patch
81018130
extends StandardParameters {
81028131
/**
8103-
* The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
8132+
* The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
81048133
*/
81058134
name?: string;
81068135
/**

‎src/apis/artifactregistry/v1beta1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export namespace artifactregistry_v1beta1 {
454454
*/
455455
name?: string | null;
456456
/**
457-
* 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.
457+
* 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.
458458
*/
459459
version?: string | null;
460460
}

0 commit comments

Comments
 (0)