From de9920088db16562740c31183eca6651f669e582 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Nov 2022 07:47:18 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1737) --- assuredworkloads/v1/assuredworkloads-api.json | 14 +- assuredworkloads/v1/assuredworkloads-gen.go | 5 + .../v1beta1/assuredworkloads-api.json | 14 +- .../v1beta1/assuredworkloads-gen.go | 5 + cloudidentity/v1beta1/cloudidentity-api.json | 29 ++- cloudidentity/v1beta1/cloudidentity-gen.go | 15 ++ cloudtasks/v2beta2/cloudtasks-api.json | 4 +- cloudtasks/v2beta2/cloudtasks-gen.go | 2 +- dlp/v2/dlp-api.json | 21 +- dlp/v2/dlp-gen.go | 43 ++++ documentai/v1/documentai-api.json | 75 +------ documentai/v1/documentai-gen.go | 191 +++--------------- documentai/v1beta3/documentai-api.json | 75 +------ documentai/v1beta3/documentai-gen.go | 191 +++--------------- drivelabels/v2beta/drivelabels-api.json | 11 +- drivelabels/v2beta/drivelabels-gen.go | 12 +- securitycenter/v1/securitycenter-api.json | 10 +- securitycenter/v1/securitycenter-gen.go | 12 ++ .../v1beta1/securitycenter-api.json | 10 +- securitycenter/v1beta1/securitycenter-gen.go | 12 ++ .../v1beta2/securitycenter-api.json | 10 +- securitycenter/v1beta2/securitycenter-gen.go | 12 ++ 22 files changed, 273 insertions(+), 500 deletions(-) diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 925d4c90478..5057afec660 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -491,7 +491,7 @@ } } }, - "revision": "20221020", + "revision": "20221028", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -614,12 +614,14 @@ "enum": [ "RESTRICTION_TYPE_UNSPECIFIED", "ALLOW_ALL_GCP_RESOURCES", - "ALLOW_COMPLIANT_RESOURCES" + "ALLOW_COMPLIANT_RESOURCES", + "APPEND_COMPLIANT_RESOURCES" ], "enumDescriptions": [ "Unknown restriction type.", "Allow the use all of all gcp products, irrespective of the compliance posture. This effectively removes gcp.restrictServiceUsage OrgPolicy on the AssuredWorkloads Folder.", - "Based on Workload's compliance regime, allowed list changes. See - https://cloud.google.com/assured-workloads/docs/supported-products for the list of supported resources." + "Based on Workload's compliance regime, allowed list changes. See - https://cloud.google.com/assured-workloads/docs/supported-products for the list of supported resources.", + "Similar to ALLOW_COMPLIANT_RESOURCES but adds the list of compliant resources to the existing list of resources. Effective org-policy of the Folder is considered to ensure there is no disruption to the existing customer workflows." ], "type": "string" } @@ -938,11 +940,13 @@ "description": "Optional. Compliance Regime associated with this workload.", "enum": [ "PARTNER_UNSPECIFIED", - "LOCAL_CONTROLS_BY_S3NS" + "LOCAL_CONTROLS_BY_S3NS", + "SOVEREIGN_CONTROLS_BY_T_SYSTEMS" ], "enumDescriptions": [ "Unknown partner regime/controls.", - "S3NS regime/controls." + "S3NS regime/controls.", + "TSystem regime/controls." ], "type": "string" }, diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 354de674211..39dd53e4f7e 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -391,6 +391,10 @@ type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest struct { // regime, allowed list changes. See - // https://cloud.google.com/assured-workloads/docs/supported-products // for the list of supported resources. + // "APPEND_COMPLIANT_RESOURCES" - Similar to ALLOW_COMPLIANT_RESOURCES + // but adds the list of compliant resources to the existing list of + // resources. Effective org-policy of the Folder is considered to ensure + // there is no disruption to the existing customer workflows. RestrictionType string `json:"restrictionType,omitempty"` // ForceSendFields is a list of field names (e.g. "RestrictionType") to @@ -785,6 +789,7 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // Possible values: // "PARTNER_UNSPECIFIED" - Unknown partner regime/controls. // "LOCAL_CONTROLS_BY_S3NS" - S3NS regime/controls. + // "SOVEREIGN_CONTROLS_BY_T_SYSTEMS" - TSystem regime/controls. Partner string `json:"partner,omitempty"` // ProvisionedResourcesParent: Input only. The parent resource for the diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index 8088084a071..5b6b3032ba8 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -595,7 +595,7 @@ } } }, - "revision": "20221014", + "revision": "20221028", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -678,12 +678,14 @@ "enum": [ "RESTRICTION_TYPE_UNSPECIFIED", "ALLOW_ALL_GCP_RESOURCES", - "ALLOW_COMPLIANT_RESOURCES" + "ALLOW_COMPLIANT_RESOURCES", + "APPEND_COMPLIANT_RESOURCES" ], "enumDescriptions": [ "Unknown restriction type.", "Allow the use all of all gcp products, irrespective of the compliance posture. This effectively removes gcp.restrictServiceUsage OrgPolicy on the AssuredWorkloads Folder.", - "Based on Workload's compliance regime, allowed list changes. See - https://cloud.google.com/assured-workloads/docs/supported-products for the list of supported resources." + "Based on Workload's compliance regime, allowed list changes. See - https://cloud.google.com/assured-workloads/docs/supported-products for the list of supported resources.", + "Similar to ALLOW_COMPLIANT_RESOURCES but adds the list of compliant resources to the existing list of compliant resources. Effective org-policy of the Folder is considered to ensure there is no disruption to the existing customer workflows." ], "type": "string" } @@ -1018,11 +1020,13 @@ "description": "Optional. Compliance Regime associated with this workload.", "enum": [ "PARTNER_UNSPECIFIED", - "LOCAL_CONTROLS_BY_S3NS" + "LOCAL_CONTROLS_BY_S3NS", + "SOVEREIGN_CONTROLS_BY_T_SYSTEMS" ], "enumDescriptions": [ "Unknown partner regime/controls.", - "S3NS regime/controls." + "S3NS regime/controls.", + "TSystems regime/controls." ], "type": "string" }, diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 4036653c501..ab863b4785e 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -450,6 +450,10 @@ type GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest struct { // regime, allowed list changes. See - // https://cloud.google.com/assured-workloads/docs/supported-products // for the list of supported resources. + // "APPEND_COMPLIANT_RESOURCES" - Similar to ALLOW_COMPLIANT_RESOURCES + // but adds the list of compliant resources to the existing list of + // compliant resources. Effective org-policy of the Folder is considered + // to ensure there is no disruption to the existing customer workflows. RestrictionType string `json:"restrictionType,omitempty"` // ForceSendFields is a list of field names (e.g. "RestrictionType") to @@ -860,6 +864,7 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // Possible values: // "PARTNER_UNSPECIFIED" - Unknown partner regime/controls. // "LOCAL_CONTROLS_BY_S3NS" - S3NS regime/controls. + // "SOVEREIGN_CONTROLS_BY_T_SYSTEMS" - TSystems regime/controls. Partner string `json:"partner,omitempty"` // ProvisionedResourcesParent: Input only. The parent resource for the diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 4d4a35acc56..bf3417eb9e0 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -1932,7 +1932,7 @@ } } }, - "revision": "20221025", + "revision": "20221101", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2355,6 +2355,29 @@ "readOnly": true, "type": "string" }, + "clientTypes": { + "description": "List of the clients the device is reporting to.", + "items": { + "enum": [ + "CLIENT_TYPE_UNSPECIFIED", + "DRIVE_FS", + "FUNDAMENTAL", + "ENDPOINT_VERIFICATION", + "WINDOWS_ADVANCED", + "GOOGLE_CREDENTIALS_PROVIDER_FOR_WINDOWS" + ], + "enumDescriptions": [ + "Default value", + "Managed by DriveFS", + "Management type for every secure device", + "Managed by Endpoint Verification", + "Managed by Windows", + "Managed by Google credential provider for windows" + ], + "type": "string" + }, + "type": "array" + }, "compromisedState": { "description": "Output only. Represents whether the Device is compromised.", "enum": [ @@ -2437,6 +2460,10 @@ "description": "Output only. Attributes specific to Endpoint Verification devices.", "readOnly": true }, + "hostname": { + "description": "Host name of the device.", + "type": "string" + }, "imei": { "description": "Output only. IMEI number of device if GSM device; empty otherwise.", "readOnly": true, diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index cbde45c0ded..b0d9dc4f465 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -907,6 +907,18 @@ type Device struct { // BuildNumber: Output only. Build number of the device. BuildNumber string `json:"buildNumber,omitempty"` + // ClientTypes: List of the clients the device is reporting to. + // + // Possible values: + // "CLIENT_TYPE_UNSPECIFIED" - Default value + // "DRIVE_FS" - Managed by DriveFS + // "FUNDAMENTAL" - Management type for every secure device + // "ENDPOINT_VERIFICATION" - Managed by Endpoint Verification + // "WINDOWS_ADVANCED" - Managed by Windows + // "GOOGLE_CREDENTIALS_PROVIDER_FOR_WINDOWS" - Managed by Google + // credential provider for windows + ClientTypes []string `json:"clientTypes,omitempty"` + // CompromisedState: Output only. Represents whether the Device is // compromised. // @@ -959,6 +971,9 @@ type Device struct { // specific to Endpoint Verification devices. EndpointVerificationSpecificAttributes *EndpointVerificationSpecificAttributes `json:"endpointVerificationSpecificAttributes,omitempty"` + // Hostname: Host name of the device. + Hostname string `json:"hostname,omitempty"` + // Imei: Output only. IMEI number of device if GSM device; empty // otherwise. Imei string `json:"imei,omitempty"` diff --git a/cloudtasks/v2beta2/cloudtasks-api.json b/cloudtasks/v2beta2/cloudtasks-api.json index b14eda3cc37..5f8852f1a46 100644 --- a/cloudtasks/v2beta2/cloudtasks-api.json +++ b/cloudtasks/v2beta2/cloudtasks-api.json @@ -876,7 +876,7 @@ } } }, - "revision": "20221014", + "revision": "20221025", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { @@ -1025,7 +1025,7 @@ "type": "object" }, "BufferTaskRequest": { - "description": "LINT.IfChange Request message for BufferTask.", + "description": "Request message for BufferTask.", "id": "BufferTaskRequest", "properties": { "body": { diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index 276168f3d1c..0a0bb857ebc 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -627,7 +627,7 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BufferTaskRequest: LINT.IfChange Request message for BufferTask. +// BufferTaskRequest: Request message for BufferTask. type BufferTaskRequest struct { // Body: Optional. Body of the HTTP request. The body can take any // generic value. The value is written to the HttpRequest of the [Task]. diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index f3dec1e62c7..6c96b15f240 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20221017", + "revision": "20221029", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5044,6 +5044,21 @@ }, "type": "object" }, + "GooglePrivacyDlpV2ExcludeByHotword": { + "description": "The rule to exclude findings based on a hotword. For record inspection of tables, column names are considered hotwords. An example of this is to exclude a finding if a BigQuery column matches a specific pattern.", + "id": "GooglePrivacyDlpV2ExcludeByHotword", + "properties": { + "hotwordRegex": { + "$ref": "GooglePrivacyDlpV2Regex", + "description": "Regular expression pattern defining what qualifies as a hotword." + }, + "proximity": { + "$ref": "GooglePrivacyDlpV2Proximity", + "description": "Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2ExcludeInfoTypes": { "description": "List of excluded infoTypes.", "id": "GooglePrivacyDlpV2ExcludeInfoTypes", @@ -5066,6 +5081,10 @@ "$ref": "GooglePrivacyDlpV2Dictionary", "description": "Dictionary which defines the rule." }, + "excludeByHotword": { + "$ref": "GooglePrivacyDlpV2ExcludeByHotword", + "description": "Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name." + }, "excludeInfoTypes": { "$ref": "GooglePrivacyDlpV2ExcludeInfoTypes", "description": "Set of infoTypes for which findings would affect this rule." diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 27836f8b25a..4262c12192b 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -3446,6 +3446,44 @@ func (s *GooglePrivacyDlpV2Error) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2ExcludeByHotword: The rule to exclude findings +// based on a hotword. For record inspection of tables, column names are +// considered hotwords. An example of this is to exclude a finding if a +// BigQuery column matches a specific pattern. +type GooglePrivacyDlpV2ExcludeByHotword struct { + // HotwordRegex: Regular expression pattern defining what qualifies as a + // hotword. + HotwordRegex *GooglePrivacyDlpV2Regex `json:"hotwordRegex,omitempty"` + + // Proximity: Range of characters within which the entire hotword must + // reside. The total length of the window cannot exceed 1000 characters. + // The windowBefore property in proximity should be set to 1 if the + // hotword needs to be included in a column header. + Proximity *GooglePrivacyDlpV2Proximity `json:"proximity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HotwordRegex") 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. "HotwordRegex") 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 *GooglePrivacyDlpV2ExcludeByHotword) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2ExcludeByHotword + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2ExcludeInfoTypes: List of excluded infoTypes. type GooglePrivacyDlpV2ExcludeInfoTypes struct { // InfoTypes: InfoType list in ExclusionRule rule drops a finding when @@ -3488,6 +3526,11 @@ type GooglePrivacyDlpV2ExclusionRule struct { // Dictionary: Dictionary which defines the rule. Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"` + // ExcludeByHotword: Drop if the hotword rule is contained in the + // proximate context. For tabular data, the context includes the column + // name. + ExcludeByHotword *GooglePrivacyDlpV2ExcludeByHotword `json:"excludeByHotword,omitempty"` + // ExcludeInfoTypes: Set of infoTypes for which findings would affect // this rule. ExcludeInfoTypes *GooglePrivacyDlpV2ExcludeInfoTypes `json:"excludeInfoTypes,omitempty"` diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 3e5a0382d1e..36925e47d9f 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20221023", + "revision": "20221027", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -3337,21 +3337,9 @@ "description": "Metadata about an entity type.", "id": "GoogleCloudDocumentaiV1EntityTypeMetadata", "properties": { - "humanReviewLabelingMetadata": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata", - "description": "Human review labeling config on the entity." - }, - "humanReviewMetadata": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata", - "description": "Human review config on the entity." - }, "inactive": { "description": "Whether the entity type should be considered as \"inactive\".", "type": "boolean" - }, - "schemaMutabilityMetadata": { - "$ref": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", - "description": "Schema mutability metadata on the entity." } }, "type": "object" @@ -3410,17 +3398,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata": { - "description": "Metadata for human review labeling config.", - "id": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata", - "properties": { - "enableNormalizationEditing": { - "description": "Whether to enable normalization editing.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1HumanReviewStatus": { "description": "The status of human review on a processed document.", "id": "GoogleCloudDocumentaiV1HumanReviewStatus", @@ -3454,22 +3431,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1HumanReviewValidationMetadata": { - "description": "Metadata for Human Review config.", - "id": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata", - "properties": { - "confidenceThreshold": { - "description": "The confidence threshold if human review validation is enabled.", - "format": "float", - "type": "number" - }, - "enableValidation": { - "description": "Whether to enable human review validation.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1ListProcessorTypesResponse": { "description": "Response message for list processor types.", "id": "GoogleCloudDocumentaiV1ListProcessorTypesResponse", @@ -3725,6 +3686,10 @@ "description": "The display name of the processor version.", "type": "string" }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "The schema of the processor version. Describes the output." + }, "googleManaged": { "description": "Denotes that this ProcessorVersion is managed by google.", "type": "boolean" @@ -3788,21 +3753,9 @@ "description": "Metadata about a property.", "id": "GoogleCloudDocumentaiV1PropertyMetadata", "properties": { - "humanReviewLabelingMetadata": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata", - "description": "Human review labeling config on the property." - }, - "humanReviewMetadata": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata", - "description": "Human review validation config on the property." - }, "inactive": { "description": "Whether the property should be considered as \"inactive\".", "type": "boolean" - }, - "schemaMutabilityMetadata": { - "$ref": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", - "description": "Schema mutability metadata on the property." } }, "type": "object" @@ -3898,24 +3851,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1SchemaMutabilityMetadata": { - "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", - "id": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", - "properties": { - "editable": { - "description": "Explicit flag that controls whether the label is editable.", - "type": "boolean" - }, - "processorVersions": { - "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata", diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index a7016f83b6c..5741a0246f7 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -4111,35 +4111,23 @@ type GoogleCloudDocumentaiV1EnableProcessorResponse struct { // GoogleCloudDocumentaiV1EntityTypeMetadata: Metadata about an entity // type. type GoogleCloudDocumentaiV1EntityTypeMetadata struct { - // HumanReviewLabelingMetadata: Human review labeling config on the - // entity. - HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - - // HumanReviewMetadata: Human review config on the entity. - HumanReviewMetadata *GoogleCloudDocumentaiV1HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` - // Inactive: Whether the entity type should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` - // SchemaMutabilityMetadata: Schema mutability metadata on the entity. - SchemaMutabilityMetadata *GoogleCloudDocumentaiV1SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "HumanReviewLabelingMetadata") 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 is a list of field names (e.g. "Inactive") 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. - // "HumanReviewLabelingMetadata") 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. "Inactive") 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:"-"` } @@ -4273,37 +4261,6 @@ func (s *GoogleCloudDocumentaiV1GcsPrefix) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1HumanReviewLabelingMetadata: Metadata for -// human review labeling config. -type GoogleCloudDocumentaiV1HumanReviewLabelingMetadata struct { - // EnableNormalizationEditing: Whether to enable normalization editing. - EnableNormalizationEditing bool `json:"enableNormalizationEditing,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EnableNormalizationEditing") 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. - // "EnableNormalizationEditing") 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 *GoogleCloudDocumentaiV1HumanReviewLabelingMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1HumanReviewLabelingMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review // on a processed document. type GoogleCloudDocumentaiV1HumanReviewStatus struct { @@ -4359,54 +4316,6 @@ func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1HumanReviewValidationMetadata: Metadata for -// Human Review config. -type GoogleCloudDocumentaiV1HumanReviewValidationMetadata struct { - // ConfidenceThreshold: The confidence threshold if human review - // validation is enabled. - ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` - - // EnableValidation: Whether to enable human review validation. - EnableValidation bool `json:"enableValidation,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") - // 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. "ConfidenceThreshold") 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 *GoogleCloudDocumentaiV1HumanReviewValidationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1HumanReviewValidationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudDocumentaiV1HumanReviewValidationMetadata) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDocumentaiV1HumanReviewValidationMetadata - var s1 struct { - ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) - return nil -} - // GoogleCloudDocumentaiV1ListProcessorTypesResponse: Response message // for list processor types. type GoogleCloudDocumentaiV1ListProcessorTypesResponse struct { @@ -4856,6 +4765,10 @@ type GoogleCloudDocumentaiV1ProcessorVersion struct { // DisplayName: The display name of the processor version. DisplayName string `json:"displayName,omitempty"` + // DocumentSchema: The schema of the processor version. Describes the + // output. + DocumentSchema *GoogleCloudDocumentaiV1DocumentSchema `json:"documentSchema,omitempty"` + // GoogleManaged: Denotes that this ProcessorVersion is managed by // google. GoogleManaged bool `json:"googleManaged,omitempty"` @@ -4952,35 +4865,23 @@ func (s *GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo) MarshalJSON() ( // GoogleCloudDocumentaiV1PropertyMetadata: Metadata about a property. type GoogleCloudDocumentaiV1PropertyMetadata struct { - // HumanReviewLabelingMetadata: Human review labeling config on the - // property. - HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - - // HumanReviewMetadata: Human review validation config on the property. - HumanReviewMetadata *GoogleCloudDocumentaiV1HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` - // Inactive: Whether the property should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` - // SchemaMutabilityMetadata: Schema mutability metadata on the property. - SchemaMutabilityMetadata *GoogleCloudDocumentaiV1SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "HumanReviewLabelingMetadata") 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 is a list of field names (e.g. "Inactive") 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. - // "HumanReviewLabelingMetadata") 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. "Inactive") 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:"-"` } @@ -5145,42 +5046,6 @@ func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1SchemaMutabilityMetadata: Metadata that -// specifies whether a label is editable and reasons why. These fields -// are read-only. Changing these fields has no impact on the backend. -type GoogleCloudDocumentaiV1SchemaMutabilityMetadata struct { - // Editable: Explicit flag that controls whether the label is editable. - Editable bool `json:"editable,omitempty"` - - // ProcessorVersions: Full resource name of processor versions that - // contain this label. e.g. - // `projects/{project}/locations/{location}/processors/{processor}/proces - // sorVersions/{processorVersion}` - ProcessorVersions []string `json:"processorVersions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Editable") 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. "Editable") 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 *GoogleCloudDocumentaiV1SchemaMutabilityMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1SchemaMutabilityMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long // running operation metadata for set default processor version method. type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct { diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index d920c37ee2a..2297ad538b7 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -836,7 +836,7 @@ } } }, - "revision": "20221023", + "revision": "20221027", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -6089,21 +6089,9 @@ "description": "Metadata about an entity type.", "id": "GoogleCloudDocumentaiV1beta3EntityTypeMetadata", "properties": { - "humanReviewLabelingMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata", - "description": "Human review labeling config on the entity." - }, - "humanReviewMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata", - "description": "Human review config on the entity." - }, "inactive": { "description": "Whether the entity type should be considered as \"inactive\".", "type": "boolean" - }, - "schemaMutabilityMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", - "description": "Schema mutability metadata on the entity." } }, "type": "object" @@ -6162,17 +6150,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata": { - "description": "Metadata for human review labeling config.", - "id": "GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata", - "properties": { - "enableNormalizationEditing": { - "description": "Whether to enable normalization editing.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1beta3HumanReviewStatus": { "description": "The status of human review on a processed document.", "id": "GoogleCloudDocumentaiV1beta3HumanReviewStatus", @@ -6206,22 +6183,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata": { - "description": "Metadata for Human Review config.", - "id": "GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata", - "properties": { - "confidenceThreshold": { - "description": "The confidence threshold if human review validation is enabled.", - "format": "float", - "type": "number" - }, - "enableValidation": { - "description": "Whether to enable human review validation.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse": { "description": "Response message for list processor types.", "id": "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse", @@ -6485,6 +6446,10 @@ "description": "The display name of the processor version.", "type": "string" }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema", + "description": "The schema of the processor version. Describes the output." + }, "googleManaged": { "description": "Denotes that this ProcessorVersion is managed by google.", "type": "boolean" @@ -6548,21 +6513,9 @@ "description": "Metadata about a property.", "id": "GoogleCloudDocumentaiV1beta3PropertyMetadata", "properties": { - "humanReviewLabelingMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata", - "description": "Human review labeling config on the property." - }, - "humanReviewMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata", - "description": "Human review validation config on the property." - }, "inactive": { "description": "Whether the property should be considered as \"inactive\".", "type": "boolean" - }, - "schemaMutabilityMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", - "description": "Schema mutability metadata on the property." } }, "type": "object" @@ -6696,24 +6649,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata": { - "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", - "id": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", - "properties": { - "editable": { - "description": "Explicit flag that controls whether the label is editable.", - "type": "boolean" - }, - "processorVersions": { - "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata", diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 7c61493aa6a..15ebbd24ebe 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8996,35 +8996,23 @@ type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct { // GoogleCloudDocumentaiV1beta3EntityTypeMetadata: Metadata about an // entity type. type GoogleCloudDocumentaiV1beta3EntityTypeMetadata struct { - // HumanReviewLabelingMetadata: Human review labeling config on the - // entity. - HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - - // HumanReviewMetadata: Human review config on the entity. - HumanReviewMetadata *GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` - // Inactive: Whether the entity type should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` - // SchemaMutabilityMetadata: Schema mutability metadata on the entity. - SchemaMutabilityMetadata *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "HumanReviewLabelingMetadata") 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 is a list of field names (e.g. "Inactive") 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. - // "HumanReviewLabelingMetadata") 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. "Inactive") 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:"-"` } @@ -9158,37 +9146,6 @@ func (s *GoogleCloudDocumentaiV1beta3GcsPrefix) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata: Metadata for -// human review labeling config. -type GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata struct { - // EnableNormalizationEditing: Whether to enable normalization editing. - EnableNormalizationEditing bool `json:"enableNormalizationEditing,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EnableNormalizationEditing") 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. - // "EnableNormalizationEditing") 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 *GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiV1beta3HumanReviewStatus: The status of human // review on a processed document. type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct { @@ -9244,54 +9201,6 @@ func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata: Metadata -// for Human Review config. -type GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata struct { - // ConfidenceThreshold: The confidence threshold if human review - // validation is enabled. - ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` - - // EnableValidation: Whether to enable human review validation. - EnableValidation bool `json:"enableValidation,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") - // 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. "ConfidenceThreshold") 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 *GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata - var s1 struct { - ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) - return nil -} - // GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse: Response // message for list processor types. type GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse struct { @@ -9751,6 +9660,10 @@ type GoogleCloudDocumentaiV1beta3ProcessorVersion struct { // DisplayName: The display name of the processor version. DisplayName string `json:"displayName,omitempty"` + // DocumentSchema: The schema of the processor version. Describes the + // output. + DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"` + // GoogleManaged: Denotes that this ProcessorVersion is managed by // google. GoogleManaged bool `json:"googleManaged,omitempty"` @@ -9848,35 +9761,23 @@ func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo) MarshalJSO // GoogleCloudDocumentaiV1beta3PropertyMetadata: Metadata about a // property. type GoogleCloudDocumentaiV1beta3PropertyMetadata struct { - // HumanReviewLabelingMetadata: Human review labeling config on the - // property. - HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - - // HumanReviewMetadata: Human review validation config on the property. - HumanReviewMetadata *GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` - // Inactive: Whether the property should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` - // SchemaMutabilityMetadata: Schema mutability metadata on the property. - SchemaMutabilityMetadata *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "HumanReviewLabelingMetadata") 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 is a list of field names (e.g. "Inactive") 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. - // "HumanReviewLabelingMetadata") 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. "Inactive") 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:"-"` } @@ -10065,42 +9966,6 @@ func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata: Metadata that -// specifies whether a label is editable and reasons why. These fields -// are read-only. Changing these fields has no impact on the backend. -type GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata struct { - // Editable: Explicit flag that controls whether the label is editable. - Editable bool `json:"editable,omitempty"` - - // ProcessorVersions: Full resource name of processor versions that - // contain this label. e.g. - // `projects/{project}/locations/{location}/processors/{processor}/proces - // sorVersions/{processorVersion}` - ProcessorVersions []string `json:"processorVersions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Editable") 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. "Editable") 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 *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The // long running operation metadata for set default processor version // method. diff --git a/drivelabels/v2beta/drivelabels-api.json b/drivelabels/v2beta/drivelabels-api.json index 3e250332973..e189a996abd 100644 --- a/drivelabels/v2beta/drivelabels-api.json +++ b/drivelabels/v2beta/drivelabels-api.json @@ -432,7 +432,7 @@ "locks": { "methods": { "list": { - "description": "Lists the Locks on a Label.", + "description": "Lists the LabelLocks on a Label.", "flatPath": "v2beta/labels/{labelsId}/locks", "httpMethod": "GET", "id": "drivelabels.labels.locks.list", @@ -652,7 +652,7 @@ "locks": { "methods": { "list": { - "description": "Lists the Locks on a Label.", + "description": "Lists the LabelLocks on a Label.", "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/locks", "httpMethod": "GET", "id": "drivelabels.labels.revisions.locks.list", @@ -888,7 +888,7 @@ } } }, - "revision": "20221024", + "revision": "20221031", "rootUrl": "https://drivelabels.googleapis.com/", "schemas": { "GoogleAppsDriveLabelsV2betaBadgeColors": { @@ -2383,11 +2383,6 @@ "readOnly": true, "type": "string" }, - "policyUri": { - "description": "Output only. A URI referring to the policy that created this Lock.", - "readOnly": true, - "type": "string" - }, "state": { "description": "Output only. This LabelLock's state.", "enum": [ diff --git a/drivelabels/v2beta/drivelabels-gen.go b/drivelabels/v2beta/drivelabels-gen.go index 9472fc8fd66..b48e70010b2 100644 --- a/drivelabels/v2beta/drivelabels-gen.go +++ b/drivelabels/v2beta/drivelabels-gen.go @@ -2530,10 +2530,6 @@ type GoogleAppsDriveLabelsV2betaLabelLock struct { // Name: Output only. Resource name of this LabelLock. Name string `json:"name,omitempty"` - // PolicyUri: Output only. A URI referring to the policy that created - // this Lock. - PolicyUri string `json:"policyUri,omitempty"` - // State: Output only. This LabelLock's state. // // Possible values: @@ -5274,7 +5270,7 @@ type LabelsLocksListCall struct { header_ http.Header } -// List: Lists the Locks on a Label. +// List: Lists the LabelLocks on a Label. // // - parent: Label on which Locks are applied. Format: labels/{label}. func (r *LabelsLocksService) List(parent string) *LabelsLocksListCall { @@ -5398,7 +5394,7 @@ func (c *LabelsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDrive } return ret, nil // { - // "description": "Lists the Locks on a Label.", + // "description": "Lists the LabelLocks on a Label.", // "flatPath": "v2beta/labels/{labelsId}/locks", // "httpMethod": "GET", // "id": "drivelabels.labels.locks.list", @@ -6425,7 +6421,7 @@ type LabelsRevisionsLocksListCall struct { header_ http.Header } -// List: Lists the Locks on a Label. +// List: Lists the LabelLocks on a Label. // // - parent: Label on which Locks are applied. Format: labels/{label}. func (r *LabelsRevisionsLocksService) List(parent string) *LabelsRevisionsLocksListCall { @@ -6549,7 +6545,7 @@ func (c *LabelsRevisionsLocksListCall) Do(opts ...googleapi.CallOption) (*Google } return ret, nil // { - // "description": "Lists the Locks on a Label.", + // "description": "Lists the LabelLocks on a Label.", // "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/locks", // "httpMethod": "GET", // "id": "drivelabels.labels.revisions.locks.list", diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 02c80ce548a..d15ee62825b 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3372,7 +3372,7 @@ } } }, - "revision": "20221014", + "revision": "20221027", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -4661,6 +4661,10 @@ "description": "Name for the resource value config", "type": "string" }, + "resourceType": { + "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", + "type": "string" + }, "resourceValue": { "description": "Required. Resource value level this expression represents", "enum": [ @@ -4679,6 +4683,10 @@ ], "type": "string" }, + "scope": { + "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", + "type": "string" + }, "tagValues": { "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index e8ee875927e..1ae1aa2e3d3 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -2553,6 +2553,13 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // Name: Name for the resource value config Name string `json:"name,omitempty"` + // ResourceType: Apply resource_value only to resources that match + // resource_type. resource_type will be checked with "AND" of other + // resources. E.g. "storage.googleapis.com/Bucket" with resource_value + // "HIGH" will apply "HIGH" value only to + // "storage.googleapis.com/Bucket" resources. + ResourceType string `json:"resourceType,omitempty"` + // ResourceValue: Required. Resource value level this expression // represents // @@ -2564,6 +2571,11 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // "NONE" - No resource value, e.g. ignore these resources ResourceValue string `json:"resourceValue,omitempty"` + // Scope: Project or folder to scope this config to. For example, + // "project/456" would apply this config only to resources in + // "project/456" scope will be checked with "AND" of other resources. + Scope string `json:"scope,omitempty"` + // TagValues: Required. Tag values combined with AND to check against. // Values in the form "tagValues/123" E.g. [ "tagValues/123", // "tagValues/456", "tagValues/789" ] diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 1aba10dc6af..fb0091db0e0 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20221014", + "revision": "20221027", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2161,6 +2161,10 @@ "description": "Name for the resource value config", "type": "string" }, + "resourceType": { + "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", + "type": "string" + }, "resourceValue": { "description": "Required. Resource value level this expression represents", "enum": [ @@ -2179,6 +2183,10 @@ ], "type": "string" }, + "scope": { + "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", + "type": "string" + }, "tagValues": { "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 90e2694eaa5..92d34bb5489 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -2204,6 +2204,13 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // Name: Name for the resource value config Name string `json:"name,omitempty"` + // ResourceType: Apply resource_value only to resources that match + // resource_type. resource_type will be checked with "AND" of other + // resources. E.g. "storage.googleapis.com/Bucket" with resource_value + // "HIGH" will apply "HIGH" value only to + // "storage.googleapis.com/Bucket" resources. + ResourceType string `json:"resourceType,omitempty"` + // ResourceValue: Required. Resource value level this expression // represents // @@ -2215,6 +2222,11 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // "NONE" - No resource value, e.g. ignore these resources ResourceValue string `json:"resourceValue,omitempty"` + // Scope: Project or folder to scope this config to. For example, + // "project/456" would apply this config only to resources in + // "project/456" scope will be checked with "AND" of other resources. + Scope string `json:"scope,omitempty"` + // TagValues: Required. Tag values combined with AND to check against. // Values in the form "tagValues/123" E.g. [ "tagValues/123", // "tagValues/456", "tagValues/789" ] diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index e24d729f892..b2c49c1a97e 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20221014", + "revision": "20221027", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3205,6 +3205,10 @@ "description": "Name for the resource value config", "type": "string" }, + "resourceType": { + "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", + "type": "string" + }, "resourceValue": { "description": "Required. Resource value level this expression represents", "enum": [ @@ -3223,6 +3227,10 @@ ], "type": "string" }, + "scope": { + "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", + "type": "string" + }, "tagValues": { "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 83c4364126f..a33fc341f73 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -2217,6 +2217,13 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // Name: Name for the resource value config Name string `json:"name,omitempty"` + // ResourceType: Apply resource_value only to resources that match + // resource_type. resource_type will be checked with "AND" of other + // resources. E.g. "storage.googleapis.com/Bucket" with resource_value + // "HIGH" will apply "HIGH" value only to + // "storage.googleapis.com/Bucket" resources. + ResourceType string `json:"resourceType,omitempty"` + // ResourceValue: Required. Resource value level this expression // represents // @@ -2228,6 +2235,11 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // "NONE" - No resource value, e.g. ignore these resources ResourceValue string `json:"resourceValue,omitempty"` + // Scope: Project or folder to scope this config to. For example, + // "project/456" would apply this config only to resources in + // "project/456" scope will be checked with "AND" of other resources. + Scope string `json:"scope,omitempty"` + // TagValues: Required. Tag values combined with AND to check against. // Values in the form "tagValues/123" E.g. [ "tagValues/123", // "tagValues/456", "tagValues/789" ]