Skip to content

Commit d70a33e

Browse files
yoshi-automationsofisl
authored andcommittedAug 8, 2023
feat(artifactregistry): update the API
#### artifactregistry:v1beta1 The following keys were changed: - resources.projects.resources.locations.resources.repositories.resources.packages.resources.tags.methods.list.parameters.parent.description - schemas.Operation.properties.response.description - schemas.Policy.description #### artifactregistry:v1beta2 The following keys were changed: - resources.projects.resources.locations.resources.repositories.resources.packages.resources.tags.methods.list.parameters.parent.description - schemas.Operation.properties.response.description - schemas.Policy.description #### artifactregistry:v1 The following keys were added: - schemas.Repository.properties.sbomConfig.$ref - schemas.Repository.properties.sbomConfig.description - schemas.SbomConfig.description - schemas.SbomConfig.id - schemas.SbomConfig.properties.enablementConfig.description - schemas.SbomConfig.properties.enablementConfig.enum - schemas.SbomConfig.properties.enablementConfig.enumDescriptions - schemas.SbomConfig.properties.enablementConfig.type - schemas.SbomConfig.properties.lastEnableTime.description - schemas.SbomConfig.properties.lastEnableTime.format - schemas.SbomConfig.properties.lastEnableTime.readOnly - schemas.SbomConfig.properties.lastEnableTime.type - schemas.SbomConfig.type The following keys were changed: - resources.projects.resources.locations.resources.repositories.resources.packages.resources.tags.methods.list.parameters.parent.description - schemas.Operation.properties.response.description - schemas.Policy.description
1 parent 6ae8d8d commit d70a33e

File tree

7 files changed

+70
-3703
lines changed

7 files changed

+70
-3703
lines changed
 

‎discovery/artifactregistry-v1.json

+35-4
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@
13011301
"type": "string"
13021302
},
13031303
"parent": {
1304-
"description": "The name of the parent package whose tags will be listed. Example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1",
1304+
"description": "The name of the parent package whose tags will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.",
13051305
"location": "path",
13061306
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$",
13071307
"required": true,
@@ -1661,7 +1661,7 @@
16611661
}
16621662
}
16631663
},
1664-
"revision": "20230710",
1664+
"revision": "20230803",
16651665
"rootUrl": "https://artifactregistry.googleapis.com/",
16661666
"schemas": {
16671667
"AptArtifact": {
@@ -2716,7 +2716,7 @@
27162716
"description": "Properties of the object. Contains field @type with type URL.",
27172717
"type": "any"
27182718
},
2719-
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
2719+
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
27202720
"type": "object"
27212721
}
27222722
},
@@ -2754,7 +2754,7 @@
27542754
"type": "object"
27552755
},
27562756
"Policy": {
2757-
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
2757+
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
27582758
"id": "Policy",
27592759
"properties": {
27602760
"bindings": {
@@ -2992,6 +2992,10 @@
29922992
"readOnly": true,
29932993
"type": "boolean"
29942994
},
2995+
"sbomConfig": {
2996+
"$ref": "SbomConfig",
2997+
"description": "Optional. Config and state for sbom generation for resources within this Repository."
2998+
},
29952999
"sizeBytes": {
29963000
"description": "Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.",
29973001
"format": "int64",
@@ -3011,6 +3015,33 @@
30113015
},
30123016
"type": "object"
30133017
},
3018+
"SbomConfig": {
3019+
"description": "Config for whether to generate SBOMs for resources in this repository, as well as output fields describing current state.",
3020+
"id": "SbomConfig",
3021+
"properties": {
3022+
"enablementConfig": {
3023+
"description": "Optional. Config for whether this repository has sbom generation disabled.",
3024+
"enum": [
3025+
"ENABLEMENT_CONFIG_UNSPECIFIED",
3026+
"INHERITED",
3027+
"DISABLED"
3028+
],
3029+
"enumDescriptions": [
3030+
"Unspecified config was not set. This will be interpreted as DISABLED.",
3031+
"Inherited indicates the repository is allowed for SBOM generation, however the actual state will be inherited from the API enablement state.",
3032+
"Disabled indicates the repository will not generate SBOMs."
3033+
],
3034+
"type": "string"
3035+
},
3036+
"lastEnableTime": {
3037+
"description": "Output only. The last time this repository config was set to INHERITED.",
3038+
"format": "google-datetime",
3039+
"readOnly": true,
3040+
"type": "string"
3041+
}
3042+
},
3043+
"type": "object"
3044+
},
30143045
"SetIamPolicyRequest": {
30153046
"description": "Request message for `SetIamPolicy` method.",
30163047
"id": "SetIamPolicyRequest",

‎discovery/artifactregistry-v1beta1.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@
736736
"type": "string"
737737
},
738738
"parent": {
739-
"description": "The name of the parent package whose tags will be listed. Example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1",
739+
"description": "The name of the parent package whose tags will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.",
740740
"location": "path",
741741
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$",
742742
"required": true,
@@ -929,7 +929,7 @@
929929
}
930930
}
931931
},
932-
"revision": "20230615",
932+
"revision": "20230803",
933933
"rootUrl": "https://artifactregistry.googleapis.com/",
934934
"schemas": {
935935
"Binding": {
@@ -1219,7 +1219,7 @@
12191219
"description": "Properties of the object. Contains field @type with type URL.",
12201220
"type": "any"
12211221
},
1222-
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
1222+
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
12231223
"type": "object"
12241224
}
12251225
},
@@ -1251,7 +1251,7 @@
12511251
"type": "object"
12521252
},
12531253
"Policy": {
1254-
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
1254+
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
12551255
"id": "Policy",
12561256
"properties": {
12571257
"bindings": {

0 commit comments

Comments
 (0)