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.Binding.properties.members.description

#### artifactregistry:v1beta2

The following keys were changed:
- schemas.Binding.properties.members.description

#### artifactregistry:v1

The following keys were added:
- resources.projects.resources.locations.methods.getVpcscConfig.description
- resources.projects.resources.locations.methods.getVpcscConfig.flatPath
- resources.projects.resources.locations.methods.getVpcscConfig.httpMethod
- resources.projects.resources.locations.methods.getVpcscConfig.id
- resources.projects.resources.locations.methods.getVpcscConfig.parameterOrder
- resources.projects.resources.locations.methods.getVpcscConfig.parameters.name.description
- resources.projects.resources.locations.methods.getVpcscConfig.parameters.name.location
- resources.projects.resources.locations.methods.getVpcscConfig.parameters.name.pattern
- resources.projects.resources.locations.methods.getVpcscConfig.parameters.name.required
- resources.projects.resources.locations.methods.getVpcscConfig.parameters.name.type
- resources.projects.resources.locations.methods.getVpcscConfig.path
- resources.projects.resources.locations.methods.getVpcscConfig.response.$ref
- resources.projects.resources.locations.methods.getVpcscConfig.scopes
- resources.projects.resources.locations.methods.updateVpcscConfig.description
- resources.projects.resources.locations.methods.updateVpcscConfig.flatPath
- resources.projects.resources.locations.methods.updateVpcscConfig.httpMethod
- resources.projects.resources.locations.methods.updateVpcscConfig.id
- resources.projects.resources.locations.methods.updateVpcscConfig.parameterOrder
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.name.description
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.name.location
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.name.pattern
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.name.required
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.name.type
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.updateMask.description
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.updateMask.format
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.updateMask.location
- resources.projects.resources.locations.methods.updateVpcscConfig.parameters.updateMask.type
- resources.projects.resources.locations.methods.updateVpcscConfig.path
- resources.projects.resources.locations.methods.updateVpcscConfig.request.$ref
- resources.projects.resources.locations.methods.updateVpcscConfig.response.$ref
- resources.projects.resources.locations.methods.updateVpcscConfig.scopes
- schemas.DockerRepository.description
- schemas.DockerRepository.id
- schemas.DockerRepository.properties.publicRepository.description
- schemas.DockerRepository.properties.publicRepository.enum
- schemas.DockerRepository.properties.publicRepository.enumDescriptions
- schemas.DockerRepository.properties.publicRepository.type
- schemas.DockerRepository.type
- schemas.GoogleDevtoolsArtifactregistryV1File.properties.fetchTime.description
- schemas.GoogleDevtoolsArtifactregistryV1File.properties.fetchTime.format
- schemas.GoogleDevtoolsArtifactregistryV1File.properties.fetchTime.readOnly
- schemas.GoogleDevtoolsArtifactregistryV1File.properties.fetchTime.type
- schemas.MavenRepository.description
- schemas.MavenRepository.id
- schemas.MavenRepository.properties.publicRepository.description
- schemas.MavenRepository.properties.publicRepository.enum
- schemas.MavenRepository.properties.publicRepository.enumDescriptions
- schemas.MavenRepository.properties.publicRepository.type
- schemas.MavenRepository.type
- schemas.NpmRepository.description
- schemas.NpmRepository.id
- schemas.NpmRepository.properties.publicRepository.description
- schemas.NpmRepository.properties.publicRepository.enum
- schemas.NpmRepository.properties.publicRepository.enumDescriptions
- schemas.NpmRepository.properties.publicRepository.type
- schemas.NpmRepository.type
- schemas.PythonRepository.description
- schemas.PythonRepository.id
- schemas.PythonRepository.properties.publicRepository.description
- schemas.PythonRepository.properties.publicRepository.enum
- schemas.PythonRepository.properties.publicRepository.enumDescriptions
- schemas.PythonRepository.properties.publicRepository.type
- schemas.PythonRepository.type
- schemas.RemoteRepositoryConfig.description
- schemas.RemoteRepositoryConfig.id
- schemas.RemoteRepositoryConfig.properties.description.description
- schemas.RemoteRepositoryConfig.properties.description.type
- schemas.RemoteRepositoryConfig.properties.dockerRepository.$ref
- schemas.RemoteRepositoryConfig.properties.dockerRepository.description
- schemas.RemoteRepositoryConfig.properties.mavenRepository.$ref
- schemas.RemoteRepositoryConfig.properties.mavenRepository.description
- schemas.RemoteRepositoryConfig.properties.npmRepository.$ref
- schemas.RemoteRepositoryConfig.properties.npmRepository.description
- schemas.RemoteRepositoryConfig.properties.pythonRepository.$ref
- schemas.RemoteRepositoryConfig.properties.pythonRepository.description
- schemas.RemoteRepositoryConfig.type
- schemas.Repository.properties.mode.description
- schemas.Repository.properties.mode.enum
- schemas.Repository.properties.mode.enumDescriptions
- schemas.Repository.properties.mode.type
- schemas.Repository.properties.remoteRepositoryConfig.$ref
- schemas.Repository.properties.remoteRepositoryConfig.description
- schemas.Repository.properties.virtualRepositoryConfig.$ref
- schemas.Repository.properties.virtualRepositoryConfig.description
- schemas.UpstreamPolicy.description
- schemas.UpstreamPolicy.id
- schemas.UpstreamPolicy.properties.id.description
- schemas.UpstreamPolicy.properties.id.type
- schemas.UpstreamPolicy.properties.priority.description
- schemas.UpstreamPolicy.properties.priority.format
- schemas.UpstreamPolicy.properties.priority.type
- schemas.UpstreamPolicy.properties.repository.description
- schemas.UpstreamPolicy.properties.repository.type
- schemas.UpstreamPolicy.type
- schemas.VPCSCConfig.description
- schemas.VPCSCConfig.id
- schemas.VPCSCConfig.properties.name.description
- schemas.VPCSCConfig.properties.name.type
- schemas.VPCSCConfig.properties.vpcscPolicy.description
- schemas.VPCSCConfig.properties.vpcscPolicy.enum
- schemas.VPCSCConfig.properties.vpcscPolicy.enumDescriptions
- schemas.VPCSCConfig.properties.vpcscPolicy.type
- schemas.VPCSCConfig.type
- schemas.VirtualRepositoryConfig.description
- schemas.VirtualRepositoryConfig.id
- schemas.VirtualRepositoryConfig.properties.upstreamPolicies.description
- schemas.VirtualRepositoryConfig.properties.upstreamPolicies.items.$ref
- schemas.VirtualRepositoryConfig.properties.upstreamPolicies.type
- schemas.VirtualRepositoryConfig.type

