Skip to content

feat(all): auto-regenerate discovery clients #2974

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

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions binaryauthorization/v1/binaryauthorization-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
}
}
},
"revision": "20241115",
"revision": "20250117",
"rootUrl": "https://binaryauthorization.googleapis.com/",
"schemas": {
"AdmissionRule": {
Expand Down Expand Up @@ -785,6 +785,7 @@
"type": "string"
},
"requireAttestationsBy": {
"description": "Optional. The resource names of the attestors that must attest to a container image, in the format `projects/*/attestors/*`. Each attestor must exist before a policy can reference it. To add an attestor to a policy the principal issuing the policy change request must be able to read the attestor resource. Note: this field must be non-empty when the `evaluation_mode` field specifies `REQUIRE_ATTESTATION`, otherwise it must be empty.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -1503,7 +1504,7 @@
"additionalProperties": {
"$ref": "AdmissionRule"
},
"description": "Optional. Per-cluster admission rules. Cluster spec format: `location.clusterId`. There can be at most one admission rule per cluster spec. A `location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us-central1). For `clusterId` syntax restrictions see https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.",
"description": "Optional. A valid policy has only one of the following rule maps non-empty, i.e. only one of `cluster_admission_rules`, `kubernetes_namespace_admission_rules`, `kubernetes_service_account_admission_rules`, or `istio_service_identity_admission_rules` can be non-empty. Per-cluster admission rules. Cluster spec format: `location.clusterId`. There can be at most one admission rule per cluster spec. A `location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us-central1). For `clusterId` syntax restrictions see https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.",
"type": "object"
},
"defaultAdmissionRule": {
Expand Down
22 changes: 17 additions & 5 deletions binaryauthorization/v1/binaryauthorization-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 37 additions & 2 deletions cloudfunctions/v2/cloudfunctions-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"detachFunction": {
"description": "Detaches 2nd Gen function to Cloud Run function.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:detachFunction",
"httpMethod": "POST",
"id": "cloudfunctions.projects.locations.functions.detachFunction",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the function for which should be detached.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}:detachFunction",
"request": {
"$ref": "DetachFunctionRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"generateDownloadUrl": {
"description": "Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
Expand Down Expand Up @@ -716,7 +744,7 @@
}
}
},
"revision": "20241205",
"revision": "20250116",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AbortFunctionUpgradeRequest": {
Expand Down Expand Up @@ -814,7 +842,8 @@
"type": "string"
},
"dockerRegistry": {
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
"deprecated": true,
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
"enum": [
"DOCKER_REGISTRY_UNSPECIFIED",
"CONTAINER_REGISTRY",
Expand Down Expand Up @@ -901,6 +930,12 @@
},
"type": "object"
},
"DetachFunctionRequest": {
"description": "Request for the `DetachFunction` method.",
"id": "DetachFunctionRequest",
"properties": {},
"type": "object"
},
"EventFilter": {
"description": "Filters events based on exact matches on the CloudEvents attributes.",
"id": "EventFilter",
Expand Down
117 changes: 114 additions & 3 deletions cloudfunctions/v2/cloudfunctions-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 37 additions & 2 deletions cloudfunctions/v2alpha/cloudfunctions-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"detachFunction": {
"description": "Detaches 2nd Gen function to Cloud Run function.",
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:detachFunction",
"httpMethod": "POST",
"id": "cloudfunctions.projects.locations.functions.detachFunction",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the function for which should be detached.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2alpha/{+name}:detachFunction",
"request": {
"$ref": "DetachFunctionRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"generateDownloadUrl": {
"description": "Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls",
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
Expand Down Expand Up @@ -716,7 +744,7 @@
}
}
},
"revision": "20241205",
"revision": "20250116",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AbortFunctionUpgradeRequest": {
Expand Down Expand Up @@ -814,7 +842,8 @@
"type": "string"
},
"dockerRegistry": {
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
"deprecated": true,
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
"enum": [
"DOCKER_REGISTRY_UNSPECIFIED",
"CONTAINER_REGISTRY",
Expand Down Expand Up @@ -901,6 +930,12 @@
},
"type": "object"
},
"DetachFunctionRequest": {
"description": "Request for the `DetachFunction` method.",
"id": "DetachFunctionRequest",
"properties": {},
"type": "object"
},
"EventFilter": {
"description": "Filters events based on exact matches on the CloudEvents attributes.",
"id": "EventFilter",
Expand Down
Loading