From 6711565d141865432607cc49f0bb08486d0a5812 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 2 Jul 2023 00:22:14 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2046) --- artifactregistry/v1/artifactregistry-api.json | 170 ++++++++- artifactregistry/v1/artifactregistry-gen.go | 338 +++++++++++++++++- batch/v1/batch-api.json | 5 +- connectors/v2/connectors-api.json | 143 +++++++- datafusion/v1/datafusion-api.json | 3 +- datafusion/v1beta1/datafusion-api.json | 3 +- datastream/v1alpha1/datastream-api.json | 3 +- .../v1/networkmanagement-api.json | 3 +- transcoder/v1/transcoder-api.json | 144 +++++++- transcoder/v1/transcoder-gen.go | 211 ++++++++++- 10 files changed, 1000 insertions(+), 23 deletions(-) diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 8a124b0ad97..47611296da4 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -1355,6 +1355,34 @@ }, "versions": { "methods": { + "batchDelete": { + "description": "Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions:batchDelete", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.packages.versions.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The name of the repository holding all requested versions.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions:batchDelete", + "request": { + "$ref": "BatchDeleteVersionsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", @@ -1633,7 +1661,7 @@ } } }, - "revision": "20230626", + "revision": "20230628", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1698,6 +1726,24 @@ }, "type": "object" }, + "BatchDeleteVersionsRequest": { + "description": "The request to delete multiple versions across a repository.", + "id": "BatchDeleteVersionsRequest", + "properties": { + "names": { + "description": "Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch.", + "items": { + "type": "string" + }, + "type": "array" + }, + "validateOnly": { + "description": "If true, the request is performed without deleting data, following AIP-163.", + "type": "boolean" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -1720,6 +1766,117 @@ }, "type": "object" }, + "CleanupPolicy": { + "description": "Artifact policy configuration for repository cleanup policies.", + "id": "CleanupPolicy", + "properties": { + "action": { + "description": "Policy action.", + "enum": [ + "ACTION_UNSPECIFIED", + "DELETE", + "KEEP" + ], + "enumDescriptions": [ + "Action not specified.", + "Delete action.", + "Keep action." + ], + "type": "string" + }, + "condition": { + "$ref": "CleanupPolicyCondition", + "description": "Policy condition for matching versions." + }, + "id": { + "description": "The user-provided ID of the cleanup policy.", + "type": "string" + }, + "mostRecentVersions": { + "$ref": "CleanupPolicyMostRecentVersions", + "description": "Policy condition for retaining a minimum number of versions. May only be specified with a Keep action." + } + }, + "type": "object" + }, + "CleanupPolicyCondition": { + "description": "CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.", + "id": "CleanupPolicyCondition", + "properties": { + "newerThan": { + "description": "Match versions newer than a duration.", + "format": "google-duration", + "type": "string" + }, + "olderThan": { + "description": "Match versions older than a duration.", + "format": "google-duration", + "type": "string" + }, + "packageNamePrefixes": { + "description": "Match versions by package prefix. Applied on any prefix match.", + "items": { + "type": "string" + }, + "type": "array" + }, + "tagPrefixes": { + "description": "Match versions by tag prefix. Applied on any prefix match.", + "items": { + "type": "string" + }, + "type": "array" + }, + "tagState": { + "description": "Match versions by tag status.", + "enum": [ + "TAG_STATE_UNSPECIFIED", + "TAGGED", + "UNTAGGED", + "ANY" + ], + "enumDescriptions": [ + "Tag status not specified.", + "Applies to tagged versions only.", + "Applies to untagged versions only.", + "Applies to all versions." + ], + "type": "string" + }, + "versionAge": { + "description": "DEPRECATED: Use older_than.", + "format": "google-duration", + "type": "string" + }, + "versionNamePrefixes": { + "description": "Match versions by version name prefix. Applied on any prefix match.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CleanupPolicyMostRecentVersions": { + "description": "CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions.", + "id": "CleanupPolicyMostRecentVersions", + "properties": { + "keepCount": { + "description": "Minimum number of versions to keep.", + "format": "int32", + "type": "integer" + }, + "packageNamePrefixes": { + "description": "List of package name prefixes that will apply this rule.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "DockerImage": { "description": "DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes * mediaType * buildTime", "id": "DockerImage", @@ -2731,6 +2888,17 @@ "description": "A Repository for storing artifacts with a specific format.", "id": "Repository", "properties": { + "cleanupPolicies": { + "additionalProperties": { + "$ref": "CleanupPolicy" + }, + "description": "Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.", + "type": "object" + }, + "cleanupPolicyDryRun": { + "description": "Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.", + "type": "boolean" + }, "createTime": { "description": "Output only. The time when the repository was created.", "format": "google-datetime", diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index b17751ed9ce..fd1bfb08fec 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -431,6 +431,40 @@ func (s *BatchDeleteVersionsMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BatchDeleteVersionsRequest: The request to delete multiple versions +// across a repository. +type BatchDeleteVersionsRequest struct { + // Names: Required. The names of the versions to delete. A maximum of + // 10000 versions can be deleted in a batch. + Names []string `json:"names,omitempty"` + + // ValidateOnly: If true, the request is performed without deleting + // data, following AIP-163. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Names") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Names") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BatchDeleteVersionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod BatchDeleteVersionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -509,6 +543,141 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CleanupPolicy: Artifact policy configuration for repository cleanup +// policies. +type CleanupPolicy struct { + // Action: Policy action. + // + // Possible values: + // "ACTION_UNSPECIFIED" - Action not specified. + // "DELETE" - Delete action. + // "KEEP" - Keep action. + Action string `json:"action,omitempty"` + + // Condition: Policy condition for matching versions. + Condition *CleanupPolicyCondition `json:"condition,omitempty"` + + // Id: The user-provided ID of the cleanup policy. + Id string `json:"id,omitempty"` + + // MostRecentVersions: Policy condition for retaining a minimum number + // of versions. May only be specified with a Keep action. + MostRecentVersions *CleanupPolicyMostRecentVersions `json:"mostRecentVersions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Action") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CleanupPolicy) MarshalJSON() ([]byte, error) { + type NoMethod CleanupPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CleanupPolicyCondition: CleanupPolicyCondition is a set of conditions +// attached to a CleanupPolicy. If multiple entries are set, all must be +// satisfied for the condition to be satisfied. +type CleanupPolicyCondition struct { + // NewerThan: Match versions newer than a duration. + NewerThan string `json:"newerThan,omitempty"` + + // OlderThan: Match versions older than a duration. + OlderThan string `json:"olderThan,omitempty"` + + // PackageNamePrefixes: Match versions by package prefix. Applied on any + // prefix match. + PackageNamePrefixes []string `json:"packageNamePrefixes,omitempty"` + + // TagPrefixes: Match versions by tag prefix. Applied on any prefix + // match. + TagPrefixes []string `json:"tagPrefixes,omitempty"` + + // TagState: Match versions by tag status. + // + // Possible values: + // "TAG_STATE_UNSPECIFIED" - Tag status not specified. + // "TAGGED" - Applies to tagged versions only. + // "UNTAGGED" - Applies to untagged versions only. + // "ANY" - Applies to all versions. + TagState string `json:"tagState,omitempty"` + + // VersionAge: DEPRECATED: Use older_than. + VersionAge string `json:"versionAge,omitempty"` + + // VersionNamePrefixes: Match versions by version name prefix. Applied + // on any prefix match. + VersionNamePrefixes []string `json:"versionNamePrefixes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewerThan") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewerThan") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CleanupPolicyCondition) MarshalJSON() ([]byte, error) { + type NoMethod CleanupPolicyCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CleanupPolicyMostRecentVersions: CleanupPolicyMostRecentVersions is +// an alternate condition of a CleanupPolicy for retaining a minimum +// number of versions. +type CleanupPolicyMostRecentVersions struct { + // KeepCount: Minimum number of versions to keep. + KeepCount int64 `json:"keepCount,omitempty"` + + // PackageNamePrefixes: List of package name prefixes that will apply + // this rule. + PackageNamePrefixes []string `json:"packageNamePrefixes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeepCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeepCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CleanupPolicyMostRecentVersions) MarshalJSON() ([]byte, error) { + type NoMethod CleanupPolicyMostRecentVersions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DockerImage: DockerImage represents a docker artifact. The following // fields are returned as untyped metadata in the Version resource, // using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes @@ -2351,6 +2520,17 @@ func (s *RemoteRepositoryConfig) MarshalJSON() ([]byte, error) { // Repository: A Repository for storing artifacts with a specific // format. type Repository struct { + // CleanupPolicies: Optional. Cleanup policies for this repository. + // Cleanup policies indicate when certain package versions can be + // automatically deleted. Map keys are policy IDs supplied by users + // during policy creation. They must unique within a repository and be + // under 128 characters in length. + CleanupPolicies map[string]CleanupPolicy `json:"cleanupPolicies,omitempty"` + + // CleanupPolicyDryRun: Optional. If true, the cleanup pipeline is + // prevented from deleting versions in this repository. + CleanupPolicyDryRun bool `json:"cleanupPolicyDryRun,omitempty"` + // CreateTime: Output only. The time when the repository was created. CreateTime string `json:"createTime,omitempty"` @@ -2435,7 +2615,7 @@ type Repository struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "CleanupPolicies") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2443,12 +2623,13 @@ type Repository struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CleanupPolicies") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -9439,6 +9620,149 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleap } +// method id "artifactregistry.projects.locations.repositories.packages.versions.batchDelete": + +type ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall struct { + s *Service + parent string + batchdeleteversionsrequest *BatchDeleteVersionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchDelete: Deletes multiple versions across a repository. The +// returned operation will complete once the versions have been deleted. +// +// - parent: The name of the repository holding all requested versions. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) BatchDelete(parent string, batchdeleteversionsrequest *BatchDeleteVersionsRequest) *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.batchdeleteversionsrequest = batchdeleteversionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeleteversionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions:batchDelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.batchDelete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions:batchDelete", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.batchDelete", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The name of the repository holding all requested versions.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/versions:batchDelete", + // "request": { + // "$ref": "BatchDeleteVersionsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "artifactregistry.projects.locations.repositories.packages.versions.delete": type ProjectsLocationsRepositoriesPackagesVersionsDeleteCall struct { diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index c44a8c3eff3..b88fb8fde7b 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230618", + "revision": "20230621", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -569,6 +569,7 @@ "type": "string" }, "installGpuDrivers": { + "deprecated": true, "description": "Deprecated: please use instances[0].install_gpu_drivers instead.", "type": "boolean" }, @@ -715,6 +716,7 @@ "id": "AgentMetadata", "properties": { "creationTime": { + "deprecated": true, "description": "When the VM agent started. Use agent_startup_time instead.", "format": "google-datetime", "type": "string" @@ -2102,6 +2104,7 @@ "additionalProperties": { "type": "string" }, + "deprecated": true, "description": "Deprecated: please use environment(non-plural) instead.", "type": "object" }, diff --git a/connectors/v2/connectors-api.json b/connectors/v2/connectors-api.json index b1b594783df..e3ee7d9f89d 100644 --- a/connectors/v2/connectors-api.json +++ b/connectors/v2/connectors-api.json @@ -478,7 +478,7 @@ } } }, - "revision": "20220808", + "revision": "20230621", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "Action": { @@ -672,6 +672,53 @@ "TIME_WITH_TIMEZONE", "TIMESTAMP_WITH_TIMEZONE" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + true, + false, + true, + true, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Datatype unspecified.", "Deprecated Int type, use INTEGER type instead.", @@ -801,6 +848,53 @@ "TIME_WITH_TIMEZONE", "TIMESTAMP_WITH_TIMEZONE" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + true, + false, + true, + true, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Datatype unspecified.", "Deprecated Int type, use INTEGER type instead.", @@ -1015,6 +1109,53 @@ "TIME_WITH_TIMEZONE", "TIMESTAMP_WITH_TIMEZONE" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + true, + false, + true, + true, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Datatype unspecified.", "Deprecated Int type, use INTEGER type instead.", diff --git a/datafusion/v1/datafusion-api.json b/datafusion/v1/datafusion-api.json index fc3e18ef864..20082f49191 100644 --- a/datafusion/v1/datafusion-api.json +++ b/datafusion/v1/datafusion-api.json @@ -737,7 +737,7 @@ } } }, - "revision": "20230508", + "revision": "20230627", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -1065,6 +1065,7 @@ "type": "boolean" }, "serviceAccount": { + "deprecated": true, "description": "Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID.", "readOnly": true, "type": "string" diff --git a/datafusion/v1beta1/datafusion-api.json b/datafusion/v1beta1/datafusion-api.json index fa0d7c2e919..6188710d81a 100644 --- a/datafusion/v1beta1/datafusion-api.json +++ b/datafusion/v1beta1/datafusion-api.json @@ -935,7 +935,7 @@ } } }, - "revision": "20230508", + "revision": "20230627", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -1278,6 +1278,7 @@ "type": "boolean" }, "serviceAccount": { + "deprecated": true, "description": "Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID.", "readOnly": true, "type": "string" diff --git a/datastream/v1alpha1/datastream-api.json b/datastream/v1alpha1/datastream-api.json index e4f8b30b129..edef3315d76 100644 --- a/datastream/v1alpha1/datastream-api.json +++ b/datastream/v1alpha1/datastream-api.json @@ -1224,7 +1224,7 @@ } } }, - "revision": "20230517", + "revision": "20230620", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -1576,6 +1576,7 @@ "type": "integer" }, "gcsFileFormat": { + "deprecated": true, "description": "File format that data should be written in. Deprecated field (b/169501737) - use file_format instead.", "enum": [ "GCS_FILE_FORMAT_UNSPECIFIED", diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 78685de61a4..0bfd0dc672c 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20230531", + "revision": "20230621", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1417,6 +1417,7 @@ "type": "string" }, "serviceAccount": { + "deprecated": true, "description": "Service account authorized for the instance.", "type": "string" }, diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index 25b201bee32..28bb9493a3f 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20230607", + "revision": "20230621", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -400,6 +400,12 @@ }, "type": "object" }, + "Aes128Encryption": { + "description": "Configuration for AES-128 encryption.", + "id": "Aes128Encryption", + "properties": {}, + "type": "object" + }, "Animation": { "description": "Animation types.", "id": "Animation", @@ -604,6 +610,12 @@ }, "type": "object" }, + "Clearkey": { + "description": "Clearkey configuration.", + "id": "Clearkey", + "properties": {}, + "type": "object" + }, "Color": { "description": "Color preprocessing configuration. **Note:** This configuration is not supported.", "id": "Color", @@ -721,6 +733,29 @@ }, "type": "object" }, + "DrmSystems": { + "description": "Defines configuration for DRM systems in use.", + "id": "DrmSystems", + "properties": { + "clearkey": { + "$ref": "Clearkey", + "description": "Clearkey configuration." + }, + "fairplay": { + "$ref": "Fairplay", + "description": "Fairplay configuration." + }, + "playready": { + "$ref": "Playready", + "description": "Playready configuration." + }, + "widevine": { + "$ref": "Widevine", + "description": "Widevine configuration." + } + }, + "type": "object" + }, "EditAtom": { "description": "Edit atom.", "id": "EditAtom", @@ -778,6 +813,43 @@ "properties": {}, "type": "object" }, + "Encryption": { + "description": "Encryption settings.", + "id": "Encryption", + "properties": { + "aes128": { + "$ref": "Aes128Encryption", + "description": "Configuration for AES-128 encryption." + }, + "drmSystems": { + "$ref": "DrmSystems", + "description": "Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled." + }, + "id": { + "description": "Required. Identifier for this set of encryption options.", + "type": "string" + }, + "mpegCenc": { + "$ref": "MpegCommonEncryption", + "description": "Configuration for MPEG Common Encryption (MPEG-CENC)." + }, + "sampleAes": { + "$ref": "SampleAesEncryption", + "description": "Configuration for SAMPLE-AES encryption." + }, + "secretManagerKeySource": { + "$ref": "SecretManagerSource", + "description": "Keys are stored in Google Secret Manager." + } + }, + "type": "object" + }, + "Fairplay": { + "description": "Fairplay configuration.", + "id": "Fairplay", + "properties": {}, + "type": "object" + }, "H264CodecSettings": { "description": "H264 codec settings.", "id": "H264CodecSettings", @@ -1013,6 +1085,11 @@ "description": "Transcoding job resource.", "id": "Job", "properties": { + "batchModePriority": { + "description": "The processing priority of a batch job. This field can only be set for batch mode jobs, and the default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.", + "format": "int32", + "type": "integer" + }, "config": { "$ref": "JobConfig", "description": "The configuration for this job." @@ -1063,6 +1140,20 @@ "description": "The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}`", "type": "string" }, + "optimization": { + "description": "Optional. The optimization strategy of the job. The default is `AUTODETECT`.", + "enum": [ + "OPTIMIZATION_STRATEGY_UNSPECIFIED", + "AUTODETECT", + "DISABLED" + ], + "enumDescriptions": [ + "The optimization strategy is not specified.", + "Prioritize job processing speed.", + "Disable all optimizations." + ], + "type": "string" + }, "outputUri": { "description": "Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).", "type": "string" @@ -1129,6 +1220,13 @@ }, "type": "array" }, + "encryptions": { + "description": "List of encryption configurations for the content. Each configuration has an ID. Specify this ID in the MuxStream.encryption_id field to indicate the configuration to use for that `MuxStream` output.", + "items": { + "$ref": "Encryption" + }, + "type": "array" + }, "inputs": { "description": "List of input assets stored in Cloud Storage.", "items": { @@ -1283,6 +1381,17 @@ }, "type": "object" }, + "MpegCommonEncryption": { + "description": "Configuration for MPEG Common Encryption (MPEG-CENC).", + "id": "MpegCommonEncryption", + "properties": { + "scheme": { + "description": "Required. Specify the encryption scheme. Supported encryption schemes: - `cenc` - `cbcs`", + "type": "string" + } + }, + "type": "object" + }, "MuxStream": { "description": "Multiplexing settings for output stream.", "id": "MuxStream", @@ -1298,6 +1407,10 @@ }, "type": "array" }, + "encryptionId": { + "description": "Identifier of the encryption configuration to use. If omitted, output will be unencrypted.", + "type": "string" + }, "fileName": { "description": "The name of the generated file. The default is `MuxStream.key` with the extension suffix corresponding to the `MuxStream.container`. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.", "type": "string" @@ -1386,6 +1499,12 @@ }, "type": "object" }, + "Playready": { + "description": "Playready configuration.", + "id": "Playready", + "properties": {}, + "type": "object" + }, "PreprocessingConfig": { "description": "Preprocessing configurations.", "id": "PreprocessingConfig", @@ -1432,6 +1551,23 @@ }, "type": "object" }, + "SampleAesEncryption": { + "description": "Configuration for SAMPLE-AES encryption.", + "id": "SampleAesEncryption", + "properties": {}, + "type": "object" + }, + "SecretManagerSource": { + "description": "Configuration for secrets stored in Google Secret Manager.", + "id": "SecretManagerSource", + "properties": { + "secretVersion": { + "description": "Required. The name of the Secret Version containing the encryption key in the following format: `projects/{project}/secrets/{secret_id}/versions/{version_number}` Note that only numbered versions are supported. Aliases like \"latest\" are not supported.", + "type": "string" + } + }, + "type": "object" + }, "SegmentSettings": { "description": "Segment settings for `ts`, `fmp4` and `vtt`.", "id": "SegmentSettings", @@ -1654,6 +1790,12 @@ }, "type": "object" }, + "Widevine": { + "description": "Widevine configuration.", + "id": "Widevine", + "properties": {}, + "type": "object" + }, "YadifConfig": { "description": "Yet Another Deinterlacing Filter Configuration.", "id": "YadifConfig", diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index f07d7e9e244..7ba5608de87 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -213,6 +213,10 @@ func (s *AdBreak) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Aes128Encryption: Configuration for AES-128 encryption. +type Aes128Encryption struct { +} + // Animation: Animation types. type Animation struct { // AnimationEnd: End previous animation. @@ -590,6 +594,10 @@ func (s *BwdifConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Clearkey: Clearkey configuration. +type Clearkey struct { +} + // Color: Color preprocessing configuration. **Note:** This // configuration is not supported. type Color struct { @@ -857,6 +865,43 @@ func (s *Denoise) UnmarshalJSON(data []byte) error { return nil } +// DrmSystems: Defines configuration for DRM systems in use. +type DrmSystems struct { + // Clearkey: Clearkey configuration. + Clearkey *Clearkey `json:"clearkey,omitempty"` + + // Fairplay: Fairplay configuration. + Fairplay *Fairplay `json:"fairplay,omitempty"` + + // Playready: Playready configuration. + Playready *Playready `json:"playready,omitempty"` + + // Widevine: Widevine configuration. + Widevine *Widevine `json:"widevine,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Clearkey") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Clearkey") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DrmSystems) MarshalJSON() ([]byte, error) { + type NoMethod DrmSystems + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // EditAtom: Edit atom. type EditAtom struct { // EndTimeOffset: End time in seconds for the atom, relative to the @@ -950,6 +995,54 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// Encryption: Encryption settings. +type Encryption struct { + // Aes128: Configuration for AES-128 encryption. + Aes128 *Aes128Encryption `json:"aes128,omitempty"` + + // DrmSystems: Required. DRM system(s) to use; at least one must be + // specified. If a DRM system is omitted, it is considered disabled. + DrmSystems *DrmSystems `json:"drmSystems,omitempty"` + + // Id: Required. Identifier for this set of encryption options. + Id string `json:"id,omitempty"` + + // MpegCenc: Configuration for MPEG Common Encryption (MPEG-CENC). + MpegCenc *MpegCommonEncryption `json:"mpegCenc,omitempty"` + + // SampleAes: Configuration for SAMPLE-AES encryption. + SampleAes *SampleAesEncryption `json:"sampleAes,omitempty"` + + // SecretManagerKeySource: Keys are stored in Google Secret Manager. + SecretManagerKeySource *SecretManagerSource `json:"secretManagerKeySource,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Aes128") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Aes128") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Encryption) MarshalJSON() ([]byte, error) { + type NoMethod Encryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Fairplay: Fairplay configuration. +type Fairplay struct { +} + // H264CodecSettings: H264 codec settings. type H264CodecSettings struct { // AllowOpenGop: Specifies whether an open Group of Pictures (GOP) @@ -1368,6 +1461,12 @@ func (s *Input) MarshalJSON() ([]byte, error) { // Job: Transcoding job resource. type Job struct { + // BatchModePriority: The processing priority of a batch job. This field + // can only be set for batch mode jobs, and the default value is 0. This + // value cannot be negative. Higher values correspond to higher + // priorities for the job. + BatchModePriority int64 `json:"batchModePriority,omitempty"` + // Config: The configuration for this job. Config *JobConfig `json:"config,omitempty"` @@ -1411,6 +1510,16 @@ type Job struct { // `projects/{project_number}/locations/{location}/jobs/{job}` Name string `json:"name,omitempty"` + // Optimization: Optional. The optimization strategy of the job. The + // default is `AUTODETECT`. + // + // Possible values: + // "OPTIMIZATION_STRATEGY_UNSPECIFIED" - The optimization strategy is + // not specified. + // "AUTODETECT" - Prioritize job processing speed. + // "DISABLED" - Disable all optimizations. + Optimization string `json:"optimization,omitempty"` + // OutputUri: Input only. Specify the `output_uri` to populate an empty // `Job.config.output.uri` or `JobTemplate.config.output.uri` when using // template. URI for the output file(s). For example, @@ -1449,20 +1558,21 @@ type Job struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "BatchModePriority") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchModePriority") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -1485,6 +1595,12 @@ type JobConfig struct { // ElementaryStreams: List of elementary streams. ElementaryStreams []*ElementaryStream `json:"elementaryStreams,omitempty"` + // Encryptions: List of encryption configurations for the content. Each + // configuration has an ID. Specify this ID in the + // MuxStream.encryption_id field to indicate the configuration to use + // for that `MuxStream` output. + Encryptions []*Encryption `json:"encryptions,omitempty"` + // Inputs: List of input assets stored in Cloud Storage. Inputs []*Input `json:"inputs,omitempty"` @@ -1697,6 +1813,36 @@ func (s *Manifest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MpegCommonEncryption: Configuration for MPEG Common Encryption +// (MPEG-CENC). +type MpegCommonEncryption struct { + // Scheme: Required. Specify the encryption scheme. Supported encryption + // schemes: - `cenc` - `cbcs` + Scheme string `json:"scheme,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Scheme") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Scheme") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MpegCommonEncryption) MarshalJSON() ([]byte, error) { + type NoMethod MpegCommonEncryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MuxStream: Multiplexing settings for output stream. type MuxStream struct { // Container: The container format. The default is `mp4` Supported @@ -1710,6 +1856,10 @@ type MuxStream struct { // this stream. ElementaryStreams []string `json:"elementaryStreams,omitempty"` + // EncryptionId: Identifier of the encryption configuration to use. If + // omitted, output will be unencrypted. + EncryptionId string `json:"encryptionId,omitempty"` + // FileName: The name of the generated file. The default is // `MuxStream.key` with the extension suffix corresponding to the // `MuxStream.container`. Individual segments also have an incremental @@ -1900,6 +2050,10 @@ func (s *Pad) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Playready: Playready configuration. +type Playready struct { +} + // PreprocessingConfig: Preprocessing configurations. type PreprocessingConfig struct { // Audio: Audio preprocessing configuration. @@ -1975,6 +2129,43 @@ func (s *PubsubDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SampleAesEncryption: Configuration for SAMPLE-AES encryption. +type SampleAesEncryption struct { +} + +// SecretManagerSource: Configuration for secrets stored in Google +// Secret Manager. +type SecretManagerSource struct { + // SecretVersion: Required. The name of the Secret Version containing + // the encryption key in the following format: + // `projects/{project}/secrets/{secret_id}/versions/{version_number}` + // Note that only numbered versions are supported. Aliases like "latest" + // are not supported. + SecretVersion string `json:"secretVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SecretVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SecretVersion") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SecretManagerSource) MarshalJSON() ([]byte, error) { + type NoMethod SecretManagerSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SegmentSettings: Segment settings for `ts`, `fmp4` and `vtt`. type SegmentSettings struct { // IndividualSegments: Required. Create an individual segment file. The @@ -2368,6 +2559,10 @@ func (s *Vp9CodecSettings) UnmarshalJSON(data []byte) error { return nil } +// Widevine: Widevine configuration. +type Widevine struct { +} + // YadifConfig: Yet Another Deinterlacing Filter Configuration. type YadifConfig struct { // DeinterlaceAllFrames: Deinterlace all frames rather than just the