The following keys were changed:
- schemas.Binding.properties.members.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent 3d95738 commit 79b05b9
Show file tree
Hide file tree
Showing 5 changed files with 686 additions and 12 deletions.
256 changes: 254 additions & 2 deletions discovery/artifactregistry-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,32 @@
"https://www.googleapis.com/auth/cloud-platform.read-only"
]
},
"getVpcscConfig": {
"description": "Retrieves the VPCSC Config for the Project.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig",
"httpMethod": "GET",
"id": "artifactregistry.projects.locations.getVpcscConfig",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the VPCSCConfig resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "VPCSCConfig"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
]
},
"list": {
"description": "Lists information about the supported locations for this service.",
"flatPath": "v1/projects/{projectsId}/locations",
Expand Down Expand Up @@ -241,6 +267,40 @@
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
]
},
"updateVpcscConfig": {
"description": "Updates the VPCSC Config for the Project.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig",
"httpMethod": "PATCH",
"id": "artifactregistry.projects.locations.updateVpcscConfig",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Field mask to support partial updates.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"request": {
"$ref": "VPCSCConfig"
},
"response": {
"$ref": "VPCSCConfig"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
Expand Down Expand Up @@ -1457,7 +1517,7 @@
}
}
},
"revision": "20221022",
"revision": "20230202",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1531,7 +1591,7 @@
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
},
"members": {
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -1591,6 +1651,25 @@
},
"type": "object"
},
"DockerRepository": {
"description": "Configuration for a Docker remote repository.",
"id": "DockerRepository",
"properties": {
"publicRepository": {
"description": "One of the publicly available Docker repositories supported by Artifact Registry.",
"enum": [
"PUBLIC_REPOSITORY_UNSPECIFIED",
"DOCKER_HUB"
],
"enumDescriptions": [
"Unspecified repository.",
"Docker Hub."
],
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
Expand Down Expand Up @@ -1629,6 +1708,12 @@
"format": "google-datetime",
"type": "string"
},
"fetchTime": {
"description": "Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"hashes": {
"description": "The hashes of the file content.",
"items": {
Expand Down Expand Up @@ -2094,6 +2179,25 @@
},
"type": "object"
},
"MavenRepository": {
"description": "Configuration for a Maven remote repository.",
"id": "MavenRepository",
"properties": {
"publicRepository": {
"description": "One of the publicly available Maven repositories supported by Artifact Registry.",
"enum": [
"PUBLIC_REPOSITORY_UNSPECIFIED",
"MAVEN_CENTRAL"
],
"enumDescriptions": [
"Unspecified repository.",
"Maven Central."
],
"type": "string"
}
},
"type": "object"
},
"MavenRepositoryConfig": {
"description": "MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.",
"id": "MavenRepositoryConfig",
Expand Down Expand Up @@ -2157,6 +2261,25 @@
},
"type": "object"
},
"NpmRepository": {
"description": "Configuration for a Npm remote repository.",
"id": "NpmRepository",
"properties": {
"publicRepository": {
"description": "One of the publicly available Npm repositories supported by Artifact Registry.",
"enum": [
"PUBLIC_REPOSITORY_UNSPECIFIED",
"NPMJS"
],
"enumDescriptions": [
"Unspecified repository.",
"npmjs."
],
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down Expand Up @@ -2309,6 +2432,52 @@
},
"type": "object"
},
"PythonRepository": {
"description": "Configuration for a Python remote repository.",
"id": "PythonRepository",
"properties": {
"publicRepository": {
"description": "One of the publicly available Python repositories supported by Artifact Registry.",
"enum": [
"PUBLIC_REPOSITORY_UNSPECIFIED",
"PYPI"
],
"enumDescriptions": [
"Unspecified repository.",
"PyPI."
],
"type": "string"
}
},
"type": "object"
},
"RemoteRepositoryConfig": {
"description": "Remote repository configuration.",
"id": "RemoteRepositoryConfig",
"properties": {
"description": {
"description": "The description of the remote source.",
"type": "string"
},
"dockerRepository": {
"$ref": "DockerRepository",
"description": "Specific settings for a Docker remote repository."
},
"mavenRepository": {
"$ref": "MavenRepository",
"description": "Specific settings for a Maven remote repository."
},
"npmRepository": {
"$ref": "NpmRepository",
"description": "Specific settings for an Npm remote repository."
},
"pythonRepository": {
"$ref": "PythonRepository",
"description": "Specific settings for a Python remote repository."
}
},
"type": "object"
},
"Repository": {
"description": "A Repository for storing artifacts with a specific format.",
"id": "Repository",
Expand Down Expand Up @@ -2361,10 +2530,30 @@
"$ref": "MavenRepositoryConfig",
"description": "Maven repository config contains repository level configuration for the repositories of maven type."
},
"mode": {
"description": "The mode of the repository.",
"enum": [
"MODE_UNSPECIFIED",
"STANDARD_REPOSITORY",
"VIRTUAL_REPOSITORY",
"REMOTE_REPOSITORY"
],
"enumDescriptions": [
"Unspecified mode.",
"A standard repository storing artifacts.",
"A virtual repository to serve artifacts from one or more sources.",
"A remote repository to serve artifacts from a remote source."
],
"type": "string"
},
"name": {
"description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".",
"type": "string"
},
"remoteRepositoryConfig": {
"$ref": "RemoteRepositoryConfig",
"description": "Configuration specific for a Remote Repository."
},
"satisfiesPzs": {
"description": "Output only. If set, the repository satisfies physical zone separation.",
"readOnly": true,
Expand All @@ -2380,6 +2569,10 @@
"description": "The time when the repository was last updated.",
"format": "google-datetime",
"type": "string"
},
"virtualRepositoryConfig": {
"$ref": "VirtualRepositoryConfig",
"description": "Configuration specific for a Virtual Repository."
}
},
"type": "object"
Expand Down Expand Up @@ -2574,6 +2767,51 @@
},
"type": "object"
},
"UpstreamPolicy": {
"description": "Artifact policy configuration for the repository contents.",
"id": "UpstreamPolicy",
"properties": {
"id": {
"description": "The user-provided ID of the upstream policy.",
"type": "string"
},
"priority": {
"description": "Entries with a greater priority value take precedence in the pull order.",
"format": "int32",
"type": "integer"
},
"repository": {
"description": "A reference to the repository resource, for example: \"projects/p1/locations/us-central1/repository/repo1\".",
"type": "string"
}
},
"type": "object"
},
"VPCSCConfig": {
"description": "The Artifact Registry VPC SC config that apply to a Project.",
"id": "VPCSCConfig",
"properties": {
"name": {
"description": "The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set",
"type": "string"
},
"vpcscPolicy": {
"description": "The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).",
"enum": [
"VPCSC_POLICY_UNSPECIFIED",
"DENY",
"ALLOW"
],
"enumDescriptions": [
"VPCSC_POLICY_UNSPECIFIED - the VPS SC policy is not defined. When VPS SC policy is not defined - the Service will use the default behavior (VPCSC_DENY).",
"VPCSC_DENY - repository will block the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter.",
"VPCSC_ALLOW - repository will allow the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter."
],
"type": "string"
}
},
"type": "object"
},
"Version": {
"description": "The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.",
"id": "Version",
Expand Down Expand Up @@ -2615,6 +2853,20 @@
},
"type": "object"
},
"VirtualRepositoryConfig": {
"description": "Virtual repository configuration.",
"id": "VirtualRepositoryConfig",
"properties": {
"upstreamPolicies": {
"description": "Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.",
"items": {
"$ref": "UpstreamPolicy"
},
"type": "array"
}
},
"type": "object"
},
"YumArtifact": {
"description": "A detailed representation of a Yum artifact.",
"id": "YumArtifact",
Expand Down

0 comments on commit 79b05b9

Please sign in to comment.