diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 6fa338b0566..374f6596bb8 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -518,7 +518,7 @@ } } }, - "revision": "20221104", + "revision": "20221114", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -789,6 +789,10 @@ "$ref": "PrivateEnvironmentConfig", "description": "The configuration used for the Private IP Cloud Composer environment." }, + "recoveryConfig": { + "$ref": "RecoveryConfig", + "description": "Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer." + }, "softwareConfig": { "$ref": "SoftwareConfig", "description": "The configuration settings for software inside the environment." @@ -1321,6 +1325,17 @@ }, "type": "object" }, + "RecoveryConfig": { + "description": "The Recovery settings of an environment.", + "id": "RecoveryConfig", + "properties": { + "scheduledSnapshotsConfig": { + "$ref": "ScheduledSnapshotsConfig", + "description": "Optional. The configuration for scheduled snapshot creation mechanism." + } + }, + "type": "object" + }, "RestartWebServerRequest": { "description": "Restart Airflow web server.", "id": "RestartWebServerRequest", @@ -1349,6 +1364,29 @@ }, "type": "object" }, + "ScheduledSnapshotsConfig": { + "description": "The configuration for scheduled snapshot creation mechanism.", + "id": "ScheduledSnapshotsConfig", + "properties": { + "enabled": { + "description": "Optional. Whether scheduled snapshots creation is enabled.", + "type": "boolean" + }, + "snapshotCreationSchedule": { + "description": "Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.", + "type": "string" + }, + "snapshotLocation": { + "description": "Optional. The Cloud Storage location for storing automatically created snapshots.", + "type": "string" + }, + "timeZone": { + "description": "Optional. Time zone that sets the context to interpret snapshot_creation_schedule.", + "type": "string" + } + }, + "type": "object" + }, "SchedulerResource": { "description": "Configuration for resources used by Airflow schedulers.", "id": "SchedulerResource", diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 28fa4df4000..6142d5ff9ca 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -662,6 +662,11 @@ type EnvironmentConfig struct { // Cloud Composer environment. PrivateEnvironmentConfig *PrivateEnvironmentConfig `json:"privateEnvironmentConfig,omitempty"` + // RecoveryConfig: Optional. The Recovery settings configuration of an + // environment. This field is supported for Cloud Composer environments + // in versions composer-2.*.*-airflow-*.*.* and newer. + RecoveryConfig *RecoveryConfig `json:"recoveryConfig,omitempty"` + // SoftwareConfig: The configuration settings for software inside the // environment. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` @@ -1644,6 +1649,37 @@ func (s *PrivateEnvironmentConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RecoveryConfig: The Recovery settings of an environment. +type RecoveryConfig struct { + // ScheduledSnapshotsConfig: Optional. The configuration for scheduled + // snapshot creation mechanism. + ScheduledSnapshotsConfig *ScheduledSnapshotsConfig `json:"scheduledSnapshotsConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ScheduledSnapshotsConfig") 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. "ScheduledSnapshotsConfig") + // 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 *RecoveryConfig) MarshalJSON() ([]byte, error) { + type NoMethod RecoveryConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RestartWebServerRequest: Restart Airflow web server. type RestartWebServerRequest struct { } @@ -1710,6 +1746,48 @@ func (s *SaveSnapshotResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScheduledSnapshotsConfig: The configuration for scheduled snapshot +// creation mechanism. +type ScheduledSnapshotsConfig struct { + // Enabled: Optional. Whether scheduled snapshots creation is enabled. + Enabled bool `json:"enabled,omitempty"` + + // SnapshotCreationSchedule: Optional. The cron expression representing + // the time when snapshots creation mechanism runs. This field is + // subject to additional validation around frequency of execution. + SnapshotCreationSchedule string `json:"snapshotCreationSchedule,omitempty"` + + // SnapshotLocation: Optional. The Cloud Storage location for storing + // automatically created snapshots. + SnapshotLocation string `json:"snapshotLocation,omitempty"` + + // TimeZone: Optional. Time zone that sets the context to interpret + // snapshot_creation_schedule. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *ScheduledSnapshotsConfig) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledSnapshotsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SchedulerResource: Configuration for resources used by Airflow // schedulers. type SchedulerResource struct { diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 50182a9df4f..7affd802a93 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20221024", + "revision": "20221031", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2685,7 +2685,7 @@ "type": "boolean" }, "evaluationMode": { - "description": "Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.", + "description": "Mode of operation for binauthz policy evaluation. If unspecified, defaults to DISABLED.", "enum": [ "EVALUATION_MODE_UNSPECIFIED", "DISABLED", @@ -3591,6 +3591,17 @@ "properties": {}, "type": "object" }, + "FastSocket": { + "description": "Configuration of Fast Socket feature.", + "id": "FastSocket", + "properties": { + "enabled": { + "description": "Whether Fast Socket features are enabled in the node pool.", + "type": "boolean" + } + }, + "type": "object" + }, "Filter": { "description": "Allows filtering to one or more specific event types. If event types are present, those and only those event types will be transmitted to the cluster. Other types will be skipped. If no filter is specified, or no event types are present, all event types will be sent", "id": "Filter", @@ -4552,6 +4563,10 @@ "description": "Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'", "type": "string" }, + "fastSocket": { + "$ref": "FastSocket", + "description": "Enable or disable NCCL fast socket for the node pool." + }, "gcfsConfig": { "$ref": "GcfsConfig", "description": "Google Container File System (image streaming) configs." @@ -6228,6 +6243,10 @@ "$ref": "ConfidentialNodes", "description": "Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled." }, + "fastSocket": { + "$ref": "FastSocket", + "description": "Enable or disable NCCL fast socket for the node pool." + }, "gcfsConfig": { "$ref": "GcfsConfig", "description": "GCFS config." diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 3a0127d7e0a..aa2093e6de4 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -648,8 +648,7 @@ type BinaryAuthorization struct { // EVALUATION_MODE_UNSPECIFIED, this field is ignored. Enabled bool `json:"enabled,omitempty"` - // EvaluationMode: Mode of operation for binauthz policy evaluation. - // Currently the only options are equivalent to enable/disable. If + // EvaluationMode: Mode of operation for binauthz policy evaluation. If // unspecified, defaults to DISABLED. // // Possible values: @@ -2028,6 +2027,34 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// FastSocket: Configuration of Fast Socket feature. +type FastSocket struct { + // Enabled: Whether Fast Socket features are enabled in the node pool. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *FastSocket) MarshalJSON() ([]byte, error) { + type NoMethod FastSocket + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Filter: Allows filtering to one or more specific event types. If // event types are present, those and only those event types will be // transmitted to the cluster. Other types will be skipped. If no filter @@ -3798,6 +3825,9 @@ type NodeConfig struct { // 'pd-standard' DiskType string `json:"diskType,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. + FastSocket *FastSocket `json:"fastSocket,omitempty"` + // GcfsConfig: Google Container File System (image streaming) configs. GcfsConfig *GcfsConfig `json:"gcfsConfig,omitempty"` @@ -6616,6 +6646,9 @@ type UpdateNodePoolRequest struct { // node pool will be Confidential VM once enabled. ConfidentialNodes *ConfidentialNodes `json:"confidentialNodes,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. + FastSocket *FastSocket `json:"fastSocket,omitempty"` + // GcfsConfig: GCFS config. GcfsConfig *GcfsConfig `json:"gcfsConfig,omitempty"` diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 3bab1277cff..90abbf8e643 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2512,7 +2512,7 @@ } } }, - "revision": "20221017", + "revision": "20221031", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2738,7 +2738,7 @@ "type": "boolean" }, "evaluationMode": { - "description": "Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.", + "description": "Mode of operation for binauthz policy evaluation. If unspecified, defaults to DISABLED.", "enum": [ "EVALUATION_MODE_UNSPECIFIED", "DISABLED", @@ -3767,6 +3767,17 @@ }, "type": "object" }, + "FastSocket": { + "description": "Configuration of Fast Socket feature.", + "id": "FastSocket", + "properties": { + "enabled": { + "description": "Whether Fast Socket features are enabled in the node pool.", + "type": "boolean" + } + }, + "type": "object" + }, "Filter": { "description": "Allows filtering to one or more specific event types. If event types are present, those and only those event types will be transmitted to the cluster. Other types will be skipped. If no filter is specified, or no event types are present, all event types will be sent", "id": "Filter", @@ -4846,6 +4857,10 @@ "$ref": "EphemeralStorageConfig", "description": "Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk." }, + "fastSocket": { + "$ref": "FastSocket", + "description": "Enable or disable NCCL fast socket for the node pool." + }, "gcfsConfig": { "$ref": "GcfsConfig", "description": "GCFS (Google Container File System) configs." @@ -6595,6 +6610,10 @@ "$ref": "ConfidentialNodes", "description": "Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled." }, + "fastSocket": { + "$ref": "FastSocket", + "description": "Enable or disable NCCL fast socket for the node pool." + }, "gcfsConfig": { "$ref": "GcfsConfig", "description": "GCFS config." diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index c8aea253075..cf2dcb720e8 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -702,8 +702,7 @@ type BinaryAuthorization struct { // EVALUATION_MODE_UNSPECIFIED, this field is ignored. Enabled bool `json:"enabled,omitempty"` - // EvaluationMode: Mode of operation for binauthz policy evaluation. - // Currently the only options are equivalent to enable/disable. If + // EvaluationMode: Mode of operation for binauthz policy evaluation. If // unspecified, defaults to DISABLED. // // Possible values: @@ -2262,6 +2261,34 @@ func (s *EphemeralStorageConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FastSocket: Configuration of Fast Socket feature. +type FastSocket struct { + // Enabled: Whether Fast Socket features are enabled in the node pool. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *FastSocket) MarshalJSON() ([]byte, error) { + type NoMethod FastSocket + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Filter: Allows filtering to one or more specific event types. If // event types are present, those and only those event types will be // transmitted to the cluster. Other types will be skipped. If no filter @@ -4219,6 +4246,9 @@ type NodeConfig struct { // disk. EphemeralStorageConfig *EphemeralStorageConfig `json:"ephemeralStorageConfig,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. + FastSocket *FastSocket `json:"fastSocket,omitempty"` + // GcfsConfig: GCFS (Google Container File System) configs. GcfsConfig *GcfsConfig `json:"gcfsConfig,omitempty"` @@ -7171,6 +7201,9 @@ type UpdateNodePoolRequest struct { // node pool will be Confidential VM once enabled. ConfidentialNodes *ConfidentialNodes `json:"confidentialNodes,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. + FastSocket *FastSocket `json:"fastSocket,omitempty"` + // GcfsConfig: GCFS config. GcfsConfig *GcfsConfig `json:"gcfsConfig,omitempty"` diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 7902d95c98c..bc235503b6c 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -177,38 +177,124 @@ } }, "resources": { - "lakes": { + "dataAttributeBindings": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataplex.projects.locations.dataAttributeBindings.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataplex.projects.locations.dataAttributeBindings.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataplex.projects.locations.dataAttributeBindings.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "dataScans": { "methods": { "create": { - "description": "Creates a lake resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes", + "description": "Creates a dataScan resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans", "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.create", + "id": "dataplex.projects.locations.dataScans.create", "parameterOrder": [ "parent" ], "parameters": { - "lakeId": { - "description": "Required. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.", + "dataScanId": { + "description": "Required. DataScan identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The resource name of the lake location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.", + "description": "Required. The resource name of the parent location: projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" - }, - "validateOnly": { - "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", - "location": "query", - "type": "boolean" } }, - "path": "v1/{+parent}/lakes", + "path": "v1/{+parent}/dataScans", "request": { - "$ref": "GoogleCloudDataplexV1Lake" + "$ref": "GoogleCloudDataplexV1DataScan" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -218,18 +304,18 @@ ] }, "delete": { - "description": "Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "description": "Delete the dataScan resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", "httpMethod": "DELETE", - "id": "dataplex.projects.locations.lakes.delete", + "id": "dataplex.projects.locations.dataScans.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The resource name of the lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "description": "Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" } @@ -243,25 +329,40 @@ ] }, "get": { - "description": "Retrieves a lake resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "description": "Get dataScan resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.get", + "id": "dataplex.projects.locations.dataScans.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The resource name of the lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "description": "Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" + }, + "view": { + "description": "Optional. Used to select the subset of DataScan information to return. Defaults to BASIC.", + "enum": [ + "DATA_SCAN_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The API will default to the BASIC view.", + "Basic view that does not include spec and result.", + "Include everything." + ], + "location": "query", + "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudDataplexV1Lake" + "$ref": "GoogleCloudDataplexV1DataScan" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -269,9 +370,9 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:getIamPolicy", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:getIamPolicy", "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.getIamPolicy", + "id": "dataplex.projects.locations.dataScans.getIamPolicy", "parameterOrder": [ "resource" ], @@ -285,7 +386,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" } @@ -299,10 +400,10 @@ ] }, "list": { - "description": "Lists lake resources in a project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes", + "description": "Lists dataScans.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans", "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.list", + "id": "dataplex.projects.locations.dataScans.list", "parameterOrder": [ "parent" ], @@ -313,50 +414,50 @@ "type": "string" }, "orderBy": { - "description": "Optional. Order by fields for the result.", + "description": "Optional. Order by fields (name or create_time) for the result. If not specified, the ordering is undefined.", "location": "query", "type": "string" }, "pageSize": { - "description": "Optional. Maximum number of Lakes to return. The service may return fewer than this value. If unspecified, at most 10 lakes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 10 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. Page token received from a previous ListLakes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListLakes must match the call that provided the page token.", + "description": "Optional. Page token received from a previous ListDataScans call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScans must match the call that provided the page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The resource name of the lake location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.", + "description": "Required. projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/lakes", + "path": "v1/{+parent}/dataScans", "response": { - "$ref": "GoogleCloudDataplexV1ListLakesResponse" + "$ref": "GoogleCloudDataplexV1ListDataScansResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates a lake resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "description": "Update the dataScan resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", "httpMethod": "PATCH", - "id": "dataplex.projects.locations.lakes.patch", + "id": "dataplex.projects.locations.dataScans.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Output only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "description": "Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" }, @@ -365,16 +466,11 @@ "format": "google-fieldmask", "location": "query", "type": "string" - }, - "validateOnly": { - "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", - "location": "query", - "type": "boolean" } }, "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudDataplexV1Lake" + "$ref": "GoogleCloudDataplexV1DataScan" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -383,11 +479,39 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "run": { + "description": "Run an on demand execution of a DataScan.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:run", + "httpMethod": "POST", + "id": "dataplex.projects.locations.dataScans.run", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the DataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. Only on-demand DataScans are allowed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:run", + "request": { + "$ref": "GoogleCloudDataplexV1RunDataScanRequest" + }, + "response": { + "$ref": "GoogleCloudDataplexV1RunDataScanResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:setIamPolicy", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:setIamPolicy", "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.setIamPolicy", + "id": "dataplex.projects.locations.dataScans.setIamPolicy", "parameterOrder": [ "resource" ], @@ -395,7 +519,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" } @@ -413,9 +537,9 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:testIamPermissions", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:testIamPermissions", "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.testIamPermissions", + "id": "dataplex.projects.locations.dataScans.testIamPermissions", "parameterOrder": [ "resource" ], @@ -423,7 +547,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" } @@ -441,151 +565,186 @@ } }, "resources": { - "actions": { + "jobs": { "methods": { - "list": { - "description": "Lists action resources in a lake.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/actions", + "get": { + "description": "Get DataScanJob resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}/jobs/{jobsId}", "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.actions.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. Maximum number of actions to return. The service may return fewer than this value. If unspecified, at most 10 actions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token received from a previous ListLakeActions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListLakeActions must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the parent lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/actions", - "response": { - "$ref": "GoogleCloudDataplexV1ListActionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "content": { - "methods": { - "create": { - "description": "Create a content.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content", - "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.content.create", + "id": "dataplex.projects.locations.dataScans.jobs.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", + "name": { + "description": "Required. The resource name of the DataScanJob: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+$", "required": true, "type": "string" }, - "validateOnly": { - "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "view": { + "description": "Optional. Used to select the subset of DataScan information to return. Defaults to BASIC.", + "enum": [ + "DATA_SCAN_JOB_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The API will default to the BASIC view.", + "Basic view that does not include spec and result.", + "Include everything." + ], "location": "query", - "type": "boolean" + "type": "string" } }, - "path": "v1/{+parent}/content", - "request": { - "$ref": "GoogleCloudDataplexV1Content" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudDataplexV1Content" + "$ref": "GoogleCloudDataplexV1DataScanJob" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Delete a content.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", - "httpMethod": "DELETE", - "id": "dataplex.projects.locations.lakes.content.delete", + "list": { + "description": "Lists DataScanJobs under the given dataScan.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}/jobs", + "httpMethod": "GET", + "id": "dataplex.projects.locations.dataScans.jobs.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", + "pageSize": { + "description": "Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous ListDataScanJobs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScanJobs must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the parent environment: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+parent}/jobs", "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Get a content resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", - "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.content.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", - "required": true, - "type": "string" - }, - "view": { - "description": "Optional. Specify content view to make a partial request.", - "enum": [ - "CONTENT_VIEW_UNSPECIFIED", - "BASIC", - "FULL" - ], - "enumDescriptions": [ - "Content view not specified. Defaults to BASIC. The API will default to the BASIC view.", - "Will not return the data_text field.", - "Returns the complete proto." - ], - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudDataplexV1Content" + "$ref": "GoogleCloudDataplexV1ListDataScanJobsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + } + } + } + } + }, + "dataTaxonomies": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataplex.projects.locations.dataTaxonomies.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataplex.projects.locations.dataTaxonomies.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataplex.projects.locations.dataTaxonomies.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "attributes": { + "methods": { "getIamPolicy": { - "description": "Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:getIamPolicy", + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:getIamPolicy", "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.content.getIamPolicy", + "id": "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy", "parameterOrder": [ "resource" ], @@ -599,7 +758,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", "required": true, "type": "string" } @@ -612,91 +771,11 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "List content.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content", - "httpMethod": "GET", - "id": "dataplex.projects.locations.lakes.content.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filter request. Filters are case-sensitive. The following formats are supported:labels.key1 = \"value1\" labels:key1 type = \"NOTEBOOK\" type = \"SQL_SCRIPT\"These restrictions can be coinjoined with AND, OR and NOT conjunctions.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Maximum number of content to return. The service may return fewer than this value. If unspecified, at most 10 content will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token received from a previous ListContent call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListContent must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/content", - "response": { - "$ref": "GoogleCloudDataplexV1ListContentResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Update a content. Only supports full resource update.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", - "httpMethod": "PATCH", - "id": "dataplex.projects.locations.lakes.content.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Mask of fields to update.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudDataplexV1Content" - }, - "response": { - "$ref": "GoogleCloudDataplexV1Content" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "setIamPolicy": { - "description": "Sets the access control policy on the specified contentitem resource. Replaces any existing policy.Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:setIamPolicy", + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:setIamPolicy", "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.content.setIamPolicy", + "id": "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy", "parameterOrder": [ "resource" ], @@ -704,7 +783,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", "required": true, "type": "string" } @@ -721,10 +800,10 @@ ] }, "testIamPermissions": { - "description": "Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to have Google IAM permission to make this request.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:testIamPermissions", + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:testIamPermissions", "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.content.testIamPermissions", + "id": "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions", "parameterOrder": [ "resource" ], @@ -732,7 +811,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", "required": true, "type": "string" } @@ -749,45 +828,620 @@ ] } } - }, - "contentitems": { - "methods": { - "create": { - "description": "Create a content.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/contentitems", - "httpMethod": "POST", - "id": "dataplex.projects.locations.lakes.contentitems.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", - "required": true, - "type": "string" - }, - "validateOnly": { - "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+parent}/contentitems", - "request": { - "$ref": "GoogleCloudDataplexV1Content" - }, - "response": { - "$ref": "GoogleCloudDataplexV1Content" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Delete a content.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/contentitems/{contentitemsId}", + } + } + }, + "lakes": { + "methods": { + "create": { + "description": "Creates a lake resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "lakeId": { + "description": "Required. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the lake location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/lakes", + "request": { + "$ref": "GoogleCloudDataplexV1Lake" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "httpMethod": "DELETE", + "id": "dataplex.projects.locations.lakes.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves a lake resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDataplexV1Lake" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists lake resources in a project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of Lakes to return. The service may return fewer than this value. If unspecified, at most 10 lakes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous ListLakes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListLakes must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the lake location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/lakes", + "response": { + "$ref": "GoogleCloudDataplexV1ListLakesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a lake resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}", + "httpMethod": "PATCH", + "id": "dataplex.projects.locations.lakes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDataplexV1Lake" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "actions": { + "methods": { + "list": { + "description": "Lists action resources in a lake.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/actions", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.actions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of actions to return. The service may return fewer than this value. If unspecified, at most 10 actions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous ListLakeActions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListLakeActions must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the parent lake: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/actions", + "response": { + "$ref": "GoogleCloudDataplexV1ListActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "content": { + "methods": { + "create": { + "description": "Create a content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.content.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/content", + "request": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "response": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", + "httpMethod": "DELETE", + "id": "dataplex.projects.locations.lakes.content.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a content resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.content.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. Specify content view to make a partial request.", + "enum": [ + "CONTENT_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "Content view not specified. Defaults to BASIC. The API will default to the BASIC view.", + "Will not return the data_text field.", + "Returns the complete proto." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.content.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content", + "httpMethod": "GET", + "id": "dataplex.projects.locations.lakes.content.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter request. Filters are case-sensitive. The following formats are supported:labels.key1 = \"value1\" labels:key1 type = \"NOTEBOOK\" type = \"SQL_SCRIPT\"These restrictions can be coinjoined with AND, OR and NOT conjunctions.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of content to return. The service may return fewer than this value. If unspecified, at most 10 content will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous ListContent call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListContent must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/content", + "response": { + "$ref": "GoogleCloudDataplexV1ListContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a content. Only supports full resource update.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}", + "httpMethod": "PATCH", + "id": "dataplex.projects.locations.lakes.content.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "response": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified contentitem resource. Replaces any existing policy.Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.content.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to have Google IAM permission to make this request.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/content/{contentId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.content.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+/content/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "contentitems": { + "methods": { + "create": { + "description": "Create a content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/contentitems", + "httpMethod": "POST", + "id": "dataplex.projects.locations.lakes.contentitems.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/lakes/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/contentitems", + "request": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "response": { + "$ref": "GoogleCloudDataplexV1Content" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a content.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/lakes/{lakesId}/contentitems/{contentitemsId}", "httpMethod": "DELETE", "id": "dataplex.projects.locations.lakes.contentitems.delete", "parameterOrder": [ @@ -2764,7 +3418,7 @@ } } }, - "revision": "20221103", + "revision": "20221113", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -2782,607 +3436,1226 @@ "readOnly": true, "type": "string" }, - "category": { - "description": "The category of issue associated with the action.", + "category": { + "description": "The category of issue associated with the action.", + "enum": [ + "CATEGORY_UNSPECIFIED", + "RESOURCE_MANAGEMENT", + "SECURITY_POLICY", + "DATA_DISCOVERY" + ], + "enumDescriptions": [ + "Unspecified category.", + "Resource management related issues.", + "Security policy related issues.", + "Data and discovery related issues." + ], + "type": "string" + }, + "dataLocations": { + "description": "The list of data locations associated with this action. Cloud Storage locations are represented as URI paths(E.g. gs://bucket/table1/year=2020/month=Jan/). BigQuery locations refer to resource names(E.g. bigquery.googleapis.com/projects/project-id/datasets/dataset-id).", + "items": { + "type": "string" + }, + "type": "array" + }, + "detectTime": { + "description": "The time that the issue was detected.", + "format": "google-datetime", + "type": "string" + }, + "failedSecurityPolicyApply": { + "$ref": "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply", + "description": "Details for issues related to applying security policy." + }, + "incompatibleDataSchema": { + "$ref": "GoogleCloudDataplexV1ActionIncompatibleDataSchema", + "description": "Details for issues related to incompatible schemas detected within data." + }, + "invalidDataFormat": { + "$ref": "GoogleCloudDataplexV1ActionInvalidDataFormat", + "description": "Details for issues related to invalid or unsupported data formats." + }, + "invalidDataOrganization": { + "$ref": "GoogleCloudDataplexV1ActionInvalidDataOrganization", + "description": "Details for issues related to invalid data arrangement." + }, + "invalidDataPartition": { + "$ref": "GoogleCloudDataplexV1ActionInvalidDataPartition", + "description": "Details for issues related to invalid or unsupported data partition structure." + }, + "issue": { + "description": "Detailed description of the issue requiring action.", + "type": "string" + }, + "lake": { + "description": "Output only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", + "readOnly": true, + "type": "string" + }, + "missingData": { + "$ref": "GoogleCloudDataplexV1ActionMissingData", + "description": "Details for issues related to absence of data within managed resources." + }, + "missingResource": { + "$ref": "GoogleCloudDataplexV1ActionMissingResource", + "description": "Details for issues related to absence of a managed resource." + }, + "name": { + "description": "Output only. The relative resource name of the action, of the form: projects/{project}/locations/{location}/lakes/{lake}/actions/{action} projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action} projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}.", + "readOnly": true, + "type": "string" + }, + "unauthorizedResource": { + "$ref": "GoogleCloudDataplexV1ActionUnauthorizedResource", + "description": "Details for issues related to lack of permissions to access data resources." + }, + "zone": { + "description": "Output only. The relative resource name of the zone, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply": { + "description": "Failed to apply security policy to the managed resource(s) under a lake, zone or an asset. For a lake or zone resource, one or more underlying assets has a failure applying security policy to the associated managed resource.", + "id": "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply", + "properties": { + "asset": { + "description": "Resource name of one of the assets with failing security policy application. Populated for a lake or zone resource only.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ActionIncompatibleDataSchema": { + "description": "Action details for incompatible schemas detected by discovery.", + "id": "GoogleCloudDataplexV1ActionIncompatibleDataSchema", + "properties": { + "existingSchema": { + "description": "The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.", + "type": "string" + }, + "newSchema": { + "description": "The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.", + "type": "string" + }, + "sampledDataLocations": { + "description": "The list of data locations sampled and used for format/schema inference.", + "items": { + "type": "string" + }, + "type": "array" + }, + "schemaChange": { + "description": "Whether the action relates to a schema that is incompatible or modified.", + "enum": [ + "SCHEMA_CHANGE_UNSPECIFIED", + "INCOMPATIBLE", + "MODIFIED" + ], + "enumDescriptions": [ + "Schema change unspecified.", + "Newly discovered schema is incompatible with existing schema.", + "Newly discovered schema has changed from existing schema for data in a curated zone." + ], + "type": "string" + }, + "table": { + "description": "The name of the table containing invalid data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ActionInvalidDataFormat": { + "description": "Action details for invalid or unsupported data files detected by discovery.", + "id": "GoogleCloudDataplexV1ActionInvalidDataFormat", + "properties": { + "expectedFormat": { + "description": "The expected data format of the entity.", + "type": "string" + }, + "newFormat": { + "description": "The new unexpected data format within the entity.", + "type": "string" + }, + "sampledDataLocations": { + "description": "The list of data locations sampled and used for format/schema inference.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ActionInvalidDataOrganization": { + "description": "Action details for invalid data arrangement.", + "id": "GoogleCloudDataplexV1ActionInvalidDataOrganization", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1ActionInvalidDataPartition": { + "description": "Action details for invalid or unsupported partitions detected by discovery.", + "id": "GoogleCloudDataplexV1ActionInvalidDataPartition", + "properties": { + "expectedStructure": { + "description": "The issue type of InvalidDataPartition.", + "enum": [ + "PARTITION_STRUCTURE_UNSPECIFIED", + "CONSISTENT_KEYS", + "HIVE_STYLE_KEYS" + ], + "enumDescriptions": [ + "PartitionStructure unspecified.", + "Consistent hive-style partition definition (both raw and curated zone).", + "Hive style partition definition (curated zone only)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ActionMissingData": { + "description": "Action details for absence of data detected by discovery.", + "id": "GoogleCloudDataplexV1ActionMissingData", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1ActionMissingResource": { + "description": "Action details for resource references in assets that cannot be located.", + "id": "GoogleCloudDataplexV1ActionMissingResource", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1ActionUnauthorizedResource": { + "description": "Action details for unauthorized resource issues raised to indicate that the service account associated with the lake instance is not authorized to access or manage the resource associated with an asset.", + "id": "GoogleCloudDataplexV1ActionUnauthorizedResource", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1Asset": { + "description": "An asset represents a cloud resource that is being managed within a lake as a member of a zone.", + "id": "GoogleCloudDataplexV1Asset", + "properties": { + "createTime": { + "description": "Output only. The time when the asset was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the asset.", + "type": "string" + }, + "discoverySpec": { + "$ref": "GoogleCloudDataplexV1AssetDiscoverySpec", + "description": "Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone." + }, + "discoveryStatus": { + "$ref": "GoogleCloudDataplexV1AssetDiscoveryStatus", + "description": "Output only. Status of the discovery feature applied to data referenced by this asset.", + "readOnly": true + }, + "displayName": { + "description": "Optional. User friendly display name.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User defined labels for the asset.", + "type": "object" + }, + "name": { + "description": "Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.", + "readOnly": true, + "type": "string" + }, + "resourceSpec": { + "$ref": "GoogleCloudDataplexV1AssetResourceSpec", + "description": "Required. Specification of the resource that is referenced by this asset." + }, + "resourceStatus": { + "$ref": "GoogleCloudDataplexV1AssetResourceStatus", + "description": "Output only. Status of the resource referenced by this asset.", + "readOnly": true + }, + "securityStatus": { + "$ref": "GoogleCloudDataplexV1AssetSecurityStatus", + "description": "Output only. Status of the security policy applied to resource referenced by this asset.", + "readOnly": true + }, + "state": { + "description": "Output only. Current state of the asset.", "enum": [ - "CATEGORY_UNSPECIFIED", - "RESOURCE_MANAGEMENT", - "SECURITY_POLICY", - "DATA_DISCOVERY" + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "ACTION_REQUIRED" ], "enumDescriptions": [ - "Unspecified category.", - "Resource management related issues.", - "Security policy related issues.", - "Data and discovery related issues." + "State is not specified.", + "Resource is active, i.e., ready to use.", + "Resource is under creation.", + "Resource is under deletion.", + "Resource is active but has unresolved actions." ], + "readOnly": true, "type": "string" }, - "dataLocations": { - "description": "The list of data locations associated with this action. Cloud Storage locations are represented as URI paths(E.g. gs://bucket/table1/year=2020/month=Jan/). BigQuery locations refer to resource names(E.g. bigquery.googleapis.com/projects/project-id/datasets/dataset-id).", - "items": { - "type": "string" - }, - "type": "array" + "uid": { + "description": "Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.", + "readOnly": true, + "type": "string" }, - "detectTime": { - "description": "The time that the issue was detected.", + "updateTime": { + "description": "Output only. The time when the asset was last updated.", "format": "google-datetime", + "readOnly": true, "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1AssetDiscoverySpec": { + "description": "Settings to manage the metadata discovery and publishing for an asset.", + "id": "GoogleCloudDataplexV1AssetDiscoverySpec", + "properties": { + "csvOptions": { + "$ref": "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions", + "description": "Optional. Configuration for CSV data." }, - "failedSecurityPolicyApply": { - "$ref": "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply", - "description": "Details for issues related to applying security policy." - }, - "incompatibleDataSchema": { - "$ref": "GoogleCloudDataplexV1ActionIncompatibleDataSchema", - "description": "Details for issues related to incompatible schemas detected within data." + "enabled": { + "description": "Optional. Whether discovery is enabled.", + "type": "boolean" }, - "invalidDataFormat": { - "$ref": "GoogleCloudDataplexV1ActionInvalidDataFormat", - "description": "Details for issues related to invalid or unsupported data formats." + "excludePatterns": { + "description": "Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.", + "items": { + "type": "string" + }, + "type": "array" }, - "invalidDataOrganization": { - "$ref": "GoogleCloudDataplexV1ActionInvalidDataOrganization", - "description": "Details for issues related to invalid data arrangement." + "includePatterns": { + "description": "Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.", + "items": { + "type": "string" + }, + "type": "array" }, - "invalidDataPartition": { - "$ref": "GoogleCloudDataplexV1ActionInvalidDataPartition", - "description": "Details for issues related to invalid or unsupported data partition structure." + "jsonOptions": { + "$ref": "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions", + "description": "Optional. Configuration for Json data." }, - "issue": { - "description": "Detailed description of the issue requiring action.", + "schedule": { + "description": "Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, \"CRON_TZ=America/New_York 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".", "type": "string" - }, - "lake": { - "description": "Output only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.", - "readOnly": true, + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions": { + "description": "Describe CSV and similar semi-structured data formats.", + "id": "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions", + "properties": { + "delimiter": { + "description": "Optional. The delimiter being used to separate values. This defaults to ','.", "type": "string" }, - "missingData": { - "$ref": "GoogleCloudDataplexV1ActionMissingData", - "description": "Details for issues related to absence of data within managed resources." - }, - "missingResource": { - "$ref": "GoogleCloudDataplexV1ActionMissingResource", - "description": "Details for issues related to absence of a managed resource." + "disableTypeInference": { + "description": "Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.", + "type": "boolean" }, - "name": { - "description": "Output only. The relative resource name of the action, of the form: projects/{project}/locations/{location}/lakes/{lake}/actions/{action} projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action} projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}.", - "readOnly": true, + "encoding": { + "description": "Optional. The character encoding of the data. The default is UTF-8.", "type": "string" }, - "unauthorizedResource": { - "$ref": "GoogleCloudDataplexV1ActionUnauthorizedResource", - "description": "Details for issues related to lack of permissions to access data resources." - }, - "zone": { - "description": "Output only. The relative resource name of the zone, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.", - "readOnly": true, - "type": "string" + "headerRows": { + "description": "Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply": { - "description": "Failed to apply security policy to the managed resource(s) under a lake, zone or an asset. For a lake or zone resource, one or more underlying assets has a failure applying security policy to the associated managed resource.", - "id": "GoogleCloudDataplexV1ActionFailedSecurityPolicyApply", + "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions": { + "description": "Describe JSON data format.", + "id": "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions", "properties": { - "asset": { - "description": "Resource name of one of the assets with failing security policy application. Populated for a lake or zone resource only.", + "disableTypeInference": { + "description": "Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).", + "type": "boolean" + }, + "encoding": { + "description": "Optional. The character encoding of the data. The default is UTF-8.", "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1ActionIncompatibleDataSchema": { - "description": "Action details for incompatible schemas detected by discovery.", - "id": "GoogleCloudDataplexV1ActionIncompatibleDataSchema", + "GoogleCloudDataplexV1AssetDiscoveryStatus": { + "description": "Status of discovery for an asset.", + "id": "GoogleCloudDataplexV1AssetDiscoveryStatus", "properties": { - "existingSchema": { - "description": "The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types.", + "lastRunDuration": { + "description": "The duration of the last discovery run.", + "format": "google-duration", "type": "string" }, - "newSchema": { - "description": "The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types.", + "lastRunTime": { + "description": "The start time of the last discovery run.", + "format": "google-datetime", "type": "string" }, - "sampledDataLocations": { - "description": "The list of data locations sampled and used for format/schema inference.", - "items": { - "type": "string" - }, - "type": "array" + "message": { + "description": "Additional information about the current state.", + "type": "string" }, - "schemaChange": { - "description": "Whether the action relates to a schema that is incompatible or modified.", + "state": { + "description": "The current status of the discovery feature.", "enum": [ - "SCHEMA_CHANGE_UNSPECIFIED", - "INCOMPATIBLE", - "MODIFIED" + "STATE_UNSPECIFIED", + "SCHEDULED", + "IN_PROGRESS", + "PAUSED", + "DISABLED" ], "enumDescriptions": [ - "Schema change unspecified.", - "Newly discovered schema is incompatible with existing schema.", - "Newly discovered schema has changed from existing schema for data in a curated zone." + "State is unspecified.", + "Discovery for the asset is scheduled.", + "Discovery for the asset is running.", + "Discovery for the asset is currently paused (e.g. due to a lack of available resources). It will be automatically resumed.", + "Discovery for the asset is disabled." ], "type": "string" }, - "table": { - "description": "The name of the table containing invalid data.", + "stats": { + "$ref": "GoogleCloudDataplexV1AssetDiscoveryStatusStats", + "description": "Data Stats of the asset reported by discovery." + }, + "updateTime": { + "description": "Last update time of the status.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1AssetDiscoveryStatusStats": { + "description": "The aggregated data statistics for the asset reported by discovery.", + "id": "GoogleCloudDataplexV1AssetDiscoveryStatusStats", + "properties": { + "dataItems": { + "description": "The count of data items within the referenced resource.", + "format": "int64", + "type": "string" + }, + "dataSize": { + "description": "The number of stored data bytes within the referenced resource.", + "format": "int64", + "type": "string" + }, + "filesets": { + "description": "The count of fileset entities within the referenced resource.", + "format": "int64", + "type": "string" + }, + "tables": { + "description": "The count of table entities within the referenced resource.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1AssetResourceSpec": { + "description": "Identifies the cloud resource that is referenced by this asset.", + "id": "GoogleCloudDataplexV1AssetResourceSpec", + "properties": { + "name": { + "description": "Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}", + "type": "string" + }, + "type": { + "description": "Required. Immutable. Type of resource.", + "enum": [ + "TYPE_UNSPECIFIED", + "STORAGE_BUCKET", + "BIGQUERY_DATASET" + ], + "enumDescriptions": [ + "Type not specified.", + "Cloud Storage bucket.", + "BigQuery dataset." + ], "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1ActionInvalidDataFormat": { - "description": "Action details for invalid or unsupported data files detected by discovery.", - "id": "GoogleCloudDataplexV1ActionInvalidDataFormat", + "GoogleCloudDataplexV1AssetResourceStatus": { + "description": "Status of the resource referenced by an asset.", + "id": "GoogleCloudDataplexV1AssetResourceStatus", "properties": { - "expectedFormat": { - "description": "The expected data format of the entity.", + "message": { + "description": "Additional information about the current state.", "type": "string" }, - "newFormat": { - "description": "The new unexpected data format within the entity.", + "state": { + "description": "The current state of the managed resource.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "ERROR" + ], + "enumDescriptions": [ + "State unspecified.", + "Resource does not have any errors.", + "Resource has errors." + ], "type": "string" }, - "sampledDataLocations": { - "description": "The list of data locations sampled and used for format/schema inference.", - "items": { - "type": "string" - }, - "type": "array" + "updateTime": { + "description": "Last update time of the status.", + "format": "google-datetime", + "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1ActionInvalidDataOrganization": { - "description": "Action details for invalid data arrangement.", - "id": "GoogleCloudDataplexV1ActionInvalidDataOrganization", - "properties": {}, - "type": "object" - }, - "GoogleCloudDataplexV1ActionInvalidDataPartition": { - "description": "Action details for invalid or unsupported partitions detected by discovery.", - "id": "GoogleCloudDataplexV1ActionInvalidDataPartition", + "GoogleCloudDataplexV1AssetSecurityStatus": { + "description": "Security policy status of the asset. Data security policy, i.e., readers, writers \u0026 owners, should be specified in the lake/zone/asset IAM policy.", + "id": "GoogleCloudDataplexV1AssetSecurityStatus", "properties": { - "expectedStructure": { - "description": "The issue type of InvalidDataPartition.", + "message": { + "description": "Additional information about the current state.", + "type": "string" + }, + "state": { + "description": "The current state of the security policy applied to the attached resource.", "enum": [ - "PARTITION_STRUCTURE_UNSPECIFIED", - "CONSISTENT_KEYS", - "HIVE_STYLE_KEYS" + "STATE_UNSPECIFIED", + "READY", + "APPLYING", + "ERROR" ], "enumDescriptions": [ - "PartitionStructure unspecified.", - "Consistent hive-style partition definition (both raw and curated zone).", - "Hive style partition definition (curated zone only)." + "State unspecified.", + "Security policy has been successfully applied to the attached resource.", + "Security policy is in the process of being applied to the attached resource.", + "Security policy could not be applied to the attached resource due to errors." ], "type": "string" + }, + "updateTime": { + "description": "Last update time of the status.", + "format": "google-datetime", + "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1ActionMissingData": { - "description": "Action details for absence of data detected by discovery.", - "id": "GoogleCloudDataplexV1ActionMissingData", - "properties": {}, - "type": "object" - }, - "GoogleCloudDataplexV1ActionMissingResource": { - "description": "Action details for resource references in assets that cannot be located.", - "id": "GoogleCloudDataplexV1ActionMissingResource", - "properties": {}, + "GoogleCloudDataplexV1AssetStatus": { + "description": "Aggregated status of the underlying assets of a lake or zone.", + "id": "GoogleCloudDataplexV1AssetStatus", + "properties": { + "activeAssets": { + "description": "Number of active assets.", + "format": "int32", + "type": "integer" + }, + "securityPolicyApplyingAssets": { + "description": "Number of assets that are in process of updating the security policy on attached resources.", + "format": "int32", + "type": "integer" + }, + "updateTime": { + "description": "Last update time of the status.", + "format": "google-datetime", + "type": "string" + } + }, "type": "object" }, - "GoogleCloudDataplexV1ActionUnauthorizedResource": { - "description": "Action details for unauthorized resource issues raised to indicate that the service account associated with the lake instance is not authorized to access or manage the resource associated with an asset.", - "id": "GoogleCloudDataplexV1ActionUnauthorizedResource", + "GoogleCloudDataplexV1CancelJobRequest": { + "description": "Cancel task jobs.", + "id": "GoogleCloudDataplexV1CancelJobRequest", "properties": {}, "type": "object" }, - "GoogleCloudDataplexV1Asset": { - "description": "An asset represents a cloud resource that is being managed within a lake as a member of a zone.", - "id": "GoogleCloudDataplexV1Asset", + "GoogleCloudDataplexV1Content": { + "description": "Content represents a user-visible notebook or a sql script", + "id": "GoogleCloudDataplexV1Content", "properties": { "createTime": { - "description": "Output only. The time when the asset was created.", + "description": "Output only. Content creation time.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "description": { - "description": "Optional. Description of the asset.", + "dataText": { + "description": "Required. Content data in string format.", "type": "string" }, - "discoverySpec": { - "$ref": "GoogleCloudDataplexV1AssetDiscoverySpec", - "description": "Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone." - }, - "discoveryStatus": { - "$ref": "GoogleCloudDataplexV1AssetDiscoveryStatus", - "description": "Output only. Status of the discovery feature applied to data referenced by this asset.", - "readOnly": true - }, - "displayName": { - "description": "Optional. User friendly display name.", + "description": { + "description": "Optional. Description of the content.", "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. User defined labels for the asset.", + "description": "Optional. User defined labels for the content.", "type": "object" }, "name": { - "description": "Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.", + "description": "Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", "readOnly": true, "type": "string" }, - "resourceSpec": { - "$ref": "GoogleCloudDataplexV1AssetResourceSpec", - "description": "Required. Specification of the resource that is referenced by this asset." + "notebook": { + "$ref": "GoogleCloudDataplexV1ContentNotebook", + "description": "Notebook related configurations." }, - "resourceStatus": { - "$ref": "GoogleCloudDataplexV1AssetResourceStatus", - "description": "Output only. Status of the resource referenced by this asset.", - "readOnly": true + "path": { + "description": "Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.", + "type": "string" }, - "securityStatus": { - "$ref": "GoogleCloudDataplexV1AssetSecurityStatus", - "description": "Output only. Status of the security policy applied to resource referenced by this asset.", - "readOnly": true + "sqlScript": { + "$ref": "GoogleCloudDataplexV1ContentSqlScript", + "description": "Sql Script related configurations." }, - "state": { - "description": "Output only. Current state of the asset.", + "uid": { + "description": "Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the content was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ContentNotebook": { + "description": "Configuration for Notebook content.", + "id": "GoogleCloudDataplexV1ContentNotebook", + "properties": { + "kernelType": { + "description": "Required. Kernel Type of the notebook.", "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "CREATING", - "DELETING", - "ACTION_REQUIRED" + "KERNEL_TYPE_UNSPECIFIED", + "PYTHON3" ], "enumDescriptions": [ - "State is not specified.", - "Resource is active, i.e., ready to use.", - "Resource is under creation.", - "Resource is under deletion.", - "Resource is active but has unresolved actions." + "Kernel Type unspecified.", + "Python 3 Kernel." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ContentSqlScript": { + "description": "Configuration for the Sql Script content.", + "id": "GoogleCloudDataplexV1ContentSqlScript", + "properties": { + "engine": { + "description": "Required. Query Engine to be used for the Sql Query.", + "enum": [ + "QUERY_ENGINE_UNSPECIFIED", + "SPARK" + ], + "enumDescriptions": [ + "Value was unspecified.", + "Spark SQL Query." ], - "readOnly": true, "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResult": { + "description": "DataProfileResult defines the output of DataProfileScan. Each field of the table will have field type specific profile result.", + "id": "GoogleCloudDataplexV1DataProfileResult", + "properties": { + "profile": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfile", + "description": "This represents the profile information per field." }, - "uid": { - "description": "Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.", - "readOnly": true, + "rowCount": { + "description": "The count of all rows in the sampled data. Return 0, if zero rows.", + "format": "int64", "type": "string" }, - "updateTime": { - "description": "Output only. The time when the asset was last updated.", - "format": "google-datetime", - "readOnly": true, + "scannedData": { + "$ref": "GoogleCloudDataplexV1ScannedData", + "description": "The data scanned for this profile." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultProfile": { + "description": "Profile information describing the structure and layout of the data and contains the profile info.", + "id": "GoogleCloudDataplexV1DataProfileResultProfile", + "properties": { + "fields": { + "description": "The sequence of fields describing data in table entities.", + "items": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileField" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultProfileField": { + "description": "Represents a column field within a table schema.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileField", + "properties": { + "mode": { + "description": "The mode of the field. Its value will be: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field.", + "type": "string" + }, + "name": { + "description": "The name of the field.", "type": "string" + }, + "profile": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo", + "description": "The profile information for the corresponding field." + }, + "type": { + "description": "The field data type. Possible values include: STRING BYTE INT64 INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME NULL RECORD", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo": { + "description": "ProfileInfo defines the profile information for each schema field type.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo", + "properties": { + "distinctRatio": { + "description": "The ratio of rows that are distinct against the rows in the sampled data.", + "format": "double", + "type": "number" + }, + "doubleProfile": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo", + "description": "The corresponding double field profile." + }, + "integerProfile": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo", + "description": "The corresponding integer field profile." + }, + "nullRatio": { + "description": "The ratio of null rows against the rows in the sampled data.", + "format": "double", + "type": "number" + }, + "stringProfile": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo", + "description": "The corresponding string field profile." + }, + "topNValues": { + "description": "The array of top N values of the field in the sampled data. Currently N is set as 10 or equal to distinct values in the field, whichever is smaller. This will be optional for complex non-groupable data-types such as JSON, ARRAY, JSON, STRUCT.", + "items": { + "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetDiscoverySpec": { - "description": "Settings to manage the metadata discovery and publishing for an asset.", - "id": "GoogleCloudDataplexV1AssetDiscoverySpec", + "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo": { + "description": "DoubleFieldInfo defines output for any double type field.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo", "properties": { - "csvOptions": { - "$ref": "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions", - "description": "Optional. Configuration for CSV data." - }, - "enabled": { - "description": "Optional. Whether discovery is enabled.", - "type": "boolean" - }, - "excludePatterns": { - "description": "Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.", + "average": { + "description": "The average of non-null values of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + }, + "max": { + "description": "The maximum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + }, + "min": { + "description": "The minimum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + }, + "quartiles": { + "description": "A quartile divide the numebr of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. So, here the quartiles is provided as an ordered list of quartile values, occurring in order Q1, median, Q3.", "items": { - "type": "string" + "format": "double", + "type": "number" }, "type": "array" }, - "includePatterns": { - "description": "Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.", + "standardDeviation": { + "description": "The standard deviation of non-null of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo": { + "description": "IntegerFieldInfo defines output for any integer type field.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo", + "properties": { + "average": { + "description": "The average of non-null values of integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + }, + "max": { + "description": "The maximum value of an integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "int64", + "type": "string" + }, + "min": { + "description": "The minimum value of an integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "int64", + "type": "string" + }, + "quartiles": { + "description": "A quartile divide the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. So, here the quartiles is provided as an ordered list of quartile values, occurring in order Q1, median, Q3.", "items": { + "format": "int64", "type": "string" }, "type": "array" }, - "jsonOptions": { - "$ref": "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions", - "description": "Optional. Configuration for Json data." + "standardDeviation": { + "description": "The standard deviation of non-null of integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo": { + "description": "StringFieldInfo defines output info for any string type field.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo", + "properties": { + "averageLength": { + "description": "The average length of a string field in the sampled data. Optional if zero non-null rows.", + "format": "double", + "type": "number" }, - "schedule": { - "description": "Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, \"CRON_TZ=America/New_York 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".", + "maxLength": { + "description": "The maximum length of a string field in the sampled data. Optional if zero non-null rows.", + "format": "int64", + "type": "string" + }, + "minLength": { + "description": "The minimum length of the string field in the sampled data. Optional if zero non-null rows.", + "format": "int64", "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions": { - "description": "Describe CSV and similar semi-structured data formats.", - "id": "GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions", + "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue": { + "description": "The TopNValue defines the structure of output of top N values of a field.", + "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue", "properties": { - "delimiter": { - "description": "Optional. The delimiter being used to separate values. This defaults to ','.", + "count": { + "description": "The frequency count of the corresponding value in the field.", + "format": "int64", "type": "string" }, - "disableTypeInference": { - "description": "Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.", - "type": "boolean" - }, - "encoding": { - "description": "Optional. The character encoding of the data. The default is UTF-8.", + "value": { + "description": "The value is the string value of the actual value from the field.", "type": "string" - }, - "headerRows": { - "description": "Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.", - "format": "int32", - "type": "integer" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions": { - "description": "Describe JSON data format.", - "id": "GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions", + "GoogleCloudDataplexV1DataProfileSpec": { + "description": "DataProfileScan related setting.", + "id": "GoogleCloudDataplexV1DataProfileSpec", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityDimensionResult": { + "description": "DataQualityDimensionResult provides a more detailed, per-dimension level view of the results.", + "id": "GoogleCloudDataplexV1DataQualityDimensionResult", "properties": { - "disableTypeInference": { - "description": "Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).", + "passed": { + "description": "Whether the dimension passed or failed.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityResult": { + "description": "The output of a DataQualityScan.", + "id": "GoogleCloudDataplexV1DataQualityResult", + "properties": { + "dimensions": { + "description": "A list of results at the dimension-level.", + "items": { + "$ref": "GoogleCloudDataplexV1DataQualityDimensionResult" + }, + "type": "array" + }, + "passed": { + "description": "Overall data quality result -- true if all rules passed.", "type": "boolean" }, - "encoding": { - "description": "Optional. The character encoding of the data. The default is UTF-8.", + "rowCount": { + "description": "The count of rows processed.", + "format": "int64", "type": "string" + }, + "rules": { + "description": "A list of all the rules in a job, and their results.", + "items": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleResult" + }, + "type": "array" + }, + "scannedData": { + "$ref": "GoogleCloudDataplexV1ScannedData", + "description": "The data scanned for this result." } }, "type": "object" }, - "GoogleCloudDataplexV1AssetDiscoveryStatus": { - "description": "Status of discovery for an asset.", - "id": "GoogleCloudDataplexV1AssetDiscoveryStatus", + "GoogleCloudDataplexV1DataQualityRule": { + "description": "A rule captures data quality intent about a data source.", + "id": "GoogleCloudDataplexV1DataQualityRule", "properties": { - "lastRunDuration": { - "description": "The duration of the last discovery run.", - "format": "google-duration", + "column": { + "description": "Optional. The unnested column which this rule is evaluated against.", "type": "string" }, - "lastRunTime": { - "description": "The start time of the last discovery run.", - "format": "google-datetime", + "dimension": { + "description": "Required. The dimension a rule belongs to. Results are also aggregated at the dimension-level. Supported dimensions are \"COMPLETENESS\", \"ACCURACY\", \"CONSISTENCY\", \"VALIDITY\", \"UNIQUENESS\", \"INTEGRITY\"", "type": "string" }, - "message": { - "description": "Additional information about the current state.", + "ignoreNull": { + "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules.", + "type": "boolean" + }, + "nonNullExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleNonNullExpectation", + "description": "ColumnMap rule which evaluates whether each column value is null." + }, + "rangeExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleRangeExpectation", + "description": "ColumnMap rule which evaluates whether each column value lies between a specified range." + }, + "regexExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleRegexExpectation", + "description": "ColumnMap rule which evaluates whether each column value matches a specified regex." + }, + "rowConditionExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation", + "description": "Table rule which evaluates whether each row passes the specified condition." + }, + "setExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleSetExpectation", + "description": "ColumnMap rule which evaluates whether each column value is contained by a specified set." + }, + "statisticRangeExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", + "description": "ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range." + }, + "tableConditionExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation", + "description": "Table rule which evaluates whether the provided expression is true." + }, + "threshold": { + "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule. Default = 1.0", + "format": "double", + "type": "number" + }, + "uniquenessExpectation": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation", + "description": "ColumnAggregate rule which evaluates whether the column has duplicates." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityRuleNonNullExpectation": { + "description": "Evaluates whether each column value is null.", + "id": "GoogleCloudDataplexV1DataQualityRuleNonNullExpectation", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityRuleRangeExpectation": { + "description": "Evaluates whether each column value lies between a specified range.", + "id": "GoogleCloudDataplexV1DataQualityRuleRangeExpectation", + "properties": { + "maxValue": { + "description": "Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.", "type": "string" }, - "state": { - "description": "The current status of the discovery feature.", - "enum": [ - "STATE_UNSPECIFIED", - "SCHEDULED", - "IN_PROGRESS", - "PAUSED", - "DISABLED" - ], - "enumDescriptions": [ - "State is unspecified.", - "Discovery for the asset is scheduled.", - "Discovery for the asset is running.", - "Discovery for the asset is currently paused (e.g. due to a lack of available resources). It will be automatically resumed.", - "Discovery for the asset is disabled." - ], + "minValue": { + "description": "Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.", "type": "string" }, - "stats": { - "$ref": "GoogleCloudDataplexV1AssetDiscoveryStatusStats", - "description": "Data Stats of the asset reported by discovery." + "strictMaxEnabled": { + "description": "Optional. Whether each value needs to be strictly lesser than ('\u003c') the maximum, or if equality is allowed. Only relevant if a max_value has been defined. Default = false.", + "type": "boolean" }, - "updateTime": { - "description": "Last update time of the status.", - "format": "google-datetime", + "strictMinEnabled": { + "description": "Optional. Whether each value needs to be strictly greater than ('\u003e') the minimum, or if equality is allowed. Only relevant if a min_value has been defined. Default = false.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityRuleRegexExpectation": { + "description": "Evaluates whether each column value matches a specified regex.", + "id": "GoogleCloudDataplexV1DataQualityRuleRegexExpectation", + "properties": { + "regex": { "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetDiscoveryStatusStats": { - "description": "The aggregated data statistics for the asset reported by discovery.", - "id": "GoogleCloudDataplexV1AssetDiscoveryStatusStats", + "GoogleCloudDataplexV1DataQualityRuleResult": { + "description": "DataQualityRuleResult provides a more detailed, per-rule level view of the results.", + "id": "GoogleCloudDataplexV1DataQualityRuleResult", "properties": { - "dataItems": { - "description": "The count of data items within the referenced resource.", + "evaluatedCount": { + "description": "The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR (2) exclude null rows from the evaluated_count, by setting ignore_nulls = true", "format": "int64", "type": "string" }, - "dataSize": { - "description": "The number of stored data bytes within the referenced resource.", - "format": "int64", + "failingRowsQuery": { + "description": "The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules.", "type": "string" }, - "filesets": { - "description": "The count of fileset entities within the referenced resource.", + "nullCount": { + "description": "The number of rows with null values in the specified column.", "format": "int64", "type": "string" }, - "tables": { - "description": "The count of table entities within the referenced resource.", + "passRatio": { + "description": "The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules.", + "format": "double", + "type": "number" + }, + "passed": { + "description": "Whether the rule passed or failed.", + "type": "boolean" + }, + "passedCount": { + "description": "The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules.", "format": "int64", "type": "string" + }, + "rule": { + "$ref": "GoogleCloudDataplexV1DataQualityRule", + "description": "The rule specified in the DataQualitySpec, as is." } }, "type": "object" }, - "GoogleCloudDataplexV1AssetResourceSpec": { - "description": "Identifies the cloud resource that is referenced by this asset.", - "id": "GoogleCloudDataplexV1AssetResourceSpec", + "GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation": { + "description": "Evaluates whether each row passes the specified condition. The SQL expression needs to use BigQuery standard SQL syntax and should produce a boolean per row as the result. Example: col1 \u003e= 0 AND col2 \u003c 10", + "id": "GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation", "properties": { - "name": { - "description": "Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}", - "type": "string" - }, - "type": { - "description": "Required. Immutable. Type of resource.", - "enum": [ - "TYPE_UNSPECIFIED", - "STORAGE_BUCKET", - "BIGQUERY_DATASET" - ], - "enumDescriptions": [ - "Type not specified.", - "Cloud Storage bucket.", - "BigQuery dataset." - ], + "sqlExpression": { "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetResourceStatus": { - "description": "Status of the resource referenced by an asset.", - "id": "GoogleCloudDataplexV1AssetResourceStatus", + "GoogleCloudDataplexV1DataQualityRuleSetExpectation": { + "description": "Evaluates whether each column value is contained by a specified set.", + "id": "GoogleCloudDataplexV1DataQualityRuleSetExpectation", "properties": { - "message": { - "description": "Additional information about the current state.", - "type": "string" - }, - "state": { - "description": "The current state of the managed resource.", - "enum": [ - "STATE_UNSPECIFIED", - "READY", - "ERROR" - ], - "enumDescriptions": [ - "State unspecified.", - "Resource does not have any errors.", - "Resource has errors." - ], - "type": "string" - }, - "updateTime": { - "description": "Last update time of the status.", - "format": "google-datetime", - "type": "string" + "values": { + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDataplexV1AssetSecurityStatus": { - "description": "Security policy status of the asset. Data security policy, i.e., readers, writers \u0026 owners, should be specified in the lake/zone/asset IAM policy.", - "id": "GoogleCloudDataplexV1AssetSecurityStatus", + "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation": { + "description": "Evaluates whether the column aggregate statistic lies between a specified range.", + "id": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", "properties": { - "message": { - "description": "Additional information about the current state.", + "maxValue": { + "description": "The maximum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.", "type": "string" }, - "state": { - "description": "The current state of the security policy applied to the attached resource.", + "minValue": { + "description": "The minimum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.", + "type": "string" + }, + "statistic": { "enum": [ - "STATE_UNSPECIFIED", - "READY", - "APPLYING", - "ERROR" + "STATISTIC_UNDEFINED", + "MEAN", + "MIN", + "MAX" ], "enumDescriptions": [ - "State unspecified.", - "Security policy has been successfully applied to the attached resource.", - "Security policy is in the process of being applied to the attached resource.", - "Security policy could not be applied to the attached resource due to errors." + "Unspecified statistic type", + "Evaluate the column mean", + "Evaluate the column min", + "Evaluate the column max" ], - "type": "string" - }, - "updateTime": { - "description": "Last update time of the status.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDataplexV1AssetStatus": { - "description": "Aggregated status of the underlying assets of a lake or zone.", - "id": "GoogleCloudDataplexV1AssetStatus", - "properties": { - "activeAssets": { - "description": "Number of active assets.", - "format": "int32", - "type": "integer" - }, - "securityPolicyApplyingAssets": { - "description": "Number of assets that are in process of updating the security policy on attached resources.", - "format": "int32", - "type": "integer" + "type": "string" }, - "updateTime": { - "description": "Last update time of the status.", - "format": "google-datetime", + "strictMaxEnabled": { + "description": "Whether column statistic needs to be strictly lesser than ('\u003c') the maximum, or if equality is allowed. Only relevant if a max_value has been defined. Default = false.", + "type": "boolean" + }, + "strictMinEnabled": { + "description": "Whether column statistic needs to be strictly greater than ('\u003e') the minimum, or if equality is allowed. Only relevant if a min_value has been defined. Default = false.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation": { + "description": "Evaluates whether the provided expression is true. The SQL expression needs to use BigQuery standard SQL syntax and should produce a scalar boolean result. Example: MIN(col1) \u003e= 0", + "id": "GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation", + "properties": { + "sqlExpression": { "type": "string" } }, "type": "object" }, - "GoogleCloudDataplexV1CancelJobRequest": { - "description": "Cancel task jobs.", - "id": "GoogleCloudDataplexV1CancelJobRequest", + "GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation": { + "description": "Evaluates whether the column has duplicates.", + "id": "GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation", "properties": {}, "type": "object" }, - "GoogleCloudDataplexV1Content": { - "description": "Content represents a user-visible notebook or a sql script", - "id": "GoogleCloudDataplexV1Content", + "GoogleCloudDataplexV1DataQualitySpec": { + "description": "DataQualityScan related setting.", + "id": "GoogleCloudDataplexV1DataQualitySpec", + "properties": { + "rules": { + "description": "The list of rules to evaluate against a data source. At least one rule is required.", + "items": { + "$ref": "GoogleCloudDataplexV1DataQualityRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataScan": { + "description": "Represents a user-visible job which provides the insights for the related data source. For examples: - Data Quality: generates queries based on the rules and run against the data to get data quality check results. - Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc).", + "id": "GoogleCloudDataplexV1DataScan", "properties": { "createTime": { - "description": "Output only. Content creation time.", + "description": "Output only. The time when the scan was created.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "dataText": { - "description": "Required. Content data in string format.", - "type": "string" + "data": { + "$ref": "GoogleCloudDataplexV1DataSource", + "description": "Required. The data source for DataScan." + }, + "dataProfileResult": { + "$ref": "GoogleCloudDataplexV1DataProfileResult", + "description": "Output only. The result of the data profile scan.", + "readOnly": true + }, + "dataProfileSpec": { + "$ref": "GoogleCloudDataplexV1DataProfileSpec", + "description": "DataProfileScan related setting." + }, + "dataQualityResult": { + "$ref": "GoogleCloudDataplexV1DataQualityResult", + "description": "Output only. The result of the data quality scan.", + "readOnly": true + }, + "dataQualitySpec": { + "$ref": "GoogleCloudDataplexV1DataQualitySpec", + "description": "DataQualityScan related setting." }, "description": { - "description": "Optional. Description of the content.", + "description": "Optional. Description of the scan. * Must be between 1-1024 characters.", + "type": "string" + }, + "displayName": { + "description": "Optional. User friendly display name. * Must be between 1-256 characters.", "type": "string" }, + "executionSpec": { + "$ref": "GoogleCloudDataplexV1DataScanExecutionSpec", + "description": "Optional. DataScan execution settings. If not specified, the fields under it will use their default values." + }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. User defined labels for the content.", + "description": "Optional. User-defined labels for the scan.", "type": "object" }, "name": { - "description": "Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}", + "description": "Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region.", "readOnly": true, "type": "string" }, - "notebook": { - "$ref": "GoogleCloudDataplexV1ContentNotebook", - "description": "Notebook related configurations." - }, - "path": { - "description": "Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.", + "state": { + "description": "Output only. Current state of the DataScan.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "ACTION_REQUIRED" + ], + "enumDescriptions": [ + "State is not specified.", + "Resource is active, i.e., ready to use.", + "Resource is under creation.", + "Resource is under deletion.", + "Resource is active but has unresolved actions." + ], + "readOnly": true, "type": "string" }, - "sqlScript": { - "$ref": "GoogleCloudDataplexV1ContentSqlScript", - "description": "Sql Script related configurations." + "type": { + "description": "Output only. The type of DataScan.", + "enum": [ + "DATA_SCAN_TYPE_UNSPECIFIED", + "DATA_QUALITY", + "DATA_PROFILE" + ], + "enumDescriptions": [ + "The DataScan Type is unspecified.", + "Data Quality Scan.", + "Data Profile Scan." + ], + "readOnly": true, + "type": "string" }, "uid": { - "description": "Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.", + "description": "Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The time when the content was last updated.", + "description": "Output only. The time when the scan was last updated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -3390,44 +4663,6 @@ }, "type": "object" }, - "GoogleCloudDataplexV1ContentNotebook": { - "description": "Configuration for Notebook content.", - "id": "GoogleCloudDataplexV1ContentNotebook", - "properties": { - "kernelType": { - "description": "Required. Kernel Type of the notebook.", - "enum": [ - "KERNEL_TYPE_UNSPECIFIED", - "PYTHON3" - ], - "enumDescriptions": [ - "Kernel Type unspecified.", - "Python 3 Kernel." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDataplexV1ContentSqlScript": { - "description": "Configuration for the Sql Script content.", - "id": "GoogleCloudDataplexV1ContentSqlScript", - "properties": { - "engine": { - "description": "Required. Query Engine to be used for the Sql Query.", - "enum": [ - "QUERY_ENGINE_UNSPECIFIED", - "SPARK" - ], - "enumDescriptions": [ - "Value was unspecified.", - "Spark SQL Query." - ], - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDataplexV1DataScanEvent": { "description": "These messages contain information about the execution of a datascan. The monitored resource is 'DataScan'", "id": "GoogleCloudDataplexV1DataScanEvent", @@ -3564,6 +4799,124 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataScanExecutionSpec": { + "description": "DataScan execution settings.", + "id": "GoogleCloudDataplexV1DataScanExecutionSpec", + "properties": { + "field": { + "description": "Immutable. The unnested field (Date or Timestamp) that contains values that monotonically increase over time.", + "type": "string" + }, + "trigger": { + "$ref": "GoogleCloudDataplexV1Trigger", + "description": "Optional. Spec related to how often and when a scan should be triggered. If not specified, the default is OnDemand, which means the scan will not run until the user calls RunDataScan API." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataScanJob": { + "description": "A DataScanJob represents an instance of a data scan.", + "id": "GoogleCloudDataplexV1DataScanJob", + "properties": { + "dataProfileResult": { + "$ref": "GoogleCloudDataplexV1DataProfileResult", + "description": "Output only. The result of the data profile scan.", + "readOnly": true + }, + "dataProfileSpec": { + "$ref": "GoogleCloudDataplexV1DataProfileSpec", + "description": "Output only. DataProfileScan related setting.", + "readOnly": true + }, + "dataQualityResult": { + "$ref": "GoogleCloudDataplexV1DataQualityResult", + "description": "Output only. The result of the data quality scan.", + "readOnly": true + }, + "dataQualitySpec": { + "$ref": "GoogleCloudDataplexV1DataQualitySpec", + "description": "Output only. DataQualityScan related setting.", + "readOnly": true + }, + "endTime": { + "description": "Output only. The time when the DataScanJob ended.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Output only. Additional information about the current state.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The relative resource name of the DataScanJob, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the DataScanJob was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Execution state for the DataScanJob.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "CANCELING", + "CANCELLED", + "SUCCEEDED", + "FAILED", + "PENDING" + ], + "enumDescriptions": [ + "The DataScanJob state is unspecified.", + "The DataScanJob is running.", + "The DataScanJob is canceling.", + "The DataScanJob cancellation was successful.", + "The DataScanJob completed successfully.", + "The DataScanJob is no longer running due to an error.", + "The DataScanJob has been created but not started to run yet." + ], + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Output only. The type of the parent DataScan.", + "enum": [ + "DATA_SCAN_TYPE_UNSPECIFIED", + "DATA_QUALITY", + "DATA_PROFILE" + ], + "enumDescriptions": [ + "The DataScan Type is unspecified.", + "Data Quality Scan.", + "Data Profile Scan." + ], + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. System generated globally unique ID for the DataScanJob.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataSource": { + "description": "The data source for DataScan.", + "id": "GoogleCloudDataplexV1DataSource", + "properties": { + "entity": { + "description": "Immutable. The dataplex entity that contains the data for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DiscoveryEvent": { "description": "The payload associated with Discovery data processing.", "id": "GoogleCloudDataplexV1DiscoveryEvent", @@ -4385,6 +5738,49 @@ }, "type": "object" }, + "GoogleCloudDataplexV1ListDataScanJobsResponse": { + "description": "List DataScanJobs response.", + "id": "GoogleCloudDataplexV1ListDataScanJobsResponse", + "properties": { + "dataScanJobs": { + "description": "DataScanJobs (metadata only) under a given dataScan.", + "items": { + "$ref": "GoogleCloudDataplexV1DataScanJob" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ListDataScansResponse": { + "description": "List dataScans response.", + "id": "GoogleCloudDataplexV1ListDataScansResponse", + "properties": { + "dataScans": { + "description": "DataScans (metadata only) under the given parent location.", + "items": { + "$ref": "GoogleCloudDataplexV1DataScan" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1ListEntitiesResponse": { "description": "List metadata entities response.", "id": "GoogleCloudDataplexV1ListEntitiesResponse", @@ -4614,6 +6010,53 @@ }, "type": "object" }, + "GoogleCloudDataplexV1RunDataScanRequest": { + "description": "Run DataScan Request", + "id": "GoogleCloudDataplexV1RunDataScanRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1RunDataScanResponse": { + "description": "Run DataScan Response.", + "id": "GoogleCloudDataplexV1RunDataScanResponse", + "properties": { + "job": { + "$ref": "GoogleCloudDataplexV1DataScanJob", + "description": "DataScanJob created by RunDataScan API." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ScannedData": { + "description": "The data scanned during processing (e.g. in incremental DataScan)", + "id": "GoogleCloudDataplexV1ScannedData", + "properties": { + "incrementalField": { + "$ref": "GoogleCloudDataplexV1ScannedDataIncrementalField", + "description": "The range denoted by values of an incremental field" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1ScannedDataIncrementalField": { + "description": "A data range denoted by a pair of start/end values of a field.", + "id": "GoogleCloudDataplexV1ScannedDataIncrementalField", + "properties": { + "end": { + "description": "Value that marks the end of the range", + "type": "string" + }, + "field": { + "description": "The field that contains values which monotonically increases over time (e.g. timestamp).", + "type": "string" + }, + "start": { + "description": "Value that marks the start of the range", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1Schema": { "description": "Schema information describing the structure and layout of the data.", "id": "GoogleCloudDataplexV1Schema", @@ -5358,6 +6801,38 @@ }, "type": "object" }, + "GoogleCloudDataplexV1Trigger": { + "description": "DataScan scheduling and trigger settings.", + "id": "GoogleCloudDataplexV1Trigger", + "properties": { + "onDemand": { + "$ref": "GoogleCloudDataplexV1TriggerOnDemand", + "description": "The scan runs one-time shortly after DataScan Creation." + }, + "schedule": { + "$ref": "GoogleCloudDataplexV1TriggerSchedule", + "description": "The scan is scheduled to run periodically." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1TriggerOnDemand": { + "description": "The scan runs one-time via RunDataScan API.", + "id": "GoogleCloudDataplexV1TriggerOnDemand", + "properties": {}, + "type": "object" + }, + "GoogleCloudDataplexV1TriggerSchedule": { + "description": "The scan is scheduled to run periodically.", + "id": "GoogleCloudDataplexV1TriggerSchedule", + "properties": { + "cron": { + "description": "Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running scans periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or \"TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, \"CRON_TZ=America/New_York 1 * * * *\", or \"TZ=America/New_York 1 * * * *\". This field is required for Schedule scans.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1Zone": { "description": "A zone represents a logical group of related assets within a lake. A zone can be used to map to organizational structure or represent stages of data readiness from raw to curated. It provides managing behavior that is shared or inherited by all contained assets.", "id": "GoogleCloudDataplexV1Zone", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 2c83676356a..7c8d12e50d3 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -151,6 +151,9 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.DataAttributeBindings = NewProjectsLocationsDataAttributeBindingsService(s) + rs.DataScans = NewProjectsLocationsDataScansService(s) + rs.DataTaxonomies = NewProjectsLocationsDataTaxonomiesService(s) rs.Lakes = NewProjectsLocationsLakesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs @@ -159,11 +162,68 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + DataAttributeBindings *ProjectsLocationsDataAttributeBindingsService + + DataScans *ProjectsLocationsDataScansService + + DataTaxonomies *ProjectsLocationsDataTaxonomiesService + Lakes *ProjectsLocationsLakesService Operations *ProjectsLocationsOperationsService } +func NewProjectsLocationsDataAttributeBindingsService(s *Service) *ProjectsLocationsDataAttributeBindingsService { + rs := &ProjectsLocationsDataAttributeBindingsService{s: s} + return rs +} + +type ProjectsLocationsDataAttributeBindingsService struct { + s *Service +} + +func NewProjectsLocationsDataScansService(s *Service) *ProjectsLocationsDataScansService { + rs := &ProjectsLocationsDataScansService{s: s} + rs.Jobs = NewProjectsLocationsDataScansJobsService(s) + return rs +} + +type ProjectsLocationsDataScansService struct { + s *Service + + Jobs *ProjectsLocationsDataScansJobsService +} + +func NewProjectsLocationsDataScansJobsService(s *Service) *ProjectsLocationsDataScansJobsService { + rs := &ProjectsLocationsDataScansJobsService{s: s} + return rs +} + +type ProjectsLocationsDataScansJobsService struct { + s *Service +} + +func NewProjectsLocationsDataTaxonomiesService(s *Service) *ProjectsLocationsDataTaxonomiesService { + rs := &ProjectsLocationsDataTaxonomiesService{s: s} + rs.Attributes = NewProjectsLocationsDataTaxonomiesAttributesService(s) + return rs +} + +type ProjectsLocationsDataTaxonomiesService struct { + s *Service + + Attributes *ProjectsLocationsDataTaxonomiesAttributesService +} + +func NewProjectsLocationsDataTaxonomiesAttributesService(s *Service) *ProjectsLocationsDataTaxonomiesAttributesService { + rs := &ProjectsLocationsDataTaxonomiesAttributesService{s: s} + return rs +} + +type ProjectsLocationsDataTaxonomiesAttributesService struct { + s *Service +} + func NewProjectsLocationsLakesService(s *Service) *ProjectsLocationsLakesService { rs := &ProjectsLocationsLakesService{s: s} rs.Actions = NewProjectsLocationsLakesActionsService(s) @@ -1260,71 +1320,21 @@ func (s *GoogleCloudDataplexV1ContentSqlScript) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DataScanEvent: These messages contain -// information about the execution of a datascan. The monitored resource -// is 'DataScan' -type GoogleCloudDataplexV1DataScanEvent struct { - // DataProfile: Data profile result for data profile type data scan. - DataProfile *GoogleCloudDataplexV1DataScanEventDataProfileResult `json:"dataProfile,omitempty"` - - // DataQuality: Data quality result for data quality type data scan. - DataQuality *GoogleCloudDataplexV1DataScanEventDataQualityResult `json:"dataQuality,omitempty"` - - // DataSource: The data source of the data scan - DataSource string `json:"dataSource,omitempty"` - - // EndTime: The time when the data scan job finished. - EndTime string `json:"endTime,omitempty"` - - // JobId: The identifier of the specific data scan job this log entry is - // for. - JobId string `json:"jobId,omitempty"` - - // Message: The message describing the data scan job event. - Message string `json:"message,omitempty"` - - // Scope: The scope of the data scan (e.g. full, incremental). - // - // Possible values: - // "SCOPE_UNSPECIFIED" - An unspecified scope type. - // "FULL" - Data scan runs on all of the data. - // "INCREMENTAL" - Data scan runs on incremental data. - Scope string `json:"scope,omitempty"` - - // SpecVersion: A version identifier of the spec which was used to - // execute this job. - SpecVersion string `json:"specVersion,omitempty"` - - // StartTime: The time when the data scan job started to run. - StartTime string `json:"startTime,omitempty"` - - // State: The status of the data scan job. - // - // Possible values: - // "STATE_UNSPECIFIED" - Unspecified job state. - // "STARTED" - Data scan started. - // "SUCCEEDED" - Data scan successfully completed. - // "FAILED" - Data scan was unsuccessful. - // "CANCELLED" - Data scan was cancelled. - State string `json:"state,omitempty"` +// GoogleCloudDataplexV1DataProfileResult: DataProfileResult defines the +// output of DataProfileScan. Each field of the table will have field +// type specific profile result. +type GoogleCloudDataplexV1DataProfileResult struct { + // Profile: This represents the profile information per field. + Profile *GoogleCloudDataplexV1DataProfileResultProfile `json:"profile,omitempty"` - // Trigger: The trigger type of the data scan job. - // - // Possible values: - // "TRIGGER_UNSPECIFIED" - An unspecified trigger type. - // "ON_DEMAND" - Data scan triggers on demand. - // "SCHEDULE" - Data scan triggers as per schedule. - Trigger string `json:"trigger,omitempty"` + // RowCount: The count of all rows in the sampled data. Return 0, if + // zero rows. + RowCount int64 `json:"rowCount,omitempty,string"` - // Type: The type of the data scan. - // - // Possible values: - // "SCAN_TYPE_UNSPECIFIED" - An unspecified data scan type. - // "DATA_PROFILE" - Data scan for data profile. - // "DATA_QUALITY" - Data scan for data quality. - Type string `json:"type,omitempty"` + // ScannedData: The data scanned for this profile. + ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataProfile") to + // ForceSendFields is a list of field names (e.g. "Profile") 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 @@ -1332,28 +1342,29 @@ type GoogleCloudDataplexV1DataScanEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataProfile") 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 + // NullFields is a list of field names (e.g. "Profile") 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 *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DataScanEvent +func (s *GoogleCloudDataplexV1DataProfileResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DataScanEventDataProfileResult: Data profile -// result for data scan job. -type GoogleCloudDataplexV1DataScanEventDataProfileResult struct { - // RowCount: The count of rows processed in the data scan job. - RowCount int64 `json:"rowCount,omitempty,string"` +// GoogleCloudDataplexV1DataProfileResultProfile: Profile information +// describing the structure and layout of the data and contains the +// profile info. +type GoogleCloudDataplexV1DataProfileResultProfile struct { + // Fields: The sequence of fields describing data in table entities. + Fields []*GoogleCloudDataplexV1DataProfileResultProfileField `json:"fields,omitempty"` - // ForceSendFields is a list of field names (e.g. "RowCount") to + // ForceSendFields is a list of field names (e.g. "Fields") 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 @@ -1361,8 +1372,8 @@ type GoogleCloudDataplexV1DataScanEventDataProfileResult struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RowCount") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Fields") 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. @@ -1370,28 +1381,32 @@ type GoogleCloudDataplexV1DataScanEventDataProfileResult struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1DataScanEventDataProfileResult) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileResult +func (s *GoogleCloudDataplexV1DataProfileResultProfile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfile raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DataScanEventDataQualityResult: Data quality -// result for data scan job. -type GoogleCloudDataplexV1DataScanEventDataQualityResult struct { - // DimensionPassed: The result of each dimension for data quality - // result. The key of the map is the name of the dimension. The value is - // the bool value depicting whether the dimension result was pass or - // not. - DimensionPassed map[string]bool `json:"dimensionPassed,omitempty"` +// GoogleCloudDataplexV1DataProfileResultProfileField: Represents a +// column field within a table schema. +type GoogleCloudDataplexV1DataProfileResultProfileField struct { + // Mode: The mode of the field. Its value will be: REQUIRED, if it is a + // required field. NULLABLE, if it is an optional field. REPEATED, if it + // is a repeated field. + Mode string `json:"mode,omitempty"` - // Passed: Whether the data quality result was pass or not. - Passed bool `json:"passed,omitempty"` + // Name: The name of the field. + Name string `json:"name,omitempty"` - // RowCount: The count of rows processed in the data scan job. - RowCount int64 `json:"rowCount,omitempty,string"` + // Profile: The profile information for the corresponding field. + Profile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo `json:"profile,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionPassed") to + // Type: The field data type. Possible values include: STRING BYTE INT64 + // INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME + // NULL RECORD + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Mode") 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 @@ -1399,72 +1414,49 @@ type GoogleCloudDataplexV1DataScanEventDataQualityResult struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DimensionPassed") 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. "Mode") 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 *GoogleCloudDataplexV1DataScanEventDataQualityResult) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult +func (s *GoogleCloudDataplexV1DataProfileResultProfileField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileField raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DiscoveryEvent: The payload associated with -// Discovery data processing. -type GoogleCloudDataplexV1DiscoveryEvent struct { - // Action: Details about the action associated with the event. - Action *GoogleCloudDataplexV1DiscoveryEventActionDetails `json:"action,omitempty"` - - // AssetId: The id of the associated asset. - AssetId string `json:"assetId,omitempty"` - - // Config: Details about discovery configuration in effect. - Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"` - - // DataLocation: The data location associated with the event. - DataLocation string `json:"dataLocation,omitempty"` - - // Entity: Details about the entity associated with the event. - Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"` +// GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo: +// ProfileInfo defines the profile information for each schema field +// type. +type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo struct { + // DistinctRatio: The ratio of rows that are distinct against the rows + // in the sampled data. + DistinctRatio float64 `json:"distinctRatio,omitempty"` - // LakeId: The id of the associated lake. - LakeId string `json:"lakeId,omitempty"` + // DoubleProfile: The corresponding double field profile. + DoubleProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo `json:"doubleProfile,omitempty"` - // Message: The log message. - Message string `json:"message,omitempty"` + // IntegerProfile: The corresponding integer field profile. + IntegerProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo `json:"integerProfile,omitempty"` - // Partition: Details about the partition associated with the event. - Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"` + // NullRatio: The ratio of null rows against the rows in the sampled + // data. + NullRatio float64 `json:"nullRatio,omitempty"` - // Type: The type of the event being logged. - // - // Possible values: - // "EVENT_TYPE_UNSPECIFIED" - An unspecified event type. - // "CONFIG" - An event representing discovery configuration in effect. - // "ENTITY_CREATED" - An event representing a metadata entity being - // created. - // "ENTITY_UPDATED" - An event representing a metadata entity being - // updated. - // "ENTITY_DELETED" - An event representing a metadata entity being - // deleted. - // "PARTITION_CREATED" - An event representing a partition being - // created. - // "PARTITION_UPDATED" - An event representing a partition being - // updated. - // "PARTITION_DELETED" - An event representing a partition being - // deleted. - Type string `json:"type,omitempty"` + // StringProfile: The corresponding string field profile. + StringProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo `json:"stringProfile,omitempty"` - // ZoneId: The id of the associated zone. - ZoneId string `json:"zoneId,omitempty"` + // TopNValues: The array of top N values of the field in the sampled + // data. Currently N is set as 10 or equal to distinct values in the + // field, whichever is smaller. This will be optional for complex + // non-groupable data-types such as JSON, ARRAY, JSON, STRUCT. + TopNValues []*GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue `json:"topNValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "Action") to + // ForceSendFields is a list of field names (e.g. "DistinctRatio") 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 @@ -1472,29 +1464,72 @@ type GoogleCloudDataplexV1DiscoveryEvent struct { // 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 + // NullFields is a list of field names (e.g. "DistinctRatio") 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 *GoogleCloudDataplexV1DiscoveryEvent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DiscoveryEvent +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DiscoveryEventActionDetails: Details about the -// action. -type GoogleCloudDataplexV1DiscoveryEventActionDetails struct { - // Type: The type of action. Eg. IncompatibleDataSchema, - // InvalidDataFormat - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo + var s1 struct { + DistinctRatio gensupport.JSONFloat64 `json:"distinctRatio"` + NullRatio gensupport.JSONFloat64 `json:"nullRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DistinctRatio = float64(s1.DistinctRatio) + s.NullRatio = float64(s1.NullRatio) + return nil +} + +// GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFie +// ldInfo: DoubleFieldInfo defines output for any double type field. +type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo struct { + // Average: The average of non-null values of double field in the + // sampled data. Return NaN, if the field has a NaN. Optional if zero + // non-null rows. + Average float64 `json:"average,omitempty"` + + // Max: The maximum value of a double field in the sampled data. Return + // NaN, if the field has a NaN. Optional if zero non-null rows. + Max float64 `json:"max,omitempty"` + + // Min: The minimum value of a double field in the sampled data. Return + // NaN, if the field has a NaN. Optional if zero non-null rows. + Min float64 `json:"min,omitempty"` + + // Quartiles: A quartile divide the numebr of data points into four + // parts, or quarters, of more-or-less equal size. Three main quartiles + // used are: The first quartile (Q1) splits off the lowest 25% of data + // from the highest 75%. It is also known as the lower or 25th empirical + // quartile, as 25% of the data is below this point. The second quartile + // (Q2) is the median of a data set. So, 50% of the data lies below this + // point. The third quartile (Q3) splits off the highest 25% of data + // from the lowest 75%. It is known as the upper or 75th empirical + // quartile, as 75% of the data lies below this point. So, here the + // quartiles is provided as an ordered list of quartile values, + // occurring in order Q1, median, Q3. + Quartiles []float64 `json:"quartiles,omitempty"` + + // StandardDeviation: The standard deviation of non-null of double field + // in the sampled data. Return NaN, if the field has a NaN. Optional if + // zero non-null rows. + StandardDeviation float64 `json:"standardDeviation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Average") 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 @@ -1502,8 +1537,8 @@ type GoogleCloudDataplexV1DiscoveryEventActionDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Average") 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. @@ -1511,22 +1546,67 @@ type GoogleCloudDataplexV1DiscoveryEventActionDetails struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1DiscoveryEventActionDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DiscoveryEventActionDetails +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DiscoveryEventConfigDetails: Details about -// configuration events. -type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct { - // Parameters: A list of discovery configuration parameters in effect. - // The keys are the field paths within DiscoverySpec. Eg. - // includePatterns, excludePatterns, csvOptions.disableTypeInference, - // etc. - Parameters map[string]string `json:"parameters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parameters") to +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo + var s1 struct { + Average gensupport.JSONFloat64 `json:"average"` + Max gensupport.JSONFloat64 `json:"max"` + Min gensupport.JSONFloat64 `json:"min"` + StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Average = float64(s1.Average) + s.Max = float64(s1.Max) + s.Min = float64(s1.Min) + s.StandardDeviation = float64(s1.StandardDeviation) + return nil +} + +// GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFi +// eldInfo: IntegerFieldInfo defines output for any integer type field. +type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo struct { + // Average: The average of non-null values of integer field in the + // sampled data. Return NaN, if the field has a NaN. Optional if zero + // non-null rows. + Average float64 `json:"average,omitempty"` + + // Max: The maximum value of an integer field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null rows. + Max int64 `json:"max,omitempty,string"` + + // Min: The minimum value of an integer field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null rows. + Min int64 `json:"min,omitempty,string"` + + // Quartiles: A quartile divide the number of data points into four + // parts, or quarters, of more-or-less equal size. Three main quartiles + // used are: The first quartile (Q1) splits off the lowest 25% of data + // from the highest 75%. It is also known as the lower or 25th empirical + // quartile, as 25% of the data is below this point. The second quartile + // (Q2) is the median of a data set. So, 50% of the data lies below this + // point. The third quartile (Q3) splits off the highest 25% of data + // from the lowest 75%. It is known as the upper or 75th empirical + // quartile, as 75% of the data lies below this point. So, here the + // quartiles is provided as an ordered list of quartile values, + // occurring in order Q1, median, Q3. + Quartiles googleapi.Int64s `json:"quartiles,omitempty"` + + // StandardDeviation: The standard deviation of non-null of integer + // field in the sampled data. Return NaN, if the field has a NaN. + // Optional if zero non-null rows. + StandardDeviation float64 `json:"standardDeviation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Average") 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 @@ -1534,7 +1614,7 @@ type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parameters") to include in + // NullFields is a list of field names (e.g. "Average") 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 @@ -1543,28 +1623,45 @@ type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1DiscoveryEventConfigDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DiscoveryEventConfigDetails +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DiscoveryEventEntityDetails: Details about the -// entity. -type GoogleCloudDataplexV1DiscoveryEventEntityDetails struct { - // Entity: The name of the entity resource. The name is the - // fully-qualified resource name. - Entity string `json:"entity,omitempty"` +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo + var s1 struct { + Average gensupport.JSONFloat64 `json:"average"` + StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Average = float64(s1.Average) + s.StandardDeviation = float64(s1.StandardDeviation) + return nil +} - // Type: The type of the entity resource. - // - // Possible values: - // "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type. - // "TABLE" - Entities representing structured data. - // "FILESET" - Entities representing unstructured data. - Type string `json:"type,omitempty"` +// GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFie +// ldInfo: StringFieldInfo defines output info for any string type +// field. +type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo struct { + // AverageLength: The average length of a string field in the sampled + // data. Optional if zero non-null rows. + AverageLength float64 `json:"averageLength,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entity") to + // MaxLength: The maximum length of a string field in the sampled data. + // Optional if zero non-null rows. + MaxLength int64 `json:"maxLength,omitempty,string"` + + // MinLength: The minimum length of the string field in the sampled + // data. Optional if zero non-null rows. + MinLength int64 `json:"minLength,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AverageLength") 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 @@ -1572,45 +1669,47 @@ type GoogleCloudDataplexV1DiscoveryEventEntityDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") 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 + // NullFields is a list of field names (e.g. "AverageLength") 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 *GoogleCloudDataplexV1DiscoveryEventEntityDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DiscoveryEventEntityDetails +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DiscoveryEventPartitionDetails: Details about -// the partition. -type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct { - // Entity: The name to the containing entity resource. The name is the - // fully-qualified resource name. - Entity string `json:"entity,omitempty"` - - // Partition: The name to the partition resource. The name is the - // fully-qualified resource name. - Partition string `json:"partition,omitempty"` +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo + var s1 struct { + AverageLength gensupport.JSONFloat64 `json:"averageLength"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageLength = float64(s1.AverageLength) + return nil +} - // SampledDataLocations: The locations of the data items (e.g., a Cloud - // Storage objects) sampled for metadata inference. - SampledDataLocations []string `json:"sampledDataLocations,omitempty"` +// GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue +// : The TopNValue defines the structure of output of top N values of a +// field. +type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue struct { + // Count: The frequency count of the corresponding value in the field. + Count int64 `json:"count,omitempty,string"` - // Type: The type of the containing entity resource. - // - // Possible values: - // "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type. - // "TABLE" - Entities representing structured data. - // "FILESET" - Entities representing unstructured data. - Type string `json:"type,omitempty"` + // Value: The value is the string value of the actual value from the + // field. + Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entity") to + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -1618,7 +1717,7 @@ type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API + // NullFields is a list of field names (e.g. "Count") 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 @@ -1627,104 +1726,25 @@ type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DiscoveryEventPartitionDetails +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Entity: Represents tables and fileset metadata -// contained within a zone. -type GoogleCloudDataplexV1Entity struct { - // Asset: Required. Immutable. The ID of the asset associated with the - // storage location containing the entity data. The entity must be with - // in the same zone with the asset. - Asset string `json:"asset,omitempty"` - - // CatalogEntry: Output only. The name of the associated Data Catalog - // entry. - CatalogEntry string `json:"catalogEntry,omitempty"` - - // Compatibility: Output only. Metadata stores that the entity is - // compatible with. - Compatibility *GoogleCloudDataplexV1EntityCompatibilityStatus `json:"compatibility,omitempty"` - - // CreateTime: Output only. The time when the entity was created. - CreateTime string `json:"createTime,omitempty"` - - // DataPath: Required. Immutable. The storage path of the entity data. - // For Cloud Storage data, this is the fully-qualified path to the - // entity, such as gs://bucket/path/to/data. For BigQuery data, this is - // the name of the table resource, such as - // projects/project_id/datasets/dataset_id/tables/table_id. - DataPath string `json:"dataPath,omitempty"` - - // DataPathPattern: Optional. The set of items within the data path - // constituting the data in the entity, represented as a glob path. - // Example: gs://bucket/path/to/data/**/*.csv. - DataPathPattern string `json:"dataPathPattern,omitempty"` - - // Description: Optional. User friendly longer description text. Must be - // shorter than or equal to 1024 characters. - Description string `json:"description,omitempty"` - - // DisplayName: Optional. Display name must be shorter than or equal to - // 256 characters. - DisplayName string `json:"displayName,omitempty"` - - // Etag: Optional. The etag associated with the entity, which can be - // retrieved with a GetEntity request. Required for update and delete - // requests. - Etag string `json:"etag,omitempty"` - - // Format: Required. Identifies the storage format of the entity data. - // It does not apply to entities with data stored in BigQuery. - Format *GoogleCloudDataplexV1StorageFormat `json:"format,omitempty"` - - // Id: Required. A user-provided entity ID. It is mutable, and will be - // used as the published table name. Specifying a new ID in an update - // entity request will override the existing value. The ID must contain - // only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin - // with a letter and consist of 256 or fewer characters. - Id string `json:"id,omitempty"` - - // Name: Output only. The resource name of the entity, of the form: - // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zone - // s/{zone_id}/entities/{id}. - Name string `json:"name,omitempty"` - - // Schema: Required. The description of the data structure and layout. - // The schema is not included in list responses. It is only included in - // SCHEMA and FULL entity views of a GetEntity response. - Schema *GoogleCloudDataplexV1Schema `json:"schema,omitempty"` - - // System: Required. Immutable. Identifies the storage system of the - // entity data. - // - // Possible values: - // "STORAGE_SYSTEM_UNSPECIFIED" - Storage system unspecified. - // "CLOUD_STORAGE" - The entity data is contained within a Cloud - // Storage bucket. - // "BIGQUERY" - The entity data is contained within a BigQuery - // dataset. - System string `json:"system,omitempty"` - - // Type: Required. Immutable. The type of entity. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Type unspecified. - // "TABLE" - Structured and semi-structured data. - // "FILESET" - Unstructured data. - Type string `json:"type,omitempty"` - - // UpdateTime: Output only. The time when the entity was last updated. - UpdateTime string `json:"updateTime,omitempty"` +// GoogleCloudDataplexV1DataProfileSpec: DataProfileScan related +// setting. +type GoogleCloudDataplexV1DataProfileSpec struct { +} - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// GoogleCloudDataplexV1DataQualityDimensionResult: +// DataQualityDimensionResult provides a more detailed, per-dimension +// level view of the results. +type GoogleCloudDataplexV1DataQualityDimensionResult struct { + // Passed: Whether the dimension passed or failed. + Passed bool `json:"passed,omitempty"` - // ForceSendFields is a list of field names (e.g. "Asset") to + // ForceSendFields is a list of field names (e.g. "Passed") 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 @@ -1732,7 +1752,7 @@ type GoogleCloudDataplexV1Entity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API + // NullFields is a list of field names (e.g. "Passed") 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 @@ -1741,58 +1761,31 @@ type GoogleCloudDataplexV1Entity struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Entity) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Entity +func (s *GoogleCloudDataplexV1DataQualityDimensionResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityDimensionResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1EntityCompatibilityStatus: Provides -// compatibility information for various metadata stores. -type GoogleCloudDataplexV1EntityCompatibilityStatus struct { - // Bigquery: Output only. Whether this entity is compatible with - // BigQuery. - Bigquery *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"bigquery,omitempty"` - - // HiveMetastore: Output only. Whether this entity is compatible with - // Hive Metastore. - HiveMetastore *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"hiveMetastore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bigquery") 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:"-"` +// GoogleCloudDataplexV1DataQualityResult: The output of a +// DataQualityScan. +type GoogleCloudDataplexV1DataQualityResult struct { + // Dimensions: A list of results at the dimension-level. + Dimensions []*GoogleCloudDataplexV1DataQualityDimensionResult `json:"dimensions,omitempty"` - // NullFields is a list of field names (e.g. "Bigquery") 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:"-"` -} + // Passed: Overall data quality result -- true if all rules passed. + Passed bool `json:"passed,omitempty"` -func (s *GoogleCloudDataplexV1EntityCompatibilityStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // RowCount: The count of rows processed. + RowCount int64 `json:"rowCount,omitempty,string"` -// GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility: Provides -// compatibility information for a specific metadata store. -type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct { - // Compatible: Output only. Whether the entity is compatible and can be - // represented in the metadata store. - Compatible bool `json:"compatible,omitempty"` + // Rules: A list of all the rules in a job, and their results. + Rules []*GoogleCloudDataplexV1DataQualityRuleResult `json:"rules,omitempty"` - // Reason: Output only. Provides additional detail if the entity is - // incompatible with the metadata store. - Reason string `json:"reason,omitempty"` + // ScannedData: The data scanned for this result. + ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"` - // ForceSendFields is a list of field names (e.g. "Compatible") to + // ForceSendFields is a list of field names (e.g. "Dimensions") 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 @@ -1800,7 +1793,7 @@ type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Compatible") to include in + // NullFields is a list of field names (e.g. "Dimensions") 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 @@ -1809,73 +1802,68 @@ type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility +func (s *GoogleCloudDataplexV1DataQualityResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Environment: Environment represents a -// user-visible compute infrastructure for analytics within a lake. -type GoogleCloudDataplexV1Environment struct { - // CreateTime: Output only. Environment creation time. - CreateTime string `json:"createTime,omitempty"` - - // Description: Optional. Description of the environment. - Description string `json:"description,omitempty"` +// GoogleCloudDataplexV1DataQualityRule: A rule captures data quality +// intent about a data source. +type GoogleCloudDataplexV1DataQualityRule struct { + // Column: Optional. The unnested column which this rule is evaluated + // against. + Column string `json:"column,omitempty"` - // DisplayName: Optional. User friendly display name. - DisplayName string `json:"displayName,omitempty"` + // Dimension: Required. The dimension a rule belongs to. Results are + // also aggregated at the dimension-level. Supported dimensions are + // "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", + // "INTEGRITY" + Dimension string `json:"dimension,omitempty"` - // Endpoints: Output only. URI Endpoints to access sessions associated - // with the Environment. - Endpoints *GoogleCloudDataplexV1EnvironmentEndpoints `json:"endpoints,omitempty"` + // IgnoreNull: Optional. Rows with null values will automatically fail a + // rule, unless ignore_null is true. In that case, such null rows are + // trivially considered passing. Only applicable to ColumnMap rules. + IgnoreNull bool `json:"ignoreNull,omitempty"` - // InfrastructureSpec: Required. Infrastructure specification for the - // Environment. - InfrastructureSpec *GoogleCloudDataplexV1EnvironmentInfrastructureSpec `json:"infrastructureSpec,omitempty"` + // NonNullExpectation: ColumnMap rule which evaluates whether each + // column value is null. + NonNullExpectation *GoogleCloudDataplexV1DataQualityRuleNonNullExpectation `json:"nonNullExpectation,omitempty"` - // Labels: Optional. User defined labels for the environment. - Labels map[string]string `json:"labels,omitempty"` + // RangeExpectation: ColumnMap rule which evaluates whether each column + // value lies between a specified range. + RangeExpectation *GoogleCloudDataplexV1DataQualityRuleRangeExpectation `json:"rangeExpectation,omitempty"` - // Name: Output only. The relative resource name of the environment, of - // the form: - // projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environm - // ent/{environment_id} - Name string `json:"name,omitempty"` + // RegexExpectation: ColumnMap rule which evaluates whether each column + // value matches a specified regex. + RegexExpectation *GoogleCloudDataplexV1DataQualityRuleRegexExpectation `json:"regexExpectation,omitempty"` - // SessionSpec: Optional. Configuration for sessions created for this - // environment. - SessionSpec *GoogleCloudDataplexV1EnvironmentSessionSpec `json:"sessionSpec,omitempty"` + // RowConditionExpectation: Table rule which evaluates whether each row + // passes the specified condition. + RowConditionExpectation *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation `json:"rowConditionExpectation,omitempty"` - // SessionStatus: Output only. Status of sessions created for this - // environment. - SessionStatus *GoogleCloudDataplexV1EnvironmentSessionStatus `json:"sessionStatus,omitempty"` + // SetExpectation: ColumnMap rule which evaluates whether each column + // value is contained by a specified set. + SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"` - // State: Output only. Current state of the environment. - // - // Possible values: - // "STATE_UNSPECIFIED" - State is not specified. - // "ACTIVE" - Resource is active, i.e., ready to use. - // "CREATING" - Resource is under creation. - // "DELETING" - Resource is under deletion. - // "ACTION_REQUIRED" - Resource is active but has unresolved actions. - State string `json:"state,omitempty"` + // StatisticRangeExpectation: ColumnAggregate rule which evaluates + // whether the column aggregate statistic lies between a specified + // range. + StatisticRangeExpectation *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation `json:"statisticRangeExpectation,omitempty"` - // Uid: Output only. System generated globally unique ID for the - // environment. This ID will be different if the environment is deleted - // and re-created with the same name. - Uid string `json:"uid,omitempty"` + // TableConditionExpectation: Table rule which evaluates whether the + // provided expression is true. + TableConditionExpectation *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation `json:"tableConditionExpectation,omitempty"` - // UpdateTime: Output only. The time when the environment was last - // updated. - UpdateTime string `json:"updateTime,omitempty"` + // Threshold: Optional. The minimum ratio of passing_rows / total_rows + // required to pass this rule. Default = 1.0 + Threshold float64 `json:"threshold,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // UniquenessExpectation: ColumnAggregate rule which evaluates whether + // the column has duplicates. + UniquenessExpectation *GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation `json:"uniquenessExpectation,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "Column") 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 @@ -1883,8 +1871,8 @@ type GoogleCloudDataplexV1Environment 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 + // NullFields is a list of field names (e.g. "Column") 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. @@ -1892,20 +1880,55 @@ type GoogleCloudDataplexV1Environment struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Environment) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Environment +func (s *GoogleCloudDataplexV1DataQualityRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRule raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type GoogleCloudDataplexV1EnvironmentEndpoints struct { - // Notebooks: Output only. URI to serve notebook APIs - Notebooks string `json:"notebooks,omitempty"` +func (s *GoogleCloudDataplexV1DataQualityRule) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataQualityRule + var s1 struct { + Threshold gensupport.JSONFloat64 `json:"threshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Threshold = float64(s1.Threshold) + return nil +} - // Sql: Output only. URI to serve SQL APIs - Sql string `json:"sql,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleNonNullExpectation: Evaluates +// whether each column value is null. +type GoogleCloudDataplexV1DataQualityRuleNonNullExpectation struct { +} - // ForceSendFields is a list of field names (e.g. "Notebooks") to +// GoogleCloudDataplexV1DataQualityRuleRangeExpectation: Evaluates +// whether each column value lies between a specified range. +type GoogleCloudDataplexV1DataQualityRuleRangeExpectation struct { + // MaxValue: Optional. The maximum column value allowed for a row to + // pass this validation. At least one of min_value and max_value need to + // be provided. + MaxValue string `json:"maxValue,omitempty"` + + // MinValue: Optional. The minimum column value allowed for a row to + // pass this validation. At least one of min_value and max_value need to + // be provided. + MinValue string `json:"minValue,omitempty"` + + // StrictMaxEnabled: Optional. Whether each value needs to be strictly + // lesser than ('<') the maximum, or if equality is allowed. Only + // relevant if a max_value has been defined. Default = false. + StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"` + + // StrictMinEnabled: Optional. Whether each value needs to be strictly + // greater than ('>') the minimum, or if equality is allowed. Only + // relevant if a min_value has been defined. Default = false. + StrictMinEnabled bool `json:"strictMinEnabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxValue") 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 @@ -1913,7 +1936,7 @@ type GoogleCloudDataplexV1EnvironmentEndpoints struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Notebooks") to include in + // NullFields is a list of field names (e.g. "MaxValue") 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 @@ -1922,24 +1945,18 @@ type GoogleCloudDataplexV1EnvironmentEndpoints struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1EnvironmentEndpoints) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentEndpoints +func (s *GoogleCloudDataplexV1DataQualityRuleRangeExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleRangeExpectation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1EnvironmentInfrastructureSpec: Configuration for -// the underlying infrastructure used to run workloads. -type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct { - // Compute: Optional. Compute resources needed for analyze interactive - // workloads. - Compute *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources `json:"compute,omitempty"` - - // OsImage: Required. Software Runtime Configuration for analyze - // interactive workloads. - OsImage *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime `json:"osImage,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleRegexExpectation: Evaluates +// whether each column value matches a specified regex. +type GoogleCloudDataplexV1DataQualityRuleRegexExpectation struct { + Regex string `json:"regex,omitempty"` - // ForceSendFields is a list of field names (e.g. "Compute") to + // ForceSendFields is a list of field names (e.g. "Regex") 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 @@ -1947,8 +1964,8 @@ type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Compute") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Regex") 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. @@ -1956,27 +1973,45 @@ type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpec +func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleRegexExpectation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources: -// Compute resources associated with the analyze interactive workloads. -type GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources struct { - // DiskSizeGb: Optional. Size in GB of the disk. Default is 100 GB. - DiskSizeGb int64 `json:"diskSizeGb,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleResult: DataQualityRuleResult +// provides a more detailed, per-rule level view of the results. +type GoogleCloudDataplexV1DataQualityRuleResult struct { + // EvaluatedCount: The number of rows a rule was evaluated against. This + // field is only valid for ColumnMap type rules. Evaluated count can be + // configured to either (1) include all rows (default) - with null rows + // automatically failing rule evaluation OR (2) exclude null rows from + // the evaluated_count, by setting ignore_nulls = true + EvaluatedCount int64 `json:"evaluatedCount,omitempty,string"` - // MaxNodeCount: Optional. Max configurable nodes. If max_node_count > - // node_count, then auto-scaling is enabled. - MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + // FailingRowsQuery: The query to find rows that did not pass this rule. + // Only applies to ColumnMap and RowCondition rules. + FailingRowsQuery string `json:"failingRowsQuery,omitempty"` - // NodeCount: Optional. Total number of nodes in the sessions created - // for this environment. - NodeCount int64 `json:"nodeCount,omitempty"` + // NullCount: The number of rows with null values in the specified + // column. + NullCount int64 `json:"nullCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to + // PassRatio: The ratio of passed_count / evaluated_count. This field is + // only valid for ColumnMap type rules. + PassRatio float64 `json:"passRatio,omitempty"` + + // Passed: Whether the rule passed or failed. + Passed bool `json:"passed,omitempty"` + + // PassedCount: The number of rows which passed a rule evaluation. This + // field is only valid for ColumnMap type rules. + PassedCount int64 `json:"passedCount,omitempty,string"` + + // Rule: The rule specified in the DataQualitySpec, as is. + Rule *GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EvaluatedCount") 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 @@ -1984,44 +2019,45 @@ type GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DiskSizeGb") 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. "EvaluatedCount") 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 *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources +func (s *GoogleCloudDataplexV1DataQualityRuleResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime: -// Software Runtime Configuration to run Analyze. -type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct { - // ImageVersion: Required. Dataplex Image version. - ImageVersion string `json:"imageVersion,omitempty"` - - // JavaLibraries: Optional. List of Java jars to be included in the - // runtime environment. Valid input includes Cloud Storage URIs to Jar - // binaries. For example, gs://bucket-name/my/path/to/file.jar - JavaLibraries []string `json:"javaLibraries,omitempty"` - - // Properties: Optional. Spark properties to provide configuration for - // use in sessions created for this environment. The properties to set - // on daemon config files. Property keys are specified in - // prefix:property format. The prefix must be "spark". - Properties map[string]string `json:"properties,omitempty"` +func (s *GoogleCloudDataplexV1DataQualityRuleResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataQualityRuleResult + var s1 struct { + PassRatio gensupport.JSONFloat64 `json:"passRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PassRatio = float64(s1.PassRatio) + return nil +} - // PythonPackages: Optional. A list of python packages to be installed. - // Valid formats include Cloud Storage URI to a PIP installable library. - // For example, gs://bucket-name/my/path/to/lib.tar.gz - PythonPackages []string `json:"pythonPackages,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation: +// Evaluates whether each row passes the specified condition. The SQL +// expression needs to use BigQuery standard SQL syntax and should +// produce a boolean per row as the result. Example: col1 >= 0 AND col2 +// < 10 +type GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation struct { + SqlExpression string `json:"sqlExpression,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageVersion") to + // ForceSendFields is a list of field names (e.g. "SqlExpression") 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 @@ -2029,7 +2065,7 @@ type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImageVersion") to include + // NullFields is a list of field names (e.g. "SqlExpression") 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 @@ -2038,55 +2074,72 @@ type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime +func (s *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type GoogleCloudDataplexV1EnvironmentSessionSpec struct { - // EnableFastStartup: Optional. If True, this causes sessions to be - // pre-created and available for faster startup to enable interactive - // exploration use-cases. This defaults to False to avoid additional - // billed charges. These can only be set to True for the environment - // with name set to "default", and with default configuration. - EnableFastStartup bool `json:"enableFastStartup,omitempty"` - - // MaxIdleDuration: Optional. The idle time configuration of the - // session. The session will be auto-terminated at the end of this - // period. - MaxIdleDuration string `json:"maxIdleDuration,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleSetExpectation: Evaluates whether +// each column value is contained by a specified set. +type GoogleCloudDataplexV1DataQualityRuleSetExpectation struct { + Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableFastStartup") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Values") 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. "EnableFastStartup") 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. "Values") 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 *GoogleCloudDataplexV1EnvironmentSessionSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentSessionSpec +func (s *GoogleCloudDataplexV1DataQualityRuleSetExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleSetExpectation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type GoogleCloudDataplexV1EnvironmentSessionStatus struct { - // Active: Output only. Queries over sessions to mark whether the - // environment is currently active or not - Active bool `json:"active,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation: +// Evaluates whether the column aggregate statistic lies between a +// specified range. +type GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation struct { + // MaxValue: The maximum column statistic value allowed for a row to + // pass this validation. At least one of min_value and max_value need to + // be provided. + MaxValue string `json:"maxValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "Active") to + // MinValue: The minimum column statistic value allowed for a row to + // pass this validation. At least one of min_value and max_value need to + // be provided. + MinValue string `json:"minValue,omitempty"` + + // Possible values: + // "STATISTIC_UNDEFINED" - Unspecified statistic type + // "MEAN" - Evaluate the column mean + // "MIN" - Evaluate the column min + // "MAX" - Evaluate the column max + Statistic string `json:"statistic,omitempty"` + + // StrictMaxEnabled: Whether column statistic needs to be strictly + // lesser than ('<') the maximum, or if equality is allowed. Only + // relevant if a max_value has been defined. Default = false. + StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"` + + // StrictMinEnabled: Whether column statistic needs to be strictly + // greater than ('>') the minimum, or if equality is allowed. Only + // relevant if a min_value has been defined. Default = false. + StrictMinEnabled bool `json:"strictMinEnabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxValue") 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 @@ -2094,8 +2147,8 @@ type GoogleCloudDataplexV1EnvironmentSessionStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "MaxValue") 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. @@ -2103,64 +2156,55 @@ type GoogleCloudDataplexV1EnvironmentSessionStatus struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1EnvironmentSessionStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1EnvironmentSessionStatus +func (s *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Job: A job represents an instance of a task. -type GoogleCloudDataplexV1Job struct { - // EndTime: Output only. The time when the job ended. - EndTime string `json:"endTime,omitempty"` - - // Message: Output only. Additional information about the current state. - Message string `json:"message,omitempty"` - - // Name: Output only. The relative resource name of the job, of the - // form: - // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task - // s/{task_id}/jobs/{job_id}. - Name string `json:"name,omitempty"` - - // RetryCount: Output only. The number of times the job has been retried - // (excluding the initial attempt). - RetryCount int64 `json:"retryCount,omitempty"` - - // Service: Output only. The underlying service running a job. - // - // Possible values: - // "SERVICE_UNSPECIFIED" - Service used to run the job is unspecified. - // "DATAPROC" - Dataproc service is used to run this job. - Service string `json:"service,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation: +// Evaluates whether the provided expression is true. The SQL expression +// needs to use BigQuery standard SQL syntax and should produce a scalar +// boolean result. Example: MIN(col1) >= 0 +type GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation struct { + SqlExpression string `json:"sqlExpression,omitempty"` - // ServiceJob: Output only. The full resource name for the job run under - // a particular service. - ServiceJob string `json:"serviceJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "SqlExpression") 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:"-"` - // StartTime: Output only. The time when the job was started. - StartTime string `json:"startTime,omitempty"` + // NullFields is a list of field names (e.g. "SqlExpression") 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:"-"` +} - // State: Output only. Execution state for the job. - // - // Possible values: - // "STATE_UNSPECIFIED" - The job state is unknown. - // "RUNNING" - The job is running. - // "CANCELLING" - The job is cancelling. - // "CANCELLED" - The job cancellation was successful. - // "SUCCEEDED" - The job completed successfully. - // "FAILED" - The job is no longer running due to an error. - // "ABORTED" - The job was cancelled outside of Dataplex. - State string `json:"state,omitempty"` +func (s *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Uid: Output only. System generated globally unique ID for the job. - Uid string `json:"uid,omitempty"` +// GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation: Evaluates +// whether the column has duplicates. +type GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation struct { +} - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// GoogleCloudDataplexV1DataQualitySpec: DataQualityScan related +// setting. +type GoogleCloudDataplexV1DataQualitySpec struct { + // Rules: The list of rules to evaluate against a data source. At least + // one rule is required. + Rules []*GoogleCloudDataplexV1DataQualityRule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // ForceSendFields is a list of field names (e.g. "Rules") 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 @@ -2168,8 +2212,8 @@ type GoogleCloudDataplexV1Job struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Rules") 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. @@ -2177,60 +2221,91 @@ type GoogleCloudDataplexV1Job struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Job) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Job +func (s *GoogleCloudDataplexV1DataQualitySpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualitySpec raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1JobEvent: The payload associated with Job logs -// that contains events describing jobs that have run within a Lake. -type GoogleCloudDataplexV1JobEvent struct { - // EndTime: The time when the job ended running. - EndTime string `json:"endTime,omitempty"` +// GoogleCloudDataplexV1DataScan: Represents a user-visible job which +// provides the insights for the related data source. For examples: - +// Data Quality: generates queries based on the rules and run against +// the data to get data quality check results. - Data Profile: analyzes +// the data in table(s) and generates insights about the structure, +// content and relationships (such as null percent, cardinality, +// min/max/mean, etc). +type GoogleCloudDataplexV1DataScan struct { + // CreateTime: Output only. The time when the scan was created. + CreateTime string `json:"createTime,omitempty"` - // JobId: The unique id identifying the job. - JobId string `json:"jobId,omitempty"` + // Data: Required. The data source for DataScan. + Data *GoogleCloudDataplexV1DataSource `json:"data,omitempty"` - // Message: The log message. - Message string `json:"message,omitempty"` + // DataProfileResult: Output only. The result of the data profile scan. + DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"` - // Retries: The number of retries. - Retries int64 `json:"retries,omitempty"` + // DataProfileSpec: DataProfileScan related setting. + DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"` - // Service: The service used to execute the job. - // - // Possible values: - // "SERVICE_UNSPECIFIED" - Unspecified service. - // "DATAPROC" - Cloud Dataproc. - Service string `json:"service,omitempty"` + // DataQualityResult: Output only. The result of the data quality scan. + DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"` - // ServiceJob: The reference to the job within the service. - ServiceJob string `json:"serviceJob,omitempty"` + // DataQualitySpec: DataQualityScan related setting. + DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"` - // StartTime: The time when the job started running. - StartTime string `json:"startTime,omitempty"` + // Description: Optional. Description of the scan. * Must be between + // 1-1024 characters. + Description string `json:"description,omitempty"` - // State: The job state on completion. + // DisplayName: Optional. User friendly display name. * Must be between + // 1-256 characters. + DisplayName string `json:"displayName,omitempty"` + + // ExecutionSpec: Optional. DataScan execution settings. If not + // specified, the fields under it will use their default values. + ExecutionSpec *GoogleCloudDataplexV1DataScanExecutionSpec `json:"executionSpec,omitempty"` + + // Labels: Optional. User-defined labels for the scan. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The relative resource name of the scan, of the + // form: + // projects/{project}/locations/{location_id}/dataScans/{datascan_id}. + // where {project} refers to a project_id or project_number and + // location_id refers to a GCP region. + Name string `json:"name,omitempty"` + + // State: Output only. Current state of the DataScan. // // Possible values: - // "STATE_UNSPECIFIED" - Unspecified job state. - // "SUCCEEDED" - Job successfully completed. - // "FAILED" - Job was unsuccessful. - // "CANCELLED" - Job was cancelled by the user. - // "ABORTED" - Job was cancelled or aborted via the service executing - // the job. + // "STATE_UNSPECIFIED" - State is not specified. + // "ACTIVE" - Resource is active, i.e., ready to use. + // "CREATING" - Resource is under creation. + // "DELETING" - Resource is under deletion. + // "ACTION_REQUIRED" - Resource is active but has unresolved actions. State string `json:"state,omitempty"` - // Type: The type of the job. + // Type: Output only. The type of DataScan. // // Possible values: - // "TYPE_UNSPECIFIED" - Unspecified job type. - // "SPARK" - Spark jobs. - // "NOTEBOOK" - Notebook jobs. + // "DATA_SCAN_TYPE_UNSPECIFIED" - The DataScan Type is unspecified. + // "DATA_QUALITY" - Data Quality Scan. + // "DATA_PROFILE" - Data Profile Scan. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // Uid: Output only. System generated globally unique ID for the scan. + // This ID will be different if the scan is deleted and re-created with + // the same name. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time when the scan was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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 @@ -2238,7 +2313,7 @@ type GoogleCloudDataplexV1JobEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in + // 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 @@ -2247,79 +2322,77 @@ type GoogleCloudDataplexV1JobEvent struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1JobEvent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1JobEvent +func (s *GoogleCloudDataplexV1DataScan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScan raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Lake: A lake is a centralized repository for -// managing enterprise data across the organization distributed across -// many cloud projects, and stored in a variety of storage services such -// as Google Cloud Storage and BigQuery. The resources attached to a -// lake are referred to as managed resources. Data within these managed -// resources can be structured or unstructured. A lake provides data -// admins with tools to organize, secure and manage their data at scale, -// and provides data scientists and data engineers an integrated -// experience to easily search, discover, analyze and transform data and -// associated metadata. -type GoogleCloudDataplexV1Lake struct { - // AssetStatus: Output only. Aggregated status of the underlying assets - // of the lake. - AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"` +// GoogleCloudDataplexV1DataScanEvent: These messages contain +// information about the execution of a datascan. The monitored resource +// is 'DataScan' +type GoogleCloudDataplexV1DataScanEvent struct { + // DataProfile: Data profile result for data profile type data scan. + DataProfile *GoogleCloudDataplexV1DataScanEventDataProfileResult `json:"dataProfile,omitempty"` - // CreateTime: Output only. The time when the lake was created. - CreateTime string `json:"createTime,omitempty"` + // DataQuality: Data quality result for data quality type data scan. + DataQuality *GoogleCloudDataplexV1DataScanEventDataQualityResult `json:"dataQuality,omitempty"` - // Description: Optional. Description of the lake. - Description string `json:"description,omitempty"` + // DataSource: The data source of the data scan + DataSource string `json:"dataSource,omitempty"` - // DisplayName: Optional. User friendly display name. - DisplayName string `json:"displayName,omitempty"` + // EndTime: The time when the data scan job finished. + EndTime string `json:"endTime,omitempty"` - // Labels: Optional. User-defined labels for the lake. - Labels map[string]string `json:"labels,omitempty"` + // JobId: The identifier of the specific data scan job this log entry is + // for. + JobId string `json:"jobId,omitempty"` - // Metastore: Optional. Settings to manage lake and Dataproc Metastore - // service instance association. - Metastore *GoogleCloudDataplexV1LakeMetastore `json:"metastore,omitempty"` + // Message: The message describing the data scan job event. + Message string `json:"message,omitempty"` - // MetastoreStatus: Output only. Metastore status of the lake. - MetastoreStatus *GoogleCloudDataplexV1LakeMetastoreStatus `json:"metastoreStatus,omitempty"` + // Scope: The scope of the data scan (e.g. full, incremental). + // + // Possible values: + // "SCOPE_UNSPECIFIED" - An unspecified scope type. + // "FULL" - Data scan runs on all of the data. + // "INCREMENTAL" - Data scan runs on incremental data. + Scope string `json:"scope,omitempty"` - // Name: Output only. The relative resource name of the lake, of the - // form: - // projects/{project_number}/locations/{location_id}/lakes/{lake_id}. - Name string `json:"name,omitempty"` + // SpecVersion: A version identifier of the spec which was used to + // execute this job. + SpecVersion string `json:"specVersion,omitempty"` - // ServiceAccount: Output only. Service account associated with this - // lake. This service account must be authorized to access or operate on - // resources managed by the lake. - ServiceAccount string `json:"serviceAccount,omitempty"` + // StartTime: The time when the data scan job started to run. + StartTime string `json:"startTime,omitempty"` - // State: Output only. Current state of the lake. + // State: The status of the data scan job. // // Possible values: - // "STATE_UNSPECIFIED" - State is not specified. - // "ACTIVE" - Resource is active, i.e., ready to use. - // "CREATING" - Resource is under creation. - // "DELETING" - Resource is under deletion. - // "ACTION_REQUIRED" - Resource is active but has unresolved actions. + // "STATE_UNSPECIFIED" - Unspecified job state. + // "STARTED" - Data scan started. + // "SUCCEEDED" - Data scan successfully completed. + // "FAILED" - Data scan was unsuccessful. + // "CANCELLED" - Data scan was cancelled. State string `json:"state,omitempty"` - // Uid: Output only. System generated globally unique ID for the lake. - // This ID will be different if the lake is deleted and re-created with - // the same name. - Uid string `json:"uid,omitempty"` - - // UpdateTime: Output only. The time when the lake was last updated. - UpdateTime string `json:"updateTime,omitempty"` + // Trigger: The trigger type of the data scan job. + // + // Possible values: + // "TRIGGER_UNSPECIFIED" - An unspecified trigger type. + // "ON_DEMAND" - Data scan triggers on demand. + // "SCHEDULE" - Data scan triggers as per schedule. + Trigger string `json:"trigger,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Type: The type of the data scan. + // + // Possible values: + // "SCAN_TYPE_UNSPECIFIED" - An unspecified data scan type. + // "DATA_PROFILE" - Data scan for data profile. + // "DATA_QUALITY" - Data scan for data quality. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetStatus") to + // ForceSendFields is a list of field names (e.g. "DataProfile") 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 @@ -2327,7 +2400,7 @@ type GoogleCloudDataplexV1Lake struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssetStatus") to include + // NullFields is a list of field names (e.g. "DataProfile") 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 @@ -2336,22 +2409,19 @@ type GoogleCloudDataplexV1Lake struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Lake) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Lake +func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1LakeMetastore: Settings to manage association of -// Dataproc Metastore with a lake. -type GoogleCloudDataplexV1LakeMetastore struct { - // Service: Optional. A relative reference to the Dataproc Metastore - // (https://cloud.google.com/dataproc-metastore/docs) service associated - // with the lake: - // projects/{project_id}/locations/{location_id}/services/{service_id} - Service string `json:"service,omitempty"` +// GoogleCloudDataplexV1DataScanEventDataProfileResult: Data profile +// result for data scan job. +type GoogleCloudDataplexV1DataScanEventDataProfileResult struct { + // RowCount: The count of rows processed in the data scan job. + RowCount int64 `json:"rowCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Service") to + // ForceSendFields is a list of field names (e.g. "RowCount") 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 @@ -2359,7 +2429,7 @@ type GoogleCloudDataplexV1LakeMetastore struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Service") to include in + // NullFields is a list of field names (e.g. "RowCount") 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 @@ -2368,37 +2438,28 @@ type GoogleCloudDataplexV1LakeMetastore struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1LakeMetastore) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1LakeMetastore +func (s *GoogleCloudDataplexV1DataScanEventDataProfileResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1LakeMetastoreStatus: Status of Lake and Dataproc -// Metastore service instance association. -type GoogleCloudDataplexV1LakeMetastoreStatus struct { - // Endpoint: The URI of the endpoint used to access the Metastore - // service. - Endpoint string `json:"endpoint,omitempty"` - - // Message: Additional information about the current status. - Message string `json:"message,omitempty"` +// GoogleCloudDataplexV1DataScanEventDataQualityResult: Data quality +// result for data scan job. +type GoogleCloudDataplexV1DataScanEventDataQualityResult struct { + // DimensionPassed: The result of each dimension for data quality + // result. The key of the map is the name of the dimension. The value is + // the bool value depicting whether the dimension result was pass or + // not. + DimensionPassed map[string]bool `json:"dimensionPassed,omitempty"` - // State: Current state of association. - // - // Possible values: - // "STATE_UNSPECIFIED" - Unspecified. - // "NONE" - A Metastore service instance is not associated with the - // lake. - // "READY" - A Metastore service instance is attached to the lake. - // "UPDATING" - Attach/detach is in progress. - // "ERROR" - Attach/detach could not be done due to errors. - State string `json:"state,omitempty"` + // Passed: Whether the data quality result was pass or not. + Passed bool `json:"passed,omitempty"` - // UpdateTime: Last update time of the metastore status of the lake. - UpdateTime string `json:"updateTime,omitempty"` + // RowCount: The count of rows processed in the data scan job. + RowCount int64 `json:"rowCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Endpoint") to + // ForceSendFields is a list of field names (e.g. "DimensionPassed") 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 @@ -2406,35 +2467,35 @@ type GoogleCloudDataplexV1LakeMetastoreStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Endpoint") 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. "DimensionPassed") 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 *GoogleCloudDataplexV1LakeMetastoreStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1LakeMetastoreStatus +func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListActionsResponse: List actions response. -type GoogleCloudDataplexV1ListActionsResponse struct { - // Actions: Actions under the given parent lake/zone/asset. - Actions []*GoogleCloudDataplexV1Action `json:"actions,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` +// GoogleCloudDataplexV1DataScanExecutionSpec: DataScan execution +// settings. +type GoogleCloudDataplexV1DataScanExecutionSpec struct { + // Field: Immutable. The unnested field (Date or Timestamp) that + // contains values that monotonically increase over time. + Field string `json:"field,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Trigger: Optional. Spec related to how often and when a scan should + // be triggered. If not specified, the default is OnDemand, which means + // the scan will not run until the user calls RunDataScan API. + Trigger *GoogleCloudDataplexV1Trigger `json:"trigger,omitempty"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // ForceSendFields is a list of field names (e.g. "Field") 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 @@ -2442,8 +2503,8 @@ type GoogleCloudDataplexV1ListActionsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Field") 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. @@ -2451,62 +2512,105 @@ type GoogleCloudDataplexV1ListActionsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1ListActionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListActionsResponse +func (s *GoogleCloudDataplexV1DataScanExecutionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanExecutionSpec raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListAssetsResponse: List assets response. -type GoogleCloudDataplexV1ListAssetsResponse struct { - // Assets: Asset under the given parent zone. - Assets []*GoogleCloudDataplexV1Asset `json:"assets,omitempty"` +// GoogleCloudDataplexV1DataScanJob: A DataScanJob represents an +// instance of a data scan. +type GoogleCloudDataplexV1DataScanJob struct { + // DataProfileResult: Output only. The result of the data profile scan. + DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"` - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` + // DataProfileSpec: Output only. DataProfileScan related setting. + DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"` + + // DataQualityResult: Output only. The result of the data quality scan. + DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"` + + // DataQualitySpec: Output only. DataQualityScan related setting. + DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"` + + // EndTime: Output only. The time when the DataScanJob ended. + EndTime string `json:"endTime,omitempty"` + + // Message: Output only. Additional information about the current state. + Message string `json:"message,omitempty"` + + // Name: Output only. The relative resource name of the DataScanJob, of + // the form: + // projects/{project}/locations/{location_id}/dataScans/{datascan_id}/job + // s/{job_id}. where {project} refers to a project_id or project_number + // and location_id refers to a GCP region. + Name string `json:"name,omitempty"` + + // StartTime: Output only. The time when the DataScanJob was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. Execution state for the DataScanJob. + // + // Possible values: + // "STATE_UNSPECIFIED" - The DataScanJob state is unspecified. + // "RUNNING" - The DataScanJob is running. + // "CANCELING" - The DataScanJob is canceling. + // "CANCELLED" - The DataScanJob cancellation was successful. + // "SUCCEEDED" - The DataScanJob completed successfully. + // "FAILED" - The DataScanJob is no longer running due to an error. + // "PENDING" - The DataScanJob has been created but not started to run + // yet. + State string `json:"state,omitempty"` + + // Type: Output only. The type of the parent DataScan. + // + // Possible values: + // "DATA_SCAN_TYPE_UNSPECIFIED" - The DataScan Type is unspecified. + // "DATA_QUALITY" - Data Quality Scan. + // "DATA_PROFILE" - Data Profile Scan. + Type string `json:"type,omitempty"` + + // Uid: Output only. System generated globally unique ID for the + // DataScanJob. + Uid string `json:"uid,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Assets") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "DataProfileResult") + // 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. "Assets") 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. "DataProfileResult") 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 *GoogleCloudDataplexV1ListAssetsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListAssetsResponse +func (s *GoogleCloudDataplexV1DataScanJob) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanJob raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListContentResponse: List content response. -type GoogleCloudDataplexV1ListContentResponse struct { - // Content: Content under the given parent lake. - Content []*GoogleCloudDataplexV1Content `json:"content,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// GoogleCloudDataplexV1DataSource: The data source for DataScan. +type GoogleCloudDataplexV1DataSource struct { + // Entity: Immutable. The dataplex entity that contains the data for + // DataScan, of the form: + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zone + // s/{zone_id}/entities/{entity_id}. + Entity string `json:"entity,omitempty"` - // ForceSendFields is a list of field names (e.g. "Content") to + // ForceSendFields is a list of field names (e.g. "Entity") 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 @@ -2514,8 +2618,8 @@ type GoogleCloudDataplexV1ListContentResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Entity") 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. @@ -2523,64 +2627,62 @@ type GoogleCloudDataplexV1ListContentResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1ListContentResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListContentResponse +func (s *GoogleCloudDataplexV1DataSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataSource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListEntitiesResponse: List metadata entities -// response. -type GoogleCloudDataplexV1ListEntitiesResponse struct { - // Entities: Entities in the specified parent zone. - Entities []*GoogleCloudDataplexV1Entity `json:"entities,omitempty"` +// GoogleCloudDataplexV1DiscoveryEvent: The payload associated with +// Discovery data processing. +type GoogleCloudDataplexV1DiscoveryEvent struct { + // Action: Details about the action associated with the event. + Action *GoogleCloudDataplexV1DiscoveryEventActionDetails `json:"action,omitempty"` - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no remaining results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` + // AssetId: The id of the associated asset. + AssetId string `json:"assetId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Config: Details about discovery configuration in effect. + Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entities") 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:"-"` + // DataLocation: The data location associated with the event. + DataLocation string `json:"dataLocation,omitempty"` - // NullFields is a list of field names (e.g. "Entities") 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:"-"` -} + // Entity: Details about the entity associated with the event. + Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"` -func (s *GoogleCloudDataplexV1ListEntitiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListEntitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // LakeId: The id of the associated lake. + LakeId string `json:"lakeId,omitempty"` -// GoogleCloudDataplexV1ListEnvironmentsResponse: List environments -// response. -type GoogleCloudDataplexV1ListEnvironmentsResponse struct { - // Environments: Environments under the given parent lake. - Environments []*GoogleCloudDataplexV1Environment `json:"environments,omitempty"` + // Message: The log message. + Message string `json:"message,omitempty"` - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` + // Partition: Details about the partition associated with the event. + Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Type: The type of the event being logged. + // + // Possible values: + // "EVENT_TYPE_UNSPECIFIED" - An unspecified event type. + // "CONFIG" - An event representing discovery configuration in effect. + // "ENTITY_CREATED" - An event representing a metadata entity being + // created. + // "ENTITY_UPDATED" - An event representing a metadata entity being + // updated. + // "ENTITY_DELETED" - An event representing a metadata entity being + // deleted. + // "PARTITION_CREATED" - An event representing a partition being + // created. + // "PARTITION_UPDATED" - An event representing a partition being + // updated. + // "PARTITION_DELETED" - An event representing a partition being + // deleted. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Environments") to + // ZoneId: The id of the associated zone. + ZoneId string `json:"zoneId,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 @@ -2588,35 +2690,29 @@ type GoogleCloudDataplexV1ListEnvironmentsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Environments") 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 + // 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 *GoogleCloudDataplexV1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListEnvironmentsResponse +func (s *GoogleCloudDataplexV1DiscoveryEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListJobsResponse: List jobs response. -type GoogleCloudDataplexV1ListJobsResponse struct { - // Jobs: Jobs under a given task. - Jobs []*GoogleCloudDataplexV1Job `json:"jobs,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// GoogleCloudDataplexV1DiscoveryEventActionDetails: Details about the +// action. +type GoogleCloudDataplexV1DiscoveryEventActionDetails struct { + // Type: The type of action. Eg. IncompatibleDataSchema, + // InvalidDataFormat + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Jobs") to + // ForceSendFields is a list of field names (e.g. "Type") 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 @@ -2624,7 +2720,7 @@ type GoogleCloudDataplexV1ListJobsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Jobs") to include in API + // NullFields is a list of field names (e.g. "Type") 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 @@ -2633,29 +2729,22 @@ type GoogleCloudDataplexV1ListJobsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1ListJobsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListJobsResponse +func (s *GoogleCloudDataplexV1DiscoveryEventActionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventActionDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListLakesResponse: List lakes response. -type GoogleCloudDataplexV1ListLakesResponse struct { - // Lakes: Lakes under the given parent location. - Lakes []*GoogleCloudDataplexV1Lake `json:"lakes,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - - // UnreachableLocations: Locations that could not be reached. - UnreachableLocations []string `json:"unreachableLocations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// GoogleCloudDataplexV1DiscoveryEventConfigDetails: Details about +// configuration events. +type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct { + // Parameters: A list of discovery configuration parameters in effect. + // The keys are the field paths within DiscoverySpec. Eg. + // includePatterns, excludePatterns, csvOptions.disableTypeInference, + // etc. + Parameters map[string]string `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Lakes") to + // ForceSendFields is a list of field names (e.g. "Parameters") 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 @@ -2663,8 +2752,8 @@ type GoogleCloudDataplexV1ListLakesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Lakes") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Parameters") 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. @@ -2672,27 +2761,28 @@ type GoogleCloudDataplexV1ListLakesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1ListLakesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListLakesResponse +func (s *GoogleCloudDataplexV1DiscoveryEventConfigDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventConfigDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListPartitionsResponse: List metadata partitions -// response. -type GoogleCloudDataplexV1ListPartitionsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no remaining results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Partitions: Partitions under the specified parent entity. - Partitions []*GoogleCloudDataplexV1Partition `json:"partitions,omitempty"` +// GoogleCloudDataplexV1DiscoveryEventEntityDetails: Details about the +// entity. +type GoogleCloudDataplexV1DiscoveryEventEntityDetails struct { + // Entity: The name of the entity resource. The name is the + // fully-qualified resource name. + Entity string `json:"entity,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Type: The type of the entity resource. + // + // Possible values: + // "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type. + // "TABLE" - Entities representing structured data. + // "FILESET" - Entities representing unstructured data. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "Entity") 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 @@ -2700,35 +2790,45 @@ type GoogleCloudDataplexV1ListPartitionsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") 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 + // NullFields is a list of field names (e.g. "Entity") 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 *GoogleCloudDataplexV1ListPartitionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListPartitionsResponse +func (s *GoogleCloudDataplexV1DiscoveryEventEntityDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventEntityDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListSessionsResponse: List sessions response. -type GoogleCloudDataplexV1ListSessionsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` +// GoogleCloudDataplexV1DiscoveryEventPartitionDetails: Details about +// the partition. +type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct { + // Entity: The name to the containing entity resource. The name is the + // fully-qualified resource name. + Entity string `json:"entity,omitempty"` - // Sessions: Sessions under a given environment. - Sessions []*GoogleCloudDataplexV1Session `json:"sessions,omitempty"` + // Partition: The name to the partition resource. The name is the + // fully-qualified resource name. + Partition string `json:"partition,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // SampledDataLocations: The locations of the data items (e.g., a Cloud + // Storage objects) sampled for metadata inference. + SampledDataLocations []string `json:"sampledDataLocations,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // Type: The type of the containing entity resource. + // + // Possible values: + // "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type. + // "TABLE" - Entities representing structured data. + // "FILESET" - Entities representing unstructured data. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entity") 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 @@ -2736,74 +2836,147 @@ type GoogleCloudDataplexV1ListSessionsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") 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 + // NullFields is a list of field names (e.g. "Entity") 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 *GoogleCloudDataplexV1ListSessionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListSessionsResponse +func (s *GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventPartitionDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListTasksResponse: List tasks response. -type GoogleCloudDataplexV1ListTasksResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` +// GoogleCloudDataplexV1Entity: Represents tables and fileset metadata +// contained within a zone. +type GoogleCloudDataplexV1Entity struct { + // Asset: Required. Immutable. The ID of the asset associated with the + // storage location containing the entity data. The entity must be with + // in the same zone with the asset. + Asset string `json:"asset,omitempty"` - // Tasks: Tasks under the given parent lake. - Tasks []*GoogleCloudDataplexV1Task `json:"tasks,omitempty"` + // CatalogEntry: Output only. The name of the associated Data Catalog + // entry. + CatalogEntry string `json:"catalogEntry,omitempty"` - // UnreachableLocations: Locations that could not be reached. - UnreachableLocations []string `json:"unreachableLocations,omitempty"` + // Compatibility: Output only. Metadata stores that the entity is + // compatible with. + Compatibility *GoogleCloudDataplexV1EntityCompatibilityStatus `json:"compatibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // CreateTime: Output only. The time when the entity was created. + CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 + // DataPath: Required. Immutable. The storage path of the entity data. + // For Cloud Storage data, this is the fully-qualified path to the + // entity, such as gs://bucket/path/to/data. For BigQuery data, this is + // the name of the table resource, such as + // projects/project_id/datasets/dataset_id/tables/table_id. + DataPath string `json:"dataPath,omitempty"` + + // DataPathPattern: Optional. The set of items within the data path + // constituting the data in the entity, represented as a glob path. + // Example: gs://bucket/path/to/data/**/*.csv. + DataPathPattern string `json:"dataPathPattern,omitempty"` + + // Description: Optional. User friendly longer description text. Must be + // shorter than or equal to 1024 characters. + Description string `json:"description,omitempty"` + + // DisplayName: Optional. Display name must be shorter than or equal to + // 256 characters. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Optional. The etag associated with the entity, which can be + // retrieved with a GetEntity request. Required for update and delete + // requests. + Etag string `json:"etag,omitempty"` + + // Format: Required. Identifies the storage format of the entity data. + // It does not apply to entities with data stored in BigQuery. + Format *GoogleCloudDataplexV1StorageFormat `json:"format,omitempty"` + + // Id: Required. A user-provided entity ID. It is mutable, and will be + // used as the published table name. Specifying a new ID in an update + // entity request will override the existing value. The ID must contain + // only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin + // with a letter and consist of 256 or fewer characters. + Id string `json:"id,omitempty"` + + // Name: Output only. The resource name of the entity, of the form: + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zone + // s/{zone_id}/entities/{id}. + Name string `json:"name,omitempty"` + + // Schema: Required. The description of the data structure and layout. + // The schema is not included in list responses. It is only included in + // SCHEMA and FULL entity views of a GetEntity response. + Schema *GoogleCloudDataplexV1Schema `json:"schema,omitempty"` + + // System: Required. Immutable. Identifies the storage system of the + // entity data. + // + // Possible values: + // "STORAGE_SYSTEM_UNSPECIFIED" - Storage system unspecified. + // "CLOUD_STORAGE" - The entity data is contained within a Cloud + // Storage bucket. + // "BIGQUERY" - The entity data is contained within a BigQuery + // dataset. + System string `json:"system,omitempty"` + + // Type: Required. Immutable. The type of entity. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type unspecified. + // "TABLE" - Structured and semi-structured data. + // "FILESET" - Unstructured data. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The time when the entity was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Asset") 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. "NextPageToken") 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 + // NullFields is a list of field names (e.g. "Asset") 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 *GoogleCloudDataplexV1ListTasksResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListTasksResponse +func (s *GoogleCloudDataplexV1Entity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Entity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ListZonesResponse: List zones response. -type GoogleCloudDataplexV1ListZonesResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Zones: Zones under the given parent lake. - Zones []*GoogleCloudDataplexV1Zone `json:"zones,omitempty"` +// GoogleCloudDataplexV1EntityCompatibilityStatus: Provides +// compatibility information for various metadata stores. +type GoogleCloudDataplexV1EntityCompatibilityStatus struct { + // Bigquery: Output only. Whether this entity is compatible with + // BigQuery. + Bigquery *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"bigquery,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // HiveMetastore: Output only. Whether this entity is compatible with + // Hive Metastore. + HiveMetastore *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"hiveMetastore,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "Bigquery") 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 @@ -2811,51 +2984,33 @@ type GoogleCloudDataplexV1ListZonesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") 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 + // NullFields is a list of field names (e.g. "Bigquery") 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 *GoogleCloudDataplexV1ListZonesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ListZonesResponse +func (s *GoogleCloudDataplexV1EntityCompatibilityStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1OperationMetadata: Represents the metadata of a -// long-running operation. -type GoogleCloudDataplexV1OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to Code.CANCELLED. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` +// GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility: Provides +// compatibility information for a specific metadata store. +type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct { + // Compatible: Output only. Whether the entity is compatible and can be + // represented in the metadata store. + Compatible bool `json:"compatible,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` + // Reason: Output only. Provides additional detail if the entity is + // incompatible with the metadata store. + Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // ForceSendFields is a list of field names (e.g. "Compatible") 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 @@ -2863,7 +3018,7 @@ type GoogleCloudDataplexV1OperationMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in + // NullFields is a list of field names (e.g. "Compatible") 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 @@ -2872,41 +3027,73 @@ type GoogleCloudDataplexV1OperationMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1OperationMetadata +func (s *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Partition: Represents partition metadata -// contained within entity instances. -type GoogleCloudDataplexV1Partition struct { - // Etag: Optional. The etag for this partition. - Etag string `json:"etag,omitempty"` +// GoogleCloudDataplexV1Environment: Environment represents a +// user-visible compute infrastructure for analytics within a lake. +type GoogleCloudDataplexV1Environment struct { + // CreateTime: Output only. Environment creation time. + CreateTime string `json:"createTime,omitempty"` - // Location: Required. Immutable. The location of the entity data within - // the partition, for example, - // gs://bucket/path/to/entity/key1=value1/key2=value2. Or - // projects//datasets//tables/ - Location string `json:"location,omitempty"` + // Description: Optional. Description of the environment. + Description string `json:"description,omitempty"` - // Name: Output only. Partition values used in the HTTP URL must be - // double encoded. For example, url_encode(url_encode(value)) can be - // used to encode "US:CA/CA#Sunnyvale so that the request URL ends with - // "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the - // response retains the encoded format. + // DisplayName: Optional. User friendly display name. + DisplayName string `json:"displayName,omitempty"` + + // Endpoints: Output only. URI Endpoints to access sessions associated + // with the Environment. + Endpoints *GoogleCloudDataplexV1EnvironmentEndpoints `json:"endpoints,omitempty"` + + // InfrastructureSpec: Required. Infrastructure specification for the + // Environment. + InfrastructureSpec *GoogleCloudDataplexV1EnvironmentInfrastructureSpec `json:"infrastructureSpec,omitempty"` + + // Labels: Optional. User defined labels for the environment. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The relative resource name of the environment, of + // the form: + // projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environm + // ent/{environment_id} Name string `json:"name,omitempty"` - // Values: Required. Immutable. The set of values representing the - // partition, which correspond to the partition schema defined in the - // parent entity. - Values []string `json:"values,omitempty"` + // SessionSpec: Optional. Configuration for sessions created for this + // environment. + SessionSpec *GoogleCloudDataplexV1EnvironmentSessionSpec `json:"sessionSpec,omitempty"` + + // SessionStatus: Output only. Status of sessions created for this + // environment. + SessionStatus *GoogleCloudDataplexV1EnvironmentSessionStatus `json:"sessionStatus,omitempty"` + + // State: Output only. Current state of the environment. + // + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "ACTIVE" - Resource is active, i.e., ready to use. + // "CREATING" - Resource is under creation. + // "DELETING" - Resource is under deletion. + // "ACTION_REQUIRED" - Resource is active but has unresolved actions. + State string `json:"state,omitempty"` + + // Uid: Output only. System generated globally unique ID for the + // environment. This ID will be different if the environment is deleted + // and re-created with the same name. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time when the environment was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Etag") to + // ForceSendFields is a list of field names (e.g. "CreateTime") 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 @@ -2914,8 +3101,8 @@ type GoogleCloudDataplexV1Partition struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty + // 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. @@ -2923,47 +3110,20 @@ type GoogleCloudDataplexV1Partition struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Partition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Partition +func (s *GoogleCloudDataplexV1Environment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Environment raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Schema: Schema information describing the -// structure and layout of the data. -type GoogleCloudDataplexV1Schema struct { - // Fields: Optional. The sequence of fields describing data in table - // entities. Note: BigQuery SchemaFields are immutable. - Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"` +type GoogleCloudDataplexV1EnvironmentEndpoints struct { + // Notebooks: Output only. URI to serve notebook APIs + Notebooks string `json:"notebooks,omitempty"` - // PartitionFields: Optional. The sequence of fields describing the - // partition structure in entities. If this field is empty, there are no - // partitions within the data. - PartitionFields []*GoogleCloudDataplexV1SchemaPartitionField `json:"partitionFields,omitempty"` - - // PartitionStyle: Optional. The structure of paths containing partition - // data within the entity. - // - // Possible values: - // "PARTITION_STYLE_UNSPECIFIED" - PartitionStyle unspecified - // "HIVE_COMPATIBLE" - Partitions are hive-compatible. Examples: - // gs://bucket/path/to/table/dt=2019-10-31/lang=en, - // gs://bucket/path/to/table/dt=2019-10-31/lang=en/late. - PartitionStyle string `json:"partitionStyle,omitempty"` - - // UserManaged: Required. Set to true if user-managed or false if - // managed by Dataplex. The default is false (managed by Dataplex). Set - // to falseto enable Dataplex discovery to update the schema. including - // new data discovery, schema inference, and schema evolution. Users - // retain the ability to input and edit the schema. Dataplex treats - // schema input by the user as though produced by a previous Dataplex - // discovery operation, and it will evolve the schema and take action - // based on that treatment. Set to true to fully manage the entity - // schema. This setting guarantees that Dataplex will not change schema - // fields. - UserManaged bool `json:"userManaged,omitempty"` + // Sql: Output only. URI to serve SQL APIs + Sql string `json:"sql,omitempty"` - // ForceSendFields is a list of field names (e.g. "Fields") to + // ForceSendFields is a list of field names (e.g. "Notebooks") 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 @@ -2971,8 +3131,8 @@ type GoogleCloudDataplexV1Schema struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Notebooks") 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. @@ -2980,47 +3140,24 @@ type GoogleCloudDataplexV1Schema struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1Schema) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Schema +func (s *GoogleCloudDataplexV1EnvironmentEndpoints) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentEndpoints raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1SchemaPartitionField: Represents a key field -// within the entity's partition structure. You could have up to 20 -// partition fields, but only the first 10 partitions have the filtering -// ability due to performance consideration. Note: Partition fields are -// immutable. -type GoogleCloudDataplexV1SchemaPartitionField struct { - // Name: Required. Partition field name must consist of letters, - // numbers, and underscores only, with a maximum of length of 256 - // characters, and must begin with a letter or underscore.. - Name string `json:"name,omitempty"` +// GoogleCloudDataplexV1EnvironmentInfrastructureSpec: Configuration for +// the underlying infrastructure used to run workloads. +type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct { + // Compute: Optional. Compute resources needed for analyze interactive + // workloads. + Compute *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources `json:"compute,omitempty"` - // Type: Required. Immutable. The type of field. - // - // Possible values: - // "TYPE_UNSPECIFIED" - SchemaType unspecified. - // "BOOLEAN" - Boolean field. - // "BYTE" - Single byte numeric field. - // "INT16" - 16-bit numeric field. - // "INT32" - 32-bit numeric field. - // "INT64" - 64-bit numeric field. - // "FLOAT" - Floating point numeric field. - // "DOUBLE" - Double precision numeric field. - // "DECIMAL" - Real value numeric field. - // "STRING" - Sequence of characters field. - // "BINARY" - Sequence of bytes field. - // "TIMESTAMP" - Date and time field. - // "DATE" - Date field. - // "TIME" - Time field. - // "RECORD" - Structured field. Nested fields that define the - // structure of the map. If all nested fields are nullable, this field - // represents a union. - // "NULL" - Null field that does not have values. - Type string `json:"type,omitempty"` + // OsImage: Required. Software Runtime Configuration for analyze + // interactive workloads. + OsImage *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime `json:"osImage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Compute") 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 @@ -3028,8 +3165,8 @@ type GoogleCloudDataplexV1SchemaPartitionField struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Compute") 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. @@ -3037,61 +3174,27 @@ type GoogleCloudDataplexV1SchemaPartitionField struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1SchemaPartitionField) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1SchemaPartitionField +func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpec raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1SchemaSchemaField: Represents a column field -// within a table schema. -type GoogleCloudDataplexV1SchemaSchemaField struct { - // Description: Optional. User friendly field description. Must be less - // than or equal to 1024 characters. - Description string `json:"description,omitempty"` - - // Fields: Optional. Any nested field for complex types. - Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"` - - // Mode: Required. Additional field semantics. - // - // Possible values: - // "MODE_UNSPECIFIED" - Mode unspecified. - // "REQUIRED" - The field has required semantics. - // "NULLABLE" - The field has optional semantics, and may be null. - // "REPEATED" - The field has repeated (0 or more) semantics, and is a - // list of values. - Mode string `json:"mode,omitempty"` +// GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources: +// Compute resources associated with the analyze interactive workloads. +type GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources struct { + // DiskSizeGb: Optional. Size in GB of the disk. Default is 100 GB. + DiskSizeGb int64 `json:"diskSizeGb,omitempty"` - // Name: Required. The name of the field. Must contain only letters, - // numbers and underscores, with a maximum length of 767 characters, and - // must begin with a letter or underscore. - Name string `json:"name,omitempty"` + // MaxNodeCount: Optional. Max configurable nodes. If max_node_count > + // node_count, then auto-scaling is enabled. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // Type: Required. The type of field. - // - // Possible values: - // "TYPE_UNSPECIFIED" - SchemaType unspecified. - // "BOOLEAN" - Boolean field. - // "BYTE" - Single byte numeric field. - // "INT16" - 16-bit numeric field. - // "INT32" - 32-bit numeric field. - // "INT64" - 64-bit numeric field. - // "FLOAT" - Floating point numeric field. - // "DOUBLE" - Double precision numeric field. - // "DECIMAL" - Real value numeric field. - // "STRING" - Sequence of characters field. - // "BINARY" - Sequence of bytes field. - // "TIMESTAMP" - Date and time field. - // "DATE" - Date field. - // "TIME" - Time field. - // "RECORD" - Structured field. Nested fields that define the - // structure of the map. If all nested fields are nullable, this field - // represents a union. - // "NULL" - Null field that does not have values. - Type string `json:"type,omitempty"` + // NodeCount: Optional. Total number of nodes in the sessions created + // for this environment. + NodeCount int64 `json:"nodeCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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 @@ -3099,45 +3202,44 @@ type GoogleCloudDataplexV1SchemaSchemaField struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") 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 + // NullFields is a list of field names (e.g. "DiskSizeGb") 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 *GoogleCloudDataplexV1SchemaSchemaField) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1SchemaSchemaField +func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Session: Represents an active analyze session -// running for a user. -type GoogleCloudDataplexV1Session struct { - // CreateTime: Output only. Session start time. - CreateTime string `json:"createTime,omitempty"` +// GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime: +// Software Runtime Configuration to run Analyze. +type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct { + // ImageVersion: Required. Dataplex Image version. + ImageVersion string `json:"imageVersion,omitempty"` - // Name: Output only. The relative resource name of the content, of the - // form: - // projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environm - // ent/{environment_id}/sessions/{session_id} - Name string `json:"name,omitempty"` + // JavaLibraries: Optional. List of Java jars to be included in the + // runtime environment. Valid input includes Cloud Storage URIs to Jar + // binaries. For example, gs://bucket-name/my/path/to/file.jar + JavaLibraries []string `json:"javaLibraries,omitempty"` - // Possible values: - // "STATE_UNSPECIFIED" - State is not specified. - // "ACTIVE" - Resource is active, i.e., ready to use. - // "CREATING" - Resource is under creation. - // "DELETING" - Resource is under deletion. - // "ACTION_REQUIRED" - Resource is active but has unresolved actions. - State string `json:"state,omitempty"` + // Properties: Optional. Spark properties to provide configuration for + // use in sessions created for this environment. The properties to set + // on daemon config files. Property keys are specified in + // prefix:property format. The prefix must be "spark". + Properties map[string]string `json:"properties,omitempty"` - // UserId: Output only. Email of user running the session. - UserId string `json:"userId,omitempty"` + // PythonPackages: Optional. A list of python packages to be installed. + // Valid formats include Cloud Storage URI to a PIP installable library. + // For example, gs://bucket-name/my/path/to/lib.tar.gz + PythonPackages []string `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "ImageVersion") 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 @@ -3145,62 +3247,64 @@ type GoogleCloudDataplexV1Session 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 + // NullFields is a list of field names (e.g. "ImageVersion") 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 *GoogleCloudDataplexV1Session) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Session +func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1SessionEvent: These messages contain information -// about sessions within an environment. The monitored resource is -// 'Environment'. -type GoogleCloudDataplexV1SessionEvent struct { - // EventSucceeded: The status of the event. - EventSucceeded bool `json:"eventSucceeded,omitempty"` - - // FastStartupEnabled: If the session is associated with an environment - // with fast startup enabled, and was created before being assigned to a - // user. - FastStartupEnabled bool `json:"fastStartupEnabled,omitempty"` +type GoogleCloudDataplexV1EnvironmentSessionSpec struct { + // EnableFastStartup: Optional. If True, this causes sessions to be + // pre-created and available for faster startup to enable interactive + // exploration use-cases. This defaults to False to avoid additional + // billed charges. These can only be set to True for the environment + // with name set to "default", and with default configuration. + EnableFastStartup bool `json:"enableFastStartup,omitempty"` - // Message: The log message. - Message string `json:"message,omitempty"` + // MaxIdleDuration: Optional. The idle time configuration of the + // session. The session will be auto-terminated at the end of this + // period. + MaxIdleDuration string `json:"maxIdleDuration,omitempty"` - // Query: The execution details of the query. - Query *GoogleCloudDataplexV1SessionEventQueryDetail `json:"query,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableFastStartup") + // 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:"-"` - // SessionId: Unique identifier for the session. - SessionId string `json:"sessionId,omitempty"` + // NullFields is a list of field names (e.g. "EnableFastStartup") 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:"-"` +} - // Type: The type of the event. - // - // Possible values: - // "EVENT_TYPE_UNSPECIFIED" - An unspecified event type. - // "START" - Event when the session is assigned to a user. - // "STOP" - Event for stop of a session. - // "QUERY" - Query events in the session. - // "CREATE" - Event for creation of a cluster. It is not yet assigned - // to a user. This comes before START in the sequence - Type string `json:"type,omitempty"` - - // UnassignedDuration: The idle duration of a warm pooled session before - // it is assigned to user. - UnassignedDuration string `json:"unassignedDuration,omitempty"` +func (s *GoogleCloudDataplexV1EnvironmentSessionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentSessionSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // UserId: The information about the user that created the session. It - // will be the email address of the user. - UserId string `json:"userId,omitempty"` +type GoogleCloudDataplexV1EnvironmentSessionStatus struct { + // Active: Output only. Queries over sessions to mark whether the + // environment is currently active or not + Active bool `json:"active,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventSucceeded") to + // ForceSendFields is a list of field names (e.g. "Active") 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 @@ -3208,166 +3312,143 @@ type GoogleCloudDataplexV1SessionEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EventSucceeded") 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. "Active") 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 *GoogleCloudDataplexV1SessionEvent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1SessionEvent +func (s *GoogleCloudDataplexV1EnvironmentSessionStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EnvironmentSessionStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1SessionEventQueryDetail: Execution details of -// the query. -type GoogleCloudDataplexV1SessionEventQueryDetail struct { - // DataProcessedBytes: The data processed by the query. - DataProcessedBytes int64 `json:"dataProcessedBytes,omitempty,string"` - - // Duration: Time taken for execution of the query. - Duration string `json:"duration,omitempty"` - - // Engine: Query Execution engine. - // - // Possible values: - // "ENGINE_UNSPECIFIED" - An unspecified Engine type. - // "SPARK_SQL" - Spark-sql engine is specified in Query. - // "BIGQUERY" - BigQuery engine is specified in Query. - Engine string `json:"engine,omitempty"` - - // QueryId: The unique Query id identifying the query. - QueryId string `json:"queryId,omitempty"` - - // QueryText: The query text executed. - QueryText string `json:"queryText,omitempty"` - - // ResultSizeBytes: The size of results the query produced. - ResultSizeBytes int64 `json:"resultSizeBytes,omitempty,string"` +// GoogleCloudDataplexV1Job: A job represents an instance of a task. +type GoogleCloudDataplexV1Job struct { + // EndTime: Output only. The time when the job ended. + EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataProcessedBytes") - // 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:"-"` + // Message: Output only. Additional information about the current state. + Message string `json:"message,omitempty"` - // NullFields is a list of field names (e.g. "DataProcessedBytes") 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:"-"` -} + // Name: Output only. The relative resource name of the job, of the + // form: + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task + // s/{task_id}/jobs/{job_id}. + Name string `json:"name,omitempty"` -func (s *GoogleCloudDataplexV1SessionEventQueryDetail) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1SessionEventQueryDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // RetryCount: Output only. The number of times the job has been retried + // (excluding the initial attempt). + RetryCount int64 `json:"retryCount,omitempty"` -// GoogleCloudDataplexV1StorageFormat: Describes the format of the data -// within its storage location. -type GoogleCloudDataplexV1StorageFormat struct { - // CompressionFormat: Optional. The compression type associated with the - // stored data. If unspecified, the data is uncompressed. + // Service: Output only. The underlying service running a job. // // Possible values: - // "COMPRESSION_FORMAT_UNSPECIFIED" - CompressionFormat unspecified. - // Implies uncompressed data. - // "GZIP" - GZip compressed set of files. - // "BZIP2" - BZip2 compressed set of files. - CompressionFormat string `json:"compressionFormat,omitempty"` + // "SERVICE_UNSPECIFIED" - Service used to run the job is unspecified. + // "DATAPROC" - Dataproc service is used to run this job. + Service string `json:"service,omitempty"` - // Csv: Optional. Additional information about CSV formatted data. - Csv *GoogleCloudDataplexV1StorageFormatCsvOptions `json:"csv,omitempty"` + // ServiceJob: Output only. The full resource name for the job run under + // a particular service. + ServiceJob string `json:"serviceJob,omitempty"` - // Format: Output only. The data format associated with the stored data, - // which represents content type values. The value is inferred from mime - // type. + // StartTime: Output only. The time when the job was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. Execution state for the job. // // Possible values: - // "FORMAT_UNSPECIFIED" - Format unspecified. - // "PARQUET" - Parquet-formatted structured data. - // "AVRO" - Avro-formatted structured data. - // "ORC" - Orc-formatted structured data. - // "CSV" - Csv-formatted semi-structured data. - // "JSON" - Json-formatted semi-structured data. - // "IMAGE" - Image data formats (such as jpg and png). - // "AUDIO" - Audio data formats (such as mp3, and wav). - // "VIDEO" - Video data formats (such as mp4 and mpg). - // "TEXT" - Textual data formats (such as txt and xml). - // "TFRECORD" - TensorFlow record format. - // "OTHER" - Data that doesn't match a specific format. - // "UNKNOWN" - Data of an unknown format. - Format string `json:"format,omitempty"` + // "STATE_UNSPECIFIED" - The job state is unknown. + // "RUNNING" - The job is running. + // "CANCELLING" - The job is cancelling. + // "CANCELLED" - The job cancellation was successful. + // "SUCCEEDED" - The job completed successfully. + // "FAILED" - The job is no longer running due to an error. + // "ABORTED" - The job was cancelled outside of Dataplex. + State string `json:"state,omitempty"` - // Json: Optional. Additional information about CSV formatted data. - Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"` + // Uid: Output only. System generated globally unique ID for the job. + Uid string `json:"uid,omitempty"` - // MimeType: Required. The mime type descriptor for the data. Must match - // the pattern {type}/{subtype}. Supported values: application/x-parquet - // application/x-avro application/x-orc application/x-tfrecord - // application/x-parquet+iceberg application/x-avro+iceberg - // application/x-orc+iceberg application/json application/{subtypes} - // text/csv text/ image/{image subtype} video/{video subtype} - // audio/{audio subtype} - MimeType string `json:"mimeType,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CompressionFormat") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "CompressionFormat") 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. "EndTime") 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 *GoogleCloudDataplexV1StorageFormat) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1StorageFormat +func (s *GoogleCloudDataplexV1Job) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Job raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1StorageFormatCsvOptions: Describes CSV and -// similar semi-structured data formats. -type GoogleCloudDataplexV1StorageFormatCsvOptions struct { - // Delimiter: Optional. The delimiter used to separate values. Defaults - // to ','. - Delimiter string `json:"delimiter,omitempty"` +// GoogleCloudDataplexV1JobEvent: The payload associated with Job logs +// that contains events describing jobs that have run within a Lake. +type GoogleCloudDataplexV1JobEvent struct { + // EndTime: The time when the job ended running. + EndTime string `json:"endTime,omitempty"` - // Encoding: Optional. The character encoding of the data. Accepts - // "US-ASCII", "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if - // unspecified. - Encoding string `json:"encoding,omitempty"` + // JobId: The unique id identifying the job. + JobId string `json:"jobId,omitempty"` - // HeaderRows: Optional. The number of rows to interpret as header rows - // that should be skipped when reading data rows. Defaults to 0. - HeaderRows int64 `json:"headerRows,omitempty"` + // Message: The log message. + Message string `json:"message,omitempty"` - // Quote: Optional. The character used to quote column values. Accepts - // '"' (double quotation mark) or ''' (single quotation mark). Defaults - // to '"' (double quotation mark) if unspecified. - Quote string `json:"quote,omitempty"` + // Retries: The number of retries. + Retries int64 `json:"retries,omitempty"` - // ForceSendFields is a list of field names (e.g. "Delimiter") to + // Service: The service used to execute the job. + // + // Possible values: + // "SERVICE_UNSPECIFIED" - Unspecified service. + // "DATAPROC" - Cloud Dataproc. + Service string `json:"service,omitempty"` + + // ServiceJob: The reference to the job within the service. + ServiceJob string `json:"serviceJob,omitempty"` + + // StartTime: The time when the job started running. + StartTime string `json:"startTime,omitempty"` + + // State: The job state on completion. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified job state. + // "SUCCEEDED" - Job successfully completed. + // "FAILED" - Job was unsuccessful. + // "CANCELLED" - Job was cancelled by the user. + // "ABORTED" - Job was cancelled or aborted via the service executing + // the job. + State string `json:"state,omitempty"` + + // Type: The type of the job. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unspecified job type. + // "SPARK" - Spark jobs. + // "NOTEBOOK" - Notebook jobs. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") 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 @@ -3375,7 +3456,7 @@ type GoogleCloudDataplexV1StorageFormatCsvOptions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Delimiter") to include in + // NullFields is a list of field names (e.g. "EndTime") 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 @@ -3384,76 +3465,57 @@ type GoogleCloudDataplexV1StorageFormatCsvOptions struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1StorageFormatCsvOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1StorageFormatCsvOptions +func (s *GoogleCloudDataplexV1JobEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1JobEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1StorageFormatJsonOptions: Describes JSON data -// format. -type GoogleCloudDataplexV1StorageFormatJsonOptions struct { - // Encoding: Optional. The character encoding of the data. Accepts - // "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not - // specified. - Encoding string `json:"encoding,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Encoding") 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. "Encoding") 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 *GoogleCloudDataplexV1StorageFormatJsonOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1StorageFormatJsonOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// GoogleCloudDataplexV1Lake: A lake is a centralized repository for +// managing enterprise data across the organization distributed across +// many cloud projects, and stored in a variety of storage services such +// as Google Cloud Storage and BigQuery. The resources attached to a +// lake are referred to as managed resources. Data within these managed +// resources can be structured or unstructured. A lake provides data +// admins with tools to organize, secure and manage their data at scale, +// and provides data scientists and data engineers an integrated +// experience to easily search, discover, analyze and transform data and +// associated metadata. +type GoogleCloudDataplexV1Lake struct { + // AssetStatus: Output only. Aggregated status of the underlying assets + // of the lake. + AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"` -// GoogleCloudDataplexV1Task: A task represents a user-visible job. -type GoogleCloudDataplexV1Task struct { - // CreateTime: Output only. The time when the task was created. + // CreateTime: Output only. The time when the lake was created. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of the task. + // Description: Optional. Description of the lake. Description string `json:"description,omitempty"` // DisplayName: Optional. User friendly display name. DisplayName string `json:"displayName,omitempty"` - // ExecutionSpec: Required. Spec related to how a task is executed. - ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"` + // Labels: Optional. User-defined labels for the lake. + Labels map[string]string `json:"labels,omitempty"` - // ExecutionStatus: Output only. Status of the latest task executions. - ExecutionStatus *GoogleCloudDataplexV1TaskExecutionStatus `json:"executionStatus,omitempty"` + // Metastore: Optional. Settings to manage lake and Dataproc Metastore + // service instance association. + Metastore *GoogleCloudDataplexV1LakeMetastore `json:"metastore,omitempty"` - // Labels: Optional. User-defined labels for the task. - Labels map[string]string `json:"labels,omitempty"` + // MetastoreStatus: Output only. Metastore status of the lake. + MetastoreStatus *GoogleCloudDataplexV1LakeMetastoreStatus `json:"metastoreStatus,omitempty"` - // Name: Output only. The relative resource name of the task, of the + // Name: Output only. The relative resource name of the lake, of the // form: - // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ - // tasks/{task_id}. + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}. Name string `json:"name,omitempty"` - // Notebook: Config related to running scheduled Notebooks. - Notebook *GoogleCloudDataplexV1TaskNotebookTaskConfig `json:"notebook,omitempty"` - - // Spark: Config related to running custom Spark tasks. - Spark *GoogleCloudDataplexV1TaskSparkTaskConfig `json:"spark,omitempty"` + // ServiceAccount: Output only. Service account associated with this + // lake. This service account must be authorized to access or operate on + // resources managed by the lake. + ServiceAccount string `json:"serviceAccount,omitempty"` - // State: Output only. Current state of the task. + // State: Output only. Current state of the lake. // // Possible values: // "STATE_UNSPECIFIED" - State is not specified. @@ -3463,23 +3525,19 @@ type GoogleCloudDataplexV1Task struct { // "ACTION_REQUIRED" - Resource is active but has unresolved actions. State string `json:"state,omitempty"` - // TriggerSpec: Required. Spec related to how often and when a task - // should be triggered. - TriggerSpec *GoogleCloudDataplexV1TaskTriggerSpec `json:"triggerSpec,omitempty"` - - // Uid: Output only. System generated globally unique ID for the task. - // This ID will be different if the task is deleted and re-created with + // Uid: Output only. System generated globally unique ID for the lake. + // This ID will be different if the lake is deleted and re-created with // the same name. Uid string `json:"uid,omitempty"` - // UpdateTime: Output only. The time when the task was last updated. + // UpdateTime: Output only. The time when the lake was last updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "AssetStatus") 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 @@ -3487,57 +3545,31 @@ type GoogleCloudDataplexV1Task 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 + // NullFields is a list of field names (e.g. "AssetStatus") 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 *GoogleCloudDataplexV1Task) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Task +func (s *GoogleCloudDataplexV1Lake) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Lake raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskExecutionSpec: Execution related settings, -// like retry and service_account. -type GoogleCloudDataplexV1TaskExecutionSpec struct { - // Args: Optional. The arguments to pass to the task. The args can use - // placeholders of the format ${placeholder} as part of key/value - // string. These will be interpolated before passing the args to the - // driver. Currently supported placeholders: - ${task_id} - ${job_time} - // To pass positional args, set the key as TASK_ARGS. The value should - // be a comma-separated string of all the positional arguments. To use a - // delimiter other than comma, refer to - // https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case - // of other keys being present in the args, then TASK_ARGS will be - // passed as the last argument. - Args map[string]string `json:"args,omitempty"` - - // KmsKey: Optional. The Cloud KMS key to use for encryption, of the - // form: - // projects/{project_number}/locations/{location_id}/keyRings/{key-ring-n - // ame}/cryptoKeys/{key-name}. - KmsKey string `json:"kmsKey,omitempty"` - - // MaxJobExecutionLifetime: Optional. The maximum duration after which - // the job execution is expired. - MaxJobExecutionLifetime string `json:"maxJobExecutionLifetime,omitempty"` - - // Project: Optional. The project in which jobs are run. By default, the - // project containing the Lake is used. If a project is provided, the - // ExecutionSpec.service_account must belong to this project. - Project string `json:"project,omitempty"` - - // ServiceAccount: Required. Service account to use to execute a task. - // If not provided, the default Compute service account for the project - // is used. - ServiceAccount string `json:"serviceAccount,omitempty"` +// GoogleCloudDataplexV1LakeMetastore: Settings to manage association of +// Dataproc Metastore with a lake. +type GoogleCloudDataplexV1LakeMetastore struct { + // Service: Optional. A relative reference to the Dataproc Metastore + // (https://cloud.google.com/dataproc-metastore/docs) service associated + // with the lake: + // projects/{project_id}/locations/{location_id}/services/{service_id} + Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "Args") to + // ForceSendFields is a list of field names (e.g. "Service") 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 @@ -3545,8 +3577,8 @@ type GoogleCloudDataplexV1TaskExecutionSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Service") 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. @@ -3554,22 +3586,37 @@ type GoogleCloudDataplexV1TaskExecutionSpec struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskExecutionSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskExecutionSpec +func (s *GoogleCloudDataplexV1LakeMetastore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1LakeMetastore raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskExecutionStatus: Status of the task -// execution (e.g. Jobs). -type GoogleCloudDataplexV1TaskExecutionStatus struct { - // LatestJob: Output only. latest job execution - LatestJob *GoogleCloudDataplexV1Job `json:"latestJob,omitempty"` +// GoogleCloudDataplexV1LakeMetastoreStatus: Status of Lake and Dataproc +// Metastore service instance association. +type GoogleCloudDataplexV1LakeMetastoreStatus struct { + // Endpoint: The URI of the endpoint used to access the Metastore + // service. + Endpoint string `json:"endpoint,omitempty"` - // UpdateTime: Output only. Last update time of the status. + // Message: Additional information about the current status. + Message string `json:"message,omitempty"` + + // State: Current state of association. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified. + // "NONE" - A Metastore service instance is not associated with the + // lake. + // "READY" - A Metastore service instance is attached to the lake. + // "UPDATING" - Attach/detach is in progress. + // "ERROR" - Attach/detach could not be done due to errors. + State string `json:"state,omitempty"` + + // UpdateTime: Last update time of the metastore status of the lake. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "LatestJob") to + // ForceSendFields is a list of field names (e.g. "Endpoint") 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 @@ -3577,7 +3624,7 @@ type GoogleCloudDataplexV1TaskExecutionStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LatestJob") to include in + // NullFields is a list of field names (e.g. "Endpoint") 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 @@ -3586,26 +3633,26 @@ type GoogleCloudDataplexV1TaskExecutionStatus struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskExecutionStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskExecutionStatus +func (s *GoogleCloudDataplexV1LakeMetastoreStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1LakeMetastoreStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskInfrastructureSpec: Configuration for the -// underlying infrastructure used to run workloads. -type GoogleCloudDataplexV1TaskInfrastructureSpec struct { - // Batch: Compute resources needed for a Task when using Dataproc - // Serverless. - Batch *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources `json:"batch,omitempty"` +// GoogleCloudDataplexV1ListActionsResponse: List actions response. +type GoogleCloudDataplexV1ListActionsResponse struct { + // Actions: Actions under the given parent lake/zone/asset. + Actions []*GoogleCloudDataplexV1Action `json:"actions,omitempty"` - // ContainerImage: Container Image Runtime Configuration. - ContainerImage *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime `json:"containerImage,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // VpcNetwork: Vpc network. - VpcNetwork *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork `json:"vpcNetwork,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Batch") to + // ForceSendFields is a list of field names (e.g. "Actions") 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 @@ -3613,8 +3660,8 @@ type GoogleCloudDataplexV1TaskInfrastructureSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Batch") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Actions") 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. @@ -3622,25 +3669,26 @@ type GoogleCloudDataplexV1TaskInfrastructureSpec struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskInfrastructureSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpec +func (s *GoogleCloudDataplexV1ListActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListActionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources: -// Batch compute resources associated with the task. -type GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources struct { - // ExecutorsCount: Optional. Total number of job executors. Executor - // Count should be between 2 and 100. Default=2 - ExecutorsCount int64 `json:"executorsCount,omitempty"` +// GoogleCloudDataplexV1ListAssetsResponse: List assets response. +type GoogleCloudDataplexV1ListAssetsResponse struct { + // Assets: Asset under the given parent zone. + Assets []*GoogleCloudDataplexV1Asset `json:"assets,omitempty"` - // MaxExecutorsCount: Optional. Max configurable executors. If - // max_executors_count > executors_count, then auto-scaling is enabled. - // Max Executor Count should be between 2 and 1000. Default=1000 - MaxExecutorsCount int64 `json:"maxExecutorsCount,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutorsCount") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Assets") 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 @@ -3648,47 +3696,35 @@ type GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExecutorsCount") 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. "Assets") 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 *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources +func (s *GoogleCloudDataplexV1ListAssetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListAssetsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime: -// Container Image Runtime Configuration used with Batch execution. -type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct { - // Image: Optional. Container image to use. - Image string `json:"image,omitempty"` - - // JavaJars: Optional. A list of Java JARS to add to the classpath. - // Valid input includes Cloud Storage URIs to Jar binaries. For example, - // gs://bucket-name/my/path/to/file.jar - JavaJars []string `json:"javaJars,omitempty"` +// GoogleCloudDataplexV1ListContentResponse: List content response. +type GoogleCloudDataplexV1ListContentResponse struct { + // Content: Content under the given parent lake. + Content []*GoogleCloudDataplexV1Content `json:"content,omitempty"` - // Properties: Optional. Override to common configuration of open source - // components installed on the Dataproc cluster. The properties to set - // on daemon config files. Property keys are specified in - // prefix:property format, for example core:hadoop.tmp.dir. For more - // information, see Cluster properties - // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - Properties map[string]string `json:"properties,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // PythonPackages: Optional. A list of python packages to be installed. - // Valid formats include Cloud Storage URI to a PIP installable library. - // For example, gs://bucket-name/my/path/to/lib.tar.gz - PythonPackages []string `json:"pythonPackages,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Image") to + // ForceSendFields is a list of field names (e.g. "Content") 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 @@ -3696,8 +3732,8 @@ type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Image") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Content") 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. @@ -3705,28 +3741,27 @@ type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime +func (s *GoogleCloudDataplexV1ListContentResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListContentResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork: Cloud VPC -// Network used to run the infrastructure. -type GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork struct { - // Network: Optional. The Cloud VPC network in which the job is run. By - // default, the Cloud VPC network named Default within the project is - // used. - Network string `json:"network,omitempty"` +// GoogleCloudDataplexV1ListDataScanJobsResponse: List DataScanJobs +// response. +type GoogleCloudDataplexV1ListDataScanJobsResponse struct { + // DataScanJobs: DataScanJobs (metadata only) under a given dataScan. + DataScanJobs []*GoogleCloudDataplexV1DataScanJob `json:"dataScanJobs,omitempty"` - // NetworkTags: Optional. List of network tags to apply to the job. - NetworkTags []string `json:"networkTags,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // SubNetwork: Optional. The Cloud VPC sub-network in which the job is - // run. - SubNetwork string `json:"subNetwork,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Network") to + // ForceSendFields is a list of field names (e.g. "DataScanJobs") 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 @@ -3734,44 +3769,38 @@ type GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Network") 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 + // NullFields is a list of field names (e.g. "DataScanJobs") 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 *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork +func (s *GoogleCloudDataplexV1ListDataScanJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListDataScanJobsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskNotebookTaskConfig: Config for running -// scheduled notebooks. -type GoogleCloudDataplexV1TaskNotebookTaskConfig struct { - // ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted - // into the working directory of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` +// GoogleCloudDataplexV1ListDataScansResponse: List dataScans response. +type GoogleCloudDataplexV1ListDataScansResponse struct { + // DataScans: DataScans (metadata only) under the given parent location. + DataScans []*GoogleCloudDataplexV1DataScan `json:"dataScans,omitempty"` - // FileUris: Optional. Cloud Storage URIs of files to be placed in the - // working directory of each executor. - FileUris []string `json:"fileUris,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // InfrastructureSpec: Optional. Infrastructure specification for the - // execution. - InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` - // Notebook: Required. Path to input notebook. This can be the Cloud - // Storage URI of the notebook file or the path to a Notebook Content. - // The execution args are accessible as environment variables - // (TASK_key=value). - Notebook string `json:"notebook,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // ForceSendFields is a list of field names (e.g. "DataScans") 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 @@ -3779,64 +3808,73 @@ type GoogleCloudDataplexV1TaskNotebookTaskConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") 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 + // NullFields is a list of field names (e.g. "DataScans") 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 *GoogleCloudDataplexV1TaskNotebookTaskConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskNotebookTaskConfig +func (s *GoogleCloudDataplexV1ListDataScansResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListDataScansResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskSparkTaskConfig: User-specified config for -// running a Spark task. -type GoogleCloudDataplexV1TaskSparkTaskConfig struct { - // ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted - // into the working directory of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` +// GoogleCloudDataplexV1ListEntitiesResponse: List metadata entities +// response. +type GoogleCloudDataplexV1ListEntitiesResponse struct { + // Entities: Entities in the specified parent zone. + Entities []*GoogleCloudDataplexV1Entity `json:"entities,omitempty"` - // FileUris: Optional. Cloud Storage URIs of files to be placed in the - // working directory of each executor. - FileUris []string `json:"fileUris,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no remaining results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // InfrastructureSpec: Optional. Infrastructure specification for the - // execution. - InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // MainClass: The name of the driver's main class. The jar file that - // contains the class must be in the default CLASSPATH or specified in - // jar_file_uris. The execution args are passed in as a sequence of - // named process arguments (--key=value). - MainClass string `json:"mainClass,omitempty"` + // ForceSendFields is a list of field names (e.g. "Entities") 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:"-"` - // MainJarFileUri: The Cloud Storage URI of the jar file that contains - // the main class. The execution args are passed in as a sequence of - // named process arguments (--key=value). - MainJarFileUri string `json:"mainJarFileUri,omitempty"` + // NullFields is a list of field names (e.g. "Entities") 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:"-"` +} - // PythonScriptFile: The Gcloud Storage URI of the main Python file to - // use as the driver. Must be a .py file. The execution args are passed - // in as a sequence of named process arguments (--key=value). - PythonScriptFile string `json:"pythonScriptFile,omitempty"` +func (s *GoogleCloudDataplexV1ListEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListEntitiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // SqlScript: The query text. The execution args are used to declare a - // set of script variables (set key="value";). - SqlScript string `json:"sqlScript,omitempty"` +// GoogleCloudDataplexV1ListEnvironmentsResponse: List environments +// response. +type GoogleCloudDataplexV1ListEnvironmentsResponse struct { + // Environments: Environments under the given parent lake. + Environments []*GoogleCloudDataplexV1Environment `json:"environments,omitempty"` - // SqlScriptFile: A reference to a query file. This can be the Cloud - // Storage URI of the query file or it can the path to a SqlScript - // Content. The execution args are used to declare a set of script - // variables (set key="value";). - SqlScriptFile string `json:"sqlScriptFile,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Environments") 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 @@ -3844,7 +3882,7 @@ type GoogleCloudDataplexV1TaskSparkTaskConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include + // NullFields is a list of field names (e.g. "Environments") 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 @@ -3853,48 +3891,26 @@ type GoogleCloudDataplexV1TaskSparkTaskConfig struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskSparkTaskConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskSparkTaskConfig +func (s *GoogleCloudDataplexV1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListEnvironmentsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1TaskTriggerSpec: Task scheduling and trigger -// settings. -type GoogleCloudDataplexV1TaskTriggerSpec struct { - // Disabled: Optional. Prevent the task from executing. This does not - // cancel already running tasks. It is intended to temporarily disable - // RECURRING tasks. - Disabled bool `json:"disabled,omitempty"` - - // MaxRetries: Optional. Number of retry attempts before aborting. Set - // to zero to never attempt to retry a failed task. - MaxRetries int64 `json:"maxRetries,omitempty"` - - // Schedule: Optional. Cron schedule - // (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. - // To explicitly set a timezone to the cron tab, apply a prefix in the - // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The - // ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - // database. For example, "CRON_TZ=America/New_York 1 * * * *", or - // "TZ=America/New_York 1 * * * *". This field is required for RECURRING - // tasks. - Schedule string `json:"schedule,omitempty"` +// GoogleCloudDataplexV1ListJobsResponse: List jobs response. +type GoogleCloudDataplexV1ListJobsResponse struct { + // Jobs: Jobs under a given task. + Jobs []*GoogleCloudDataplexV1Job `json:"jobs,omitempty"` - // StartTime: Optional. The first run of the task will be after this - // time. If not specified, the task will run shortly after being - // submitted if ON_DEMAND and based on the schedule if RECURRING. - StartTime string `json:"startTime,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // Type: Required. Immutable. Trigger type of the user-specified Task. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Unspecified trigger type. - // "ON_DEMAND" - The task runs one-time shortly after Task Creation. - // "RECURRING" - The task is scheduled to run periodically. - Type string `json:"type,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Disabled") to + // ForceSendFields is a list of field names (e.g. "Jobs") 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 @@ -3902,8 +3918,8 @@ type GoogleCloudDataplexV1TaskTriggerSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Disabled") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Jobs") 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. @@ -3911,85 +3927,29 @@ type GoogleCloudDataplexV1TaskTriggerSpec struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1TaskTriggerSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1TaskTriggerSpec +func (s *GoogleCloudDataplexV1ListJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListJobsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1Zone: A zone represents a logical group of -// related assets within a lake. A zone can be used to map to -// organizational structure or represent stages of data readiness from -// raw to curated. It provides managing behavior that is shared or -// inherited by all contained assets. -type GoogleCloudDataplexV1Zone struct { - // AssetStatus: Output only. Aggregated status of the underlying assets - // of the zone. - AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"` +// GoogleCloudDataplexV1ListLakesResponse: List lakes response. +type GoogleCloudDataplexV1ListLakesResponse struct { + // Lakes: Lakes under the given parent location. + Lakes []*GoogleCloudDataplexV1Lake `json:"lakes,omitempty"` - // CreateTime: Output only. The time when the zone was created. - CreateTime string `json:"createTime,omitempty"` - - // Description: Optional. Description of the zone. - Description string `json:"description,omitempty"` - - // DiscoverySpec: Optional. Specification of the discovery feature - // applied to data in this zone. - DiscoverySpec *GoogleCloudDataplexV1ZoneDiscoverySpec `json:"discoverySpec,omitempty"` - - // DisplayName: Optional. User friendly display name. - DisplayName string `json:"displayName,omitempty"` - - // Labels: Optional. User defined labels for the zone. - Labels map[string]string `json:"labels,omitempty"` - - // Name: Output only. The relative resource name of the zone, of the - // form: - // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zone - // s/{zone_id}. - Name string `json:"name,omitempty"` - - // ResourceSpec: Required. Specification of the resources that are - // referenced by the assets within this zone. - ResourceSpec *GoogleCloudDataplexV1ZoneResourceSpec `json:"resourceSpec,omitempty"` - - // State: Output only. Current state of the zone. - // - // Possible values: - // "STATE_UNSPECIFIED" - State is not specified. - // "ACTIVE" - Resource is active, i.e., ready to use. - // "CREATING" - Resource is under creation. - // "DELETING" - Resource is under deletion. - // "ACTION_REQUIRED" - Resource is active but has unresolved actions. - State string `json:"state,omitempty"` - - // Type: Required. Immutable. The type of the zone. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Zone type not specified. - // "RAW" - A zone that contains data that needs further processing - // before it is considered generally ready for consumption and analytics - // workloads. - // "CURATED" - A zone that contains data that is considered to be - // ready for broader consumption and analytics workloads. Curated - // structured data stored in Cloud Storage must conform to certain file - // formats (parquet, avro and orc) and organized in a hive-compatible - // directory layout. - Type string `json:"type,omitempty"` - - // Uid: Output only. System generated globally unique ID for the zone. - // This ID will be different if the zone is deleted and re-created with - // the same name. - Uid string `json:"uid,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // UpdateTime: Output only. The time when the zone was last updated. - UpdateTime string `json:"updateTime,omitempty"` + // UnreachableLocations: Locations that could not be reached. + UnreachableLocations []string `json:"unreachableLocations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetStatus") to + // ForceSendFields is a list of field names (e.g. "Lakes") 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 @@ -3997,61 +3957,36 @@ type GoogleCloudDataplexV1Zone struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssetStatus") 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 + // NullFields is a list of field names (e.g. "Lakes") 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 *GoogleCloudDataplexV1Zone) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1Zone +func (s *GoogleCloudDataplexV1ListLakesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListLakesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ZoneDiscoverySpec: Settings to manage the -// metadata discovery and publishing in a zone. -type GoogleCloudDataplexV1ZoneDiscoverySpec struct { - // CsvOptions: Optional. Configuration for CSV data. - CsvOptions *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions `json:"csvOptions,omitempty"` - - // Enabled: Required. Whether discovery is enabled. - Enabled bool `json:"enabled,omitempty"` - - // ExcludePatterns: Optional. The list of patterns to apply for - // selecting data to exclude during discovery. For Cloud Storage bucket - // assets, these are interpreted as glob patterns used to match object - // names. For BigQuery dataset assets, these are interpreted as patterns - // to match table names. - ExcludePatterns []string `json:"excludePatterns,omitempty"` - - // IncludePatterns: Optional. The list of patterns to apply for - // selecting data to include during discovery if only a subset of the - // data should considered. For Cloud Storage bucket assets, these are - // interpreted as glob patterns used to match object names. For BigQuery - // dataset assets, these are interpreted as patterns to match table - // names. - IncludePatterns []string `json:"includePatterns,omitempty"` +// GoogleCloudDataplexV1ListPartitionsResponse: List metadata partitions +// response. +type GoogleCloudDataplexV1ListPartitionsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no remaining results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // JsonOptions: Optional. Configuration for Json data. - JsonOptions *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"` + // Partitions: Partitions under the specified parent entity. + Partitions []*GoogleCloudDataplexV1Partition `json:"partitions,omitempty"` - // Schedule: Optional. Cron schedule - // (https://en.wikipedia.org/wiki/Cron) for running discovery - // periodically. Successive discovery runs must be scheduled at least 60 - // minutes apart. The default value is to run discovery every 60 - // minutes. To explicitly set a timezone to the cron tab, apply a prefix - // in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or - // TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid - // string from IANA time zone database. For example, - // "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * - // *". - Schedule string `json:"schedule,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CsvOptions") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -4059,42 +3994,35 @@ type GoogleCloudDataplexV1ZoneDiscoverySpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CsvOptions") 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 + // NullFields is a list of field names (e.g. "NextPageToken") 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 *GoogleCloudDataplexV1ZoneDiscoverySpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpec +func (s *GoogleCloudDataplexV1ListPartitionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListPartitionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions: Describe CSV and -// similar semi-structured data formats. -type GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions struct { - // Delimiter: Optional. The delimiter being used to separate values. - // This defaults to ','. - Delimiter string `json:"delimiter,omitempty"` - - // DisableTypeInference: Optional. Whether to disable the inference of - // data type for CSV data. If true, all columns will be registered as - // strings. - DisableTypeInference bool `json:"disableTypeInference,omitempty"` +// GoogleCloudDataplexV1ListSessionsResponse: List sessions response. +type GoogleCloudDataplexV1ListSessionsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // Encoding: Optional. The character encoding of the data. The default - // is UTF-8. - Encoding string `json:"encoding,omitempty"` + // Sessions: Sessions under a given environment. + Sessions []*GoogleCloudDataplexV1Session `json:"sessions,omitempty"` - // HeaderRows: Optional. The number of rows to interpret as header rows - // that should be skipped when reading data rows. - HeaderRows int64 `json:"headerRows,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Delimiter") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -4102,73 +4030,38 @@ type GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Delimiter") 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 + // NullFields is a list of field names (e.g. "NextPageToken") 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 *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions +func (s *GoogleCloudDataplexV1ListSessionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListSessionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions: Describe JSON data -// format. -type GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions struct { - // DisableTypeInference: Optional. Whether to disable the inference of - // data type for Json data. If true, all columns will be registered as - // their primitive types (strings, number or boolean). - DisableTypeInference bool `json:"disableTypeInference,omitempty"` - - // Encoding: Optional. The character encoding of the data. The default - // is UTF-8. - Encoding string `json:"encoding,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisableTypeInference") 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:"-"` +// GoogleCloudDataplexV1ListTasksResponse: List tasks response. +type GoogleCloudDataplexV1ListTasksResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` - // NullFields is a list of field names (e.g. "DisableTypeInference") 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:"-"` -} + // Tasks: Tasks under the given parent lake. + Tasks []*GoogleCloudDataplexV1Task `json:"tasks,omitempty"` -func (s *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // UnreachableLocations: Locations that could not be reached. + UnreachableLocations []string `json:"unreachableLocations,omitempty"` -// GoogleCloudDataplexV1ZoneResourceSpec: Settings for resources -// attached as assets within a zone. -type GoogleCloudDataplexV1ZoneResourceSpec struct { - // LocationType: Required. Immutable. The location type of the resources - // that are allowed to be attached to the assets within this zone. - // - // Possible values: - // "LOCATION_TYPE_UNSPECIFIED" - Unspecified location type. - // "SINGLE_REGION" - Resources that are associated with a single - // region. - // "MULTI_REGION" - Resources that are associated with a multi-region - // location. - LocationType string `json:"locationType,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LocationType") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -4176,7 +4069,7 @@ type GoogleCloudDataplexV1ZoneResourceSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LocationType") to include + // NullFields is a list of field names (e.g. "NextPageToken") 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 @@ -4185,27 +4078,26 @@ type GoogleCloudDataplexV1ZoneResourceSpec struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1ZoneResourceSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1ZoneResourceSpec +func (s *GoogleCloudDataplexV1ListTasksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListTasksResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudLocationListLocationsResponse: The response message for -// Locations.ListLocations. -type GoogleCloudLocationListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. - Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"` - - // NextPageToken: The standard List next-page token. +// GoogleCloudDataplexV1ListZonesResponse: List zones response. +type GoogleCloudDataplexV1ListZonesResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` + // Zones: Zones under the given parent lake. + Zones []*GoogleCloudDataplexV1Zone `json:"zones,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -4213,7 +4105,59 @@ type GoogleCloudLocationListLocationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in + // NullFields is a list of field names (e.g. "NextPageToken") 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 *GoogleCloudDataplexV1ListZonesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListZonesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1OperationMetadata: Represents the metadata of a +// long-running operation. +type GoogleCloudDataplexV1OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to Code.CANCELLED. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 @@ -4222,41 +4166,41 @@ type GoogleCloudLocationListLocationsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudLocationListLocationsResponse +func (s *GoogleCloudDataplexV1OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1OperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudLocationLocation: A resource that represents Google Cloud -// Platform location. -type GoogleCloudLocationLocation struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". - LocationId string `json:"locationId,omitempty"` +// GoogleCloudDataplexV1Partition: Represents partition metadata +// contained within entity instances. +type GoogleCloudDataplexV1Partition struct { + // Etag: Optional. The etag for this partition. + Etag string `json:"etag,omitempty"` - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Location: Required. Immutable. The location of the entity data within + // the partition, for example, + // gs://bucket/path/to/entity/key1=value1/key2=value2. Or + // projects//datasets//tables/ + Location string `json:"location,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" + // Name: Output only. Partition values used in the HTTP URL must be + // double encoded. For example, url_encode(url_encode(value)) can be + // used to encode "US:CA/CA#Sunnyvale so that the request URL ends with + // "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the + // response retains the encoded format. Name string `json:"name,omitempty"` + // Values: Required. Immutable. The set of values representing the + // partition, which correspond to the partition schema defined in the + // parent entity. + Values []string `json:"values,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "Etag") 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 @@ -4264,50 +4208,35 @@ type GoogleCloudLocationLocation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") 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 + // NullFields is a list of field names (e.g. "Etag") 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 *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudLocationLocation +func (s *GoogleCloudDataplexV1Partition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Partition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditConfig: Specifies the audit configuration for a -// service. The configuration determines which permission types are -// logged, and what identities, if any, are exempted from logging. An -// AuditConfig must have one or more AuditLogConfigs.If there are -// AuditConfigs for both allServices and a specific service, the union -// of the two AuditConfigs is used for that service: the log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each AuditLogConfig are exempted.Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// jose@example.com from DATA_READ logging, and aliya@example.com from -// DATA_WRITE logging. -type GoogleIamV1AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. - AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` +// GoogleCloudDataplexV1RunDataScanRequest: Run DataScan Request +type GoogleCloudDataplexV1RunDataScanRequest struct { +} - // Service: Specifies a service that will be enabled for audit logging. - // For example, storage.googleapis.com, cloudsql.googleapis.com. - // allServices is a special value that covers all services. - Service string `json:"service,omitempty"` +// GoogleCloudDataplexV1RunDataScanResponse: Run DataScan Response. +type GoogleCloudDataplexV1RunDataScanResponse struct { + // Job: DataScanJob created by RunDataScan API. + Job *GoogleCloudDataplexV1DataScanJob `json:"job,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Job") 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 @@ -4315,44 +4244,28 @@ type GoogleIamV1AuditConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditLogConfigs") 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. "Job") 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 *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditConfig +func (s *GoogleCloudDataplexV1RunDataScanResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1RunDataScanResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditLogConfig: Provides the configuration for logging a -// type of permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. -type GoogleIamV1AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - - // LogType: The log type that this config enables. - // - // Possible values: - // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. - // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy - // "DATA_WRITE" - Data writes. Example: CloudSQL Users create - // "DATA_READ" - Data reads. Example: CloudSQL Users list - LogType string `json:"logType,omitempty"` +// GoogleCloudDataplexV1ScannedData: The data scanned during processing +// (e.g. in incremental DataScan) +type GoogleCloudDataplexV1ScannedData struct { + // IncrementalField: The range denoted by values of an incremental field + IncrementalField *GoogleCloudDataplexV1ScannedDataIncrementalField `json:"incrementalField,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // ForceSendFields is a list of field names (e.g. "IncrementalField") 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 @@ -4360,7 +4273,7 @@ type GoogleIamV1AuditLogConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExemptedMembers") to + // NullFields is a list of field names (e.g. "IncrementalField") 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 @@ -4370,67 +4283,26 @@ type GoogleIamV1AuditLogConfig struct { NullFields []string `json:"-"` } -func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditLogConfig +func (s *GoogleCloudDataplexV1ScannedData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ScannedData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1Binding: Associates members, or principals, with a role. -type GoogleIamV1Binding struct { - // Condition: The condition that is associated with this binding.If the - // condition evaluates to true, then this binding applies to the current - // request.If the condition evaluates to false, then this binding does - // not apply to the current request. However, a different role binding - // might grant the same role to one or more of the principals in this - // binding.To learn which resources support conditions in their IAM - // policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Condition *GoogleTypeExpr `json:"condition,omitempty"` +// GoogleCloudDataplexV1ScannedDataIncrementalField: A data range +// denoted by a pair of start/end values of a field. +type GoogleCloudDataplexV1ScannedDataIncrementalField struct { + // End: Value that marks the end of the range + End string `json:"end,omitempty"` - // Members: Specifies the principals requesting access for a Google - // Cloud resource. members can have the following values: allUsers: A - // special identifier that represents anyone who is on the internet; - // with or without a Google account. allAuthenticatedUsers: A special - // identifier that represents anyone who is authenticated with a Google - // account or a service account. Does not include identities that come - // from external identity providers (IdPs) through identity federation. - // user:{emailid}: An email address that represents a specific Google - // account. For example, alice@example.com . serviceAccount:{emailid}: - // An email address that represents a Google service account. For - // example, my-other-app@appspot.gserviceaccount.com. - // serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: - // An identifier for a Kubernetes service account - // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. - // group:{emailid}: An email address that represents a Google group. For - // example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: - // An email address (plus unique identifier) representing a user that - // has been recently deleted. For example, - // alice@example.com?uid=123456789012345678901. If the user is - // recovered, this value reverts to user:{emailid} and the recovered - // user retains the role in the binding. - // deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address - // (plus unique identifier) representing a service account that has been - // recently deleted. For example, - // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. - // If the service account is undeleted, this value reverts to - // serviceAccount:{emailid} and the undeleted service account retains - // the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An - // email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // admins@example.com?uid=123456789012345678901. If the group is - // recovered, this value reverts to group:{emailid} and the recovered - // group retains the role in the binding. domain:{domain}: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, google.com or example.com. - Members []string `json:"members,omitempty"` + // Field: The field that contains values which monotonically increases + // over time (e.g. timestamp). + Field string `json:"field,omitempty"` - // Role: Role that is assigned to the list of members, or principals. - // For example, roles/viewer, roles/editor, or roles/owner. - Role string `json:"role,omitempty"` + // Start: Value that marks the start of the range + Start string `json:"start,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "End") 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 @@ -4438,8 +4310,8 @@ type GoogleIamV1Binding struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "End") 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. @@ -4447,99 +4319,47 @@ type GoogleIamV1Binding struct { NullFields []string `json:"-"` } -func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Binding +func (s *GoogleCloudDataplexV1ScannedDataIncrementalField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ScannedDataIncrementalField raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, -// which specifies access controls for Google Cloud resources.A Policy -// is a collection of bindings. A binding binds one or more members, or -// principals, to a single role. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// role is a named list of permissions; each role can be an IAM -// predefined role or a user-created custom role.For some types of -// Google Cloud resources, a binding can also specify a condition, which -// is a logical expression that allows access to a resource only if the -// expression evaluates to true. A condition can add constraints based -// on attributes of the request, the resource, or both. To learn which -// resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies).JSON -// example: { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). -type GoogleIamV1Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. - AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of members, or principals, with a role. - // Optionally, may specify a condition that determines how and when the - // bindings are applied. Each of the bindings must contain at least one - // principal.The bindings in a Policy can refer to up to 1,500 - // principals; up to 250 of these principals can be Google groups. Each - // occurrence of a principal counts towards these limits. For example, - // if the bindings grant 50 different roles to user:alice@example.com, - // and not to any other principal, then you can add another 1,450 - // principals to the bindings in the Policy. - Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` +// GoogleCloudDataplexV1Schema: Schema information describing the +// structure and layout of the data. +type GoogleCloudDataplexV1Schema struct { + // Fields: Optional. The sequence of fields describing data in table + // entities. Note: BigQuery SchemaFields are immutable. + Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"` - // Etag: etag is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the etag in - // the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An etag is returned in the response to - // getIamPolicy, and systems are expected to put that etag in the - // request to setIamPolicy to ensure that their change will be applied - // to the same version of the policy.Important: If you use IAM - // Conditions, you must include the etag field whenever you call - // setIamPolicy. If you omit this field, then IAM allows you to - // overwrite a version 3 policy with a version 1 policy, and all of the - // conditions in the version 3 policy are lost. - Etag string `json:"etag,omitempty"` + // PartitionFields: Optional. The sequence of fields describing the + // partition structure in entities. If this field is empty, there are no + // partitions within the data. + PartitionFields []*GoogleCloudDataplexV1SchemaPartitionField `json:"partitionFields,omitempty"` - // Version: Specifies the format of the policy.Valid values are 0, 1, - // and 3. Requests that specify an invalid value are rejected.Any - // operation that affects conditional role bindings must specify version - // 3. This requirement applies to the following operations: Getting a - // policy that includes a conditional role binding Adding a conditional - // role binding to a policy Changing a conditional role binding in a - // policy Removing any role binding, with or without a condition, from a - // policy that includes conditionsImportant: If you use IAM Conditions, - // you must include the etag field whenever you call setIamPolicy. If - // you omit this field, then IAM allows you to overwrite a version 3 - // policy with a version 1 policy, and all of the conditions in the - // version 3 policy are lost.If a policy does not include any - // conditions, operations on that policy may specify any valid version - // or leave the field unset.To learn which resources support conditions - // in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` + // PartitionStyle: Optional. The structure of paths containing partition + // data within the entity. + // + // Possible values: + // "PARTITION_STYLE_UNSPECIFIED" - PartitionStyle unspecified + // "HIVE_COMPATIBLE" - Partitions are hive-compatible. Examples: + // gs://bucket/path/to/table/dt=2019-10-31/lang=en, + // gs://bucket/path/to/table/dt=2019-10-31/lang=en/late. + PartitionStyle string `json:"partitionStyle,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // UserManaged: Required. Set to true if user-managed or false if + // managed by Dataplex. The default is false (managed by Dataplex). Set + // to falseto enable Dataplex discovery to update the schema. including + // new data discovery, schema inference, and schema evolution. Users + // retain the ability to input and edit the schema. Dataplex treats + // schema input by the user as though produced by a previous Dataplex + // discovery operation, and it will evolve the schema and take action + // based on that treatment. Set to true to fully manage the entity + // schema. This setting guarantees that Dataplex will not change schema + // fields. + UserManaged bool `json:"userManaged,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // ForceSendFields is a list of field names (e.g. "Fields") 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 @@ -4547,37 +4367,56 @@ type GoogleIamV1Policy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") 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 + // NullFields is a list of field names (e.g. "Fields") 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 *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Policy +func (s *GoogleCloudDataplexV1Schema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Schema raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1SetIamPolicyRequest: Request message for SetIamPolicy -// method. -type GoogleIamV1SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the resource. - // The size of the policy is limited to a few 10s of KB. An empty policy - // is a valid policy but certain Google Cloud services (such as - // Projects) might reject them. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` +// GoogleCloudDataplexV1SchemaPartitionField: Represents a key field +// within the entity's partition structure. You could have up to 20 +// partition fields, but only the first 10 partitions have the filtering +// ability due to performance consideration. Note: Partition fields are +// immutable. +type GoogleCloudDataplexV1SchemaPartitionField struct { + // Name: Required. Partition field name must consist of letters, + // numbers, and underscores only, with a maximum of length of 256 + // characters, and must begin with a letter or underscore.. + Name string `json:"name,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used:paths: - // "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` + // Type: Required. Immutable. The type of field. + // + // Possible values: + // "TYPE_UNSPECIFIED" - SchemaType unspecified. + // "BOOLEAN" - Boolean field. + // "BYTE" - Single byte numeric field. + // "INT16" - 16-bit numeric field. + // "INT32" - 32-bit numeric field. + // "INT64" - 64-bit numeric field. + // "FLOAT" - Floating point numeric field. + // "DOUBLE" - Double precision numeric field. + // "DECIMAL" - Real value numeric field. + // "STRING" - Sequence of characters field. + // "BINARY" - Sequence of bytes field. + // "TIMESTAMP" - Date and time field. + // "DATE" - Date field. + // "TIME" - Time field. + // "RECORD" - Structured field. Nested fields that define the + // structure of the map. If all nested fields are nullable, this field + // represents a union. + // "NULL" - Null field that does not have values. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to + // ForceSendFields is a list of field names (e.g. "Name") 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 @@ -4585,7 +4424,7 @@ type GoogleIamV1SetIamPolicyRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API + // NullFields is a list of field names (e.g. "Name") 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 @@ -4594,56 +4433,61 @@ type GoogleIamV1SetIamPolicyRequest struct { NullFields []string `json:"-"` } -func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1SetIamPolicyRequest +func (s *GoogleCloudDataplexV1SchemaPartitionField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1SchemaPartitionField raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleIamV1TestIamPermissionsRequest: Request message for -// TestIamPermissions method. -type GoogleIamV1TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the resource. - // Permissions with wildcards (such as * or storage.*) are not allowed. - // For more information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Permissions") 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:"-"` +// GoogleCloudDataplexV1SchemaSchemaField: Represents a column field +// within a table schema. +type GoogleCloudDataplexV1SchemaSchemaField struct { + // Description: Optional. User friendly field description. Must be less + // than or equal to 1024 characters. + Description string `json:"description,omitempty"` - // NullFields is a list of field names (e.g. "Permissions") 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:"-"` -} + // Fields: Optional. Any nested field for complex types. + Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"` -func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Mode: Required. Additional field semantics. + // + // Possible values: + // "MODE_UNSPECIFIED" - Mode unspecified. + // "REQUIRED" - The field has required semantics. + // "NULLABLE" - The field has optional semantics, and may be null. + // "REPEATED" - The field has repeated (0 or more) semantics, and is a + // list of values. + Mode string `json:"mode,omitempty"` -// GoogleIamV1TestIamPermissionsResponse: Response message for -// TestIamPermissions method. -type GoogleIamV1TestIamPermissionsResponse struct { - // Permissions: A subset of TestPermissionsRequest.permissions that the - // caller is allowed. - Permissions []string `json:"permissions,omitempty"` + // Name: Required. The name of the field. Must contain only letters, + // numbers and underscores, with a maximum length of 767 characters, and + // must begin with a letter or underscore. + Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Type: Required. The type of field. + // + // Possible values: + // "TYPE_UNSPECIFIED" - SchemaType unspecified. + // "BOOLEAN" - Boolean field. + // "BYTE" - Single byte numeric field. + // "INT16" - 16-bit numeric field. + // "INT32" - 32-bit numeric field. + // "INT64" - 64-bit numeric field. + // "FLOAT" - Floating point numeric field. + // "DOUBLE" - Double precision numeric field. + // "DECIMAL" - Real value numeric field. + // "STRING" - Sequence of characters field. + // "BINARY" - Sequence of bytes field. + // "TIMESTAMP" - Date and time field. + // "DATE" - Date field. + // "TIME" - Time field. + // "RECORD" - Structured field. Nested fields that define the + // structure of the map. If all nested fields are nullable, this field + // represents a union. + // "NULL" - Null field that does not have values. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to + // ForceSendFields is a list of field names (e.g. "Description") 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 @@ -4651,7 +4495,7 @@ type GoogleIamV1TestIamPermissionsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include + // NullFields is a list of field names (e.g. "Description") 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 @@ -4660,32 +4504,36 @@ type GoogleIamV1TestIamPermissionsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsResponse +func (s *GoogleCloudDataplexV1SchemaSchemaField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1SchemaSchemaField raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleLongrunningCancelOperationRequest: The request message for -// Operations.CancelOperation. -type GoogleLongrunningCancelOperationRequest struct { -} +// GoogleCloudDataplexV1Session: Represents an active analyze session +// running for a user. +type GoogleCloudDataplexV1Session struct { + // CreateTime: Output only. Session start time. + CreateTime string `json:"createTime,omitempty"` -// GoogleLongrunningListOperationsResponse: The response message for -// Operations.ListOperations. -type GoogleLongrunningListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` + // Name: Output only. The relative resource name of the content, of the + // form: + // projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environm + // ent/{environment_id}/sessions/{session_id} + Name string `json:"name,omitempty"` - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "ACTIVE" - Resource is active, i.e., ready to use. + // "CREATING" - Resource is under creation. + // "DELETING" - Resource is under deletion. + // "ACTION_REQUIRED" - Resource is active but has unresolved actions. + State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // UserId: Output only. Email of user running the session. + UserId string `json:"userId,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "CreateTime") 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 @@ -4693,60 +4541,62 @@ type GoogleLongrunningListOperationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") 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 + // 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 []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningListOperationsResponse +func (s *GoogleCloudDataplexV1Session) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Session raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleLongrunningOperation: This resource represents a long-running -// operation that is the result of a network API call. -type GoogleLongrunningOperation struct { - // Done: If the value is false, it means the operation is still in - // progress. If true, the operation is completed, and either error or - // response is available. - Done bool `json:"done,omitempty"` +// GoogleCloudDataplexV1SessionEvent: These messages contain information +// about sessions within an environment. The monitored resource is +// 'Environment'. +type GoogleCloudDataplexV1SessionEvent struct { + // EventSucceeded: The status of the event. + EventSucceeded bool `json:"eventSucceeded,omitempty"` - // Error: The error result of the operation in case of failure or - // cancellation. - Error *GoogleRpcStatus `json:"error,omitempty"` + // FastStartupEnabled: If the session is associated with an environment + // with fast startup enabled, and was created before being assigned to a + // user. + FastStartupEnabled bool `json:"fastStartupEnabled,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Message: The log message. + Message string `json:"message,omitempty"` - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the name should be a resource name ending with - // operations/{unique_id}. - Name string `json:"name,omitempty"` + // Query: The execution details of the query. + Query *GoogleCloudDataplexV1SessionEventQueryDetail `json:"query,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the - // response is google.protobuf.Empty. If the original method is standard - // Get/Create/Update, the response should be the resource. For other - // methods, the response should have the type XxxResponse, where Xxx is - // the original method name. For example, if the original method name is - // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. - Response googleapi.RawMessage `json:"response,omitempty"` + // SessionId: Unique identifier for the session. + SessionId string `json:"sessionId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Type: The type of the event. + // + // Possible values: + // "EVENT_TYPE_UNSPECIFIED" - An unspecified event type. + // "START" - Event when the session is assigned to a user. + // "STOP" - Event for stop of a session. + // "QUERY" - Query events in the session. + // "CREATE" - Event for creation of a cluster. It is not yet assigned + // to a user. This comes before START in the sequence + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Done") to + // UnassignedDuration: The idle duration of a warm pooled session before + // it is assigned to user. + UnassignedDuration string `json:"unassignedDuration,omitempty"` + + // UserId: The information about the user that created the session. It + // will be the email address of the user. + UserId string `json:"userId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventSucceeded") 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 @@ -4754,214 +4604,5170 @@ type GoogleLongrunningOperation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") 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. "EventSucceeded") 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 *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningOperation +func (s *GoogleCloudDataplexV1SessionEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1SessionEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The Status type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// Status message contains three pieces of data: error code, error -// message, and error details.You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). -type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` +// GoogleCloudDataplexV1SessionEventQueryDetail: Execution details of +// the query. +type GoogleCloudDataplexV1SessionEventQueryDetail struct { + // DataProcessedBytes: The data processed by the query. + DataProcessedBytes int64 `json:"dataProcessedBytes,omitempty,string"` - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` + // Duration: Time taken for execution of the query. + Duration string `json:"duration,omitempty"` - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` + // Engine: Query Execution engine. + // + // Possible values: + // "ENGINE_UNSPECIFIED" - An unspecified Engine type. + // "SPARK_SQL" - Spark-sql engine is specified in Query. + // "BIGQUERY" - BigQuery engine is specified in Query. + Engine string `json:"engine,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with + // QueryId: The unique Query id identifying the query. + QueryId string `json:"queryId,omitempty"` + + // QueryText: The query text executed. + QueryText string `json:"queryText,omitempty"` + + // ResultSizeBytes: The size of results the query produced. + ResultSizeBytes int64 `json:"resultSizeBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DataProcessedBytes") + // 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. "Code") 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. "DataProcessedBytes") 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 *GoogleRpcStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleRpcStatus +func (s *GoogleCloudDataplexV1SessionEventQueryDetail) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1SessionEventQueryDetail raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleTypeExpr: Represents a textual expression in the Common -// Expression Language (CEL) syntax. CEL is a C-like expression -// language. The syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec.Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional -// information. -type GoogleTypeExpr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. - Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. - Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. - Title string `json:"title,omitempty"` +// GoogleCloudDataplexV1StorageFormat: Describes the format of the data +// within its storage location. +type GoogleCloudDataplexV1StorageFormat struct { + // CompressionFormat: Optional. The compression type associated with the + // stored data. If unspecified, the data is uncompressed. + // + // Possible values: + // "COMPRESSION_FORMAT_UNSPECIFIED" - CompressionFormat unspecified. + // Implies uncompressed data. + // "GZIP" - GZip compressed set of files. + // "BZIP2" - BZip2 compressed set of files. + CompressionFormat string `json:"compressionFormat,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") 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:"-"` + // Csv: Optional. Additional information about CSV formatted data. + Csv *GoogleCloudDataplexV1StorageFormatCsvOptions `json:"csv,omitempty"` - // NullFields is a list of field names (e.g. "Description") 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 + // Format: Output only. The data format associated with the stored data, + // which represents content type values. The value is inferred from mime + // type. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - Format unspecified. + // "PARQUET" - Parquet-formatted structured data. + // "AVRO" - Avro-formatted structured data. + // "ORC" - Orc-formatted structured data. + // "CSV" - Csv-formatted semi-structured data. + // "JSON" - Json-formatted semi-structured data. + // "IMAGE" - Image data formats (such as jpg and png). + // "AUDIO" - Audio data formats (such as mp3, and wav). + // "VIDEO" - Video data formats (such as mp4 and mpg). + // "TEXT" - Textual data formats (such as txt and xml). + // "TFRECORD" - TensorFlow record format. + // "OTHER" - Data that doesn't match a specific format. + // "UNKNOWN" - Data of an unknown format. + Format string `json:"format,omitempty"` + + // Json: Optional. Additional information about CSV formatted data. + Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"` + + // MimeType: Required. The mime type descriptor for the data. Must match + // the pattern {type}/{subtype}. Supported values: application/x-parquet + // application/x-avro application/x-orc application/x-tfrecord + // application/x-parquet+iceberg application/x-avro+iceberg + // application/x-orc+iceberg application/json application/{subtypes} + // text/csv text/ image/{image subtype} video/{video subtype} + // audio/{audio subtype} + MimeType string `json:"mimeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompressionFormat") + // 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. "CompressionFormat") 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 *GoogleCloudDataplexV1StorageFormat) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1StorageFormat + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1StorageFormatCsvOptions: Describes CSV and +// similar semi-structured data formats. +type GoogleCloudDataplexV1StorageFormatCsvOptions struct { + // Delimiter: Optional. The delimiter used to separate values. Defaults + // to ','. + Delimiter string `json:"delimiter,omitempty"` + + // Encoding: Optional. The character encoding of the data. Accepts + // "US-ASCII", "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if + // unspecified. + Encoding string `json:"encoding,omitempty"` + + // HeaderRows: Optional. The number of rows to interpret as header rows + // that should be skipped when reading data rows. Defaults to 0. + HeaderRows int64 `json:"headerRows,omitempty"` + + // Quote: Optional. The character used to quote column values. Accepts + // '"' (double quotation mark) or ''' (single quotation mark). Defaults + // to '"' (double quotation mark) if unspecified. + Quote string `json:"quote,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Delimiter") 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. "Delimiter") 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 *GoogleCloudDataplexV1StorageFormatCsvOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1StorageFormatCsvOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1StorageFormatJsonOptions: Describes JSON data +// format. +type GoogleCloudDataplexV1StorageFormatJsonOptions struct { + // Encoding: Optional. The character encoding of the data. Accepts + // "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not + // specified. + Encoding string `json:"encoding,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Encoding") 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. "Encoding") 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 *GoogleCloudDataplexV1StorageFormatJsonOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1StorageFormatJsonOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1Task: A task represents a user-visible job. +type GoogleCloudDataplexV1Task struct { + // CreateTime: Output only. The time when the task was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of the task. + Description string `json:"description,omitempty"` + + // DisplayName: Optional. User friendly display name. + DisplayName string `json:"displayName,omitempty"` + + // ExecutionSpec: Required. Spec related to how a task is executed. + ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"` + + // ExecutionStatus: Output only. Status of the latest task executions. + ExecutionStatus *GoogleCloudDataplexV1TaskExecutionStatus `json:"executionStatus,omitempty"` + + // Labels: Optional. User-defined labels for the task. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The relative resource name of the task, of the + // form: + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ + // tasks/{task_id}. + Name string `json:"name,omitempty"` + + // Notebook: Config related to running scheduled Notebooks. + Notebook *GoogleCloudDataplexV1TaskNotebookTaskConfig `json:"notebook,omitempty"` + + // Spark: Config related to running custom Spark tasks. + Spark *GoogleCloudDataplexV1TaskSparkTaskConfig `json:"spark,omitempty"` + + // State: Output only. Current state of the task. + // + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "ACTIVE" - Resource is active, i.e., ready to use. + // "CREATING" - Resource is under creation. + // "DELETING" - Resource is under deletion. + // "ACTION_REQUIRED" - Resource is active but has unresolved actions. + State string `json:"state,omitempty"` + + // TriggerSpec: Required. Spec related to how often and when a task + // should be triggered. + TriggerSpec *GoogleCloudDataplexV1TaskTriggerSpec `json:"triggerSpec,omitempty"` + + // Uid: Output only. System generated globally unique ID for the task. + // This ID will be different if the task is deleted and re-created with + // the same name. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time when the task was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "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 []string `json:"-"` } -func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeExpr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +func (s *GoogleCloudDataplexV1Task) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Task + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskExecutionSpec: Execution related settings, +// like retry and service_account. +type GoogleCloudDataplexV1TaskExecutionSpec struct { + // Args: Optional. The arguments to pass to the task. The args can use + // placeholders of the format ${placeholder} as part of key/value + // string. These will be interpolated before passing the args to the + // driver. Currently supported placeholders: - ${task_id} - ${job_time} + // To pass positional args, set the key as TASK_ARGS. The value should + // be a comma-separated string of all the positional arguments. To use a + // delimiter other than comma, refer to + // https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case + // of other keys being present in the args, then TASK_ARGS will be + // passed as the last argument. + Args map[string]string `json:"args,omitempty"` + + // KmsKey: Optional. The Cloud KMS key to use for encryption, of the + // form: + // projects/{project_number}/locations/{location_id}/keyRings/{key-ring-n + // ame}/cryptoKeys/{key-name}. + KmsKey string `json:"kmsKey,omitempty"` + + // MaxJobExecutionLifetime: Optional. The maximum duration after which + // the job execution is expired. + MaxJobExecutionLifetime string `json:"maxJobExecutionLifetime,omitempty"` + + // Project: Optional. The project in which jobs are run. By default, the + // project containing the Lake is used. If a project is provided, the + // ExecutionSpec.service_account must belong to this project. + Project string `json:"project,omitempty"` + + // ServiceAccount: Required. Service account to use to execute a task. + // If not provided, the default Compute service account for the project + // is used. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Args") 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. "Args") 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 *GoogleCloudDataplexV1TaskExecutionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskExecutionSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskExecutionStatus: Status of the task +// execution (e.g. Jobs). +type GoogleCloudDataplexV1TaskExecutionStatus struct { + // LatestJob: Output only. latest job execution + LatestJob *GoogleCloudDataplexV1Job `json:"latestJob,omitempty"` + + // UpdateTime: Output only. Last update time of the status. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LatestJob") 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. "LatestJob") 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 *GoogleCloudDataplexV1TaskExecutionStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskExecutionStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskInfrastructureSpec: Configuration for the +// underlying infrastructure used to run workloads. +type GoogleCloudDataplexV1TaskInfrastructureSpec struct { + // Batch: Compute resources needed for a Task when using Dataproc + // Serverless. + Batch *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources `json:"batch,omitempty"` + + // ContainerImage: Container Image Runtime Configuration. + ContainerImage *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime `json:"containerImage,omitempty"` + + // VpcNetwork: Vpc network. + VpcNetwork *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork `json:"vpcNetwork,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Batch") 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. "Batch") 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 *GoogleCloudDataplexV1TaskInfrastructureSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources: +// Batch compute resources associated with the task. +type GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources struct { + // ExecutorsCount: Optional. Total number of job executors. Executor + // Count should be between 2 and 100. Default=2 + ExecutorsCount int64 `json:"executorsCount,omitempty"` + + // MaxExecutorsCount: Optional. Max configurable executors. If + // max_executors_count > executors_count, then auto-scaling is enabled. + // Max Executor Count should be between 2 and 1000. Default=1000 + MaxExecutorsCount int64 `json:"maxExecutorsCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExecutorsCount") 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. "ExecutorsCount") 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 *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime: +// Container Image Runtime Configuration used with Batch execution. +type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct { + // Image: Optional. Container image to use. + Image string `json:"image,omitempty"` + + // JavaJars: Optional. A list of Java JARS to add to the classpath. + // Valid input includes Cloud Storage URIs to Jar binaries. For example, + // gs://bucket-name/my/path/to/file.jar + JavaJars []string `json:"javaJars,omitempty"` + + // Properties: Optional. Override to common configuration of open source + // components installed on the Dataproc cluster. The properties to set + // on daemon config files. Property keys are specified in + // prefix:property format, for example core:hadoop.tmp.dir. For more + // information, see Cluster properties + // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + Properties map[string]string `json:"properties,omitempty"` + + // PythonPackages: Optional. A list of python packages to be installed. + // Valid formats include Cloud Storage URI to a PIP installable library. + // For example, gs://bucket-name/my/path/to/lib.tar.gz + PythonPackages []string `json:"pythonPackages,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Image") 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. "Image") 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 *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork: Cloud VPC +// Network used to run the infrastructure. +type GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork struct { + // Network: Optional. The Cloud VPC network in which the job is run. By + // default, the Cloud VPC network named Default within the project is + // used. + Network string `json:"network,omitempty"` + + // NetworkTags: Optional. List of network tags to apply to the job. + NetworkTags []string `json:"networkTags,omitempty"` + + // SubNetwork: Optional. The Cloud VPC sub-network in which the job is + // run. + SubNetwork string `json:"subNetwork,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Network") 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. "Network") 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 *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskNotebookTaskConfig: Config for running +// scheduled notebooks. +type GoogleCloudDataplexV1TaskNotebookTaskConfig struct { + // ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted + // into the working directory of each executor. Supported file types: + // .jar, .tar, .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + + // FileUris: Optional. Cloud Storage URIs of files to be placed in the + // working directory of each executor. + FileUris []string `json:"fileUris,omitempty"` + + // InfrastructureSpec: Optional. Infrastructure specification for the + // execution. + InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"` + + // Notebook: Required. Path to input notebook. This can be the Cloud + // Storage URI of the notebook file or the path to a Notebook Content. + // The execution args are accessible as environment variables + // (TASK_key=value). + Notebook string `json:"notebook,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArchiveUris") 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. "ArchiveUris") 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 *GoogleCloudDataplexV1TaskNotebookTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskNotebookTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskSparkTaskConfig: User-specified config for +// running a Spark task. +type GoogleCloudDataplexV1TaskSparkTaskConfig struct { + // ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted + // into the working directory of each executor. Supported file types: + // .jar, .tar, .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + + // FileUris: Optional. Cloud Storage URIs of files to be placed in the + // working directory of each executor. + FileUris []string `json:"fileUris,omitempty"` + + // InfrastructureSpec: Optional. Infrastructure specification for the + // execution. + InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"` + + // MainClass: The name of the driver's main class. The jar file that + // contains the class must be in the default CLASSPATH or specified in + // jar_file_uris. The execution args are passed in as a sequence of + // named process arguments (--key=value). + MainClass string `json:"mainClass,omitempty"` + + // MainJarFileUri: The Cloud Storage URI of the jar file that contains + // the main class. The execution args are passed in as a sequence of + // named process arguments (--key=value). + MainJarFileUri string `json:"mainJarFileUri,omitempty"` + + // PythonScriptFile: The Gcloud Storage URI of the main Python file to + // use as the driver. Must be a .py file. The execution args are passed + // in as a sequence of named process arguments (--key=value). + PythonScriptFile string `json:"pythonScriptFile,omitempty"` + + // SqlScript: The query text. The execution args are used to declare a + // set of script variables (set key="value";). + SqlScript string `json:"sqlScript,omitempty"` + + // SqlScriptFile: A reference to a query file. This can be the Cloud + // Storage URI of the query file or it can the path to a SqlScript + // Content. The execution args are used to declare a set of script + // variables (set key="value";). + SqlScriptFile string `json:"sqlScriptFile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArchiveUris") 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. "ArchiveUris") 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 *GoogleCloudDataplexV1TaskSparkTaskConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskSparkTaskConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TaskTriggerSpec: Task scheduling and trigger +// settings. +type GoogleCloudDataplexV1TaskTriggerSpec struct { + // Disabled: Optional. Prevent the task from executing. This does not + // cancel already running tasks. It is intended to temporarily disable + // RECURRING tasks. + Disabled bool `json:"disabled,omitempty"` + + // MaxRetries: Optional. Number of retry attempts before aborting. Set + // to zero to never attempt to retry a failed task. + MaxRetries int64 `json:"maxRetries,omitempty"` + + // Schedule: Optional. Cron schedule + // (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. + // To explicitly set a timezone to the cron tab, apply a prefix in the + // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The + // ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + // database. For example, "CRON_TZ=America/New_York 1 * * * *", or + // "TZ=America/New_York 1 * * * *". This field is required for RECURRING + // tasks. + Schedule string `json:"schedule,omitempty"` + + // StartTime: Optional. The first run of the task will be after this + // time. If not specified, the task will run shortly after being + // submitted if ON_DEMAND and based on the schedule if RECURRING. + StartTime string `json:"startTime,omitempty"` + + // Type: Required. Immutable. Trigger type of the user-specified Task. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unspecified trigger type. + // "ON_DEMAND" - The task runs one-time shortly after Task Creation. + // "RECURRING" - The task is scheduled to run periodically. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *GoogleCloudDataplexV1TaskTriggerSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TaskTriggerSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1Trigger: DataScan scheduling and trigger +// settings. +type GoogleCloudDataplexV1Trigger struct { + // OnDemand: The scan runs one-time shortly after DataScan Creation. + OnDemand *GoogleCloudDataplexV1TriggerOnDemand `json:"onDemand,omitempty"` + + // Schedule: The scan is scheduled to run periodically. + Schedule *GoogleCloudDataplexV1TriggerSchedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OnDemand") 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. "OnDemand") 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 *GoogleCloudDataplexV1Trigger) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Trigger + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1TriggerOnDemand: The scan runs one-time via +// RunDataScan API. +type GoogleCloudDataplexV1TriggerOnDemand struct { +} + +// GoogleCloudDataplexV1TriggerSchedule: The scan is scheduled to run +// periodically. +type GoogleCloudDataplexV1TriggerSchedule struct { + // Cron: Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) + // for running scans periodically. To explicitly set a timezone to the + // cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" + // or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + // string from IANA time zone database. For example, + // "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * + // *". This field is required for Schedule scans. + Cron string `json:"cron,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cron") 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. "Cron") 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 *GoogleCloudDataplexV1TriggerSchedule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1TriggerSchedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1Zone: A zone represents a logical group of +// related assets within a lake. A zone can be used to map to +// organizational structure or represent stages of data readiness from +// raw to curated. It provides managing behavior that is shared or +// inherited by all contained assets. +type GoogleCloudDataplexV1Zone struct { + // AssetStatus: Output only. Aggregated status of the underlying assets + // of the zone. + AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"` + + // CreateTime: Output only. The time when the zone was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of the zone. + Description string `json:"description,omitempty"` + + // DiscoverySpec: Optional. Specification of the discovery feature + // applied to data in this zone. + DiscoverySpec *GoogleCloudDataplexV1ZoneDiscoverySpec `json:"discoverySpec,omitempty"` + + // DisplayName: Optional. User friendly display name. + DisplayName string `json:"displayName,omitempty"` + + // Labels: Optional. User defined labels for the zone. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The relative resource name of the zone, of the + // form: + // projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zone + // s/{zone_id}. + Name string `json:"name,omitempty"` + + // ResourceSpec: Required. Specification of the resources that are + // referenced by the assets within this zone. + ResourceSpec *GoogleCloudDataplexV1ZoneResourceSpec `json:"resourceSpec,omitempty"` + + // State: Output only. Current state of the zone. + // + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "ACTIVE" - Resource is active, i.e., ready to use. + // "CREATING" - Resource is under creation. + // "DELETING" - Resource is under deletion. + // "ACTION_REQUIRED" - Resource is active but has unresolved actions. + State string `json:"state,omitempty"` + + // Type: Required. Immutable. The type of the zone. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Zone type not specified. + // "RAW" - A zone that contains data that needs further processing + // before it is considered generally ready for consumption and analytics + // workloads. + // "CURATED" - A zone that contains data that is considered to be + // ready for broader consumption and analytics workloads. Curated + // structured data stored in Cloud Storage must conform to certain file + // formats (parquet, avro and orc) and organized in a hive-compatible + // directory layout. + Type string `json:"type,omitempty"` + + // Uid: Output only. System generated globally unique ID for the zone. + // This ID will be different if the zone is deleted and re-created with + // the same name. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time when the zone was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AssetStatus") 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. "AssetStatus") 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 *GoogleCloudDataplexV1Zone) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1Zone + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1ZoneDiscoverySpec: Settings to manage the +// metadata discovery and publishing in a zone. +type GoogleCloudDataplexV1ZoneDiscoverySpec struct { + // CsvOptions: Optional. Configuration for CSV data. + CsvOptions *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions `json:"csvOptions,omitempty"` + + // Enabled: Required. Whether discovery is enabled. + Enabled bool `json:"enabled,omitempty"` + + // ExcludePatterns: Optional. The list of patterns to apply for + // selecting data to exclude during discovery. For Cloud Storage bucket + // assets, these are interpreted as glob patterns used to match object + // names. For BigQuery dataset assets, these are interpreted as patterns + // to match table names. + ExcludePatterns []string `json:"excludePatterns,omitempty"` + + // IncludePatterns: Optional. The list of patterns to apply for + // selecting data to include during discovery if only a subset of the + // data should considered. For Cloud Storage bucket assets, these are + // interpreted as glob patterns used to match object names. For BigQuery + // dataset assets, these are interpreted as patterns to match table + // names. + IncludePatterns []string `json:"includePatterns,omitempty"` + + // JsonOptions: Optional. Configuration for Json data. + JsonOptions *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"` + + // Schedule: Optional. Cron schedule + // (https://en.wikipedia.org/wiki/Cron) for running discovery + // periodically. Successive discovery runs must be scheduled at least 60 + // minutes apart. The default value is to run discovery every 60 + // minutes. To explicitly set a timezone to the cron tab, apply a prefix + // in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + // TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + // string from IANA time zone database. For example, + // "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * + // *". + Schedule string `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CsvOptions") 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. "CsvOptions") 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 *GoogleCloudDataplexV1ZoneDiscoverySpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions: Describe CSV and +// similar semi-structured data formats. +type GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions struct { + // Delimiter: Optional. The delimiter being used to separate values. + // This defaults to ','. + Delimiter string `json:"delimiter,omitempty"` + + // DisableTypeInference: Optional. Whether to disable the inference of + // data type for CSV data. If true, all columns will be registered as + // strings. + DisableTypeInference bool `json:"disableTypeInference,omitempty"` + + // Encoding: Optional. The character encoding of the data. The default + // is UTF-8. + Encoding string `json:"encoding,omitempty"` + + // HeaderRows: Optional. The number of rows to interpret as header rows + // that should be skipped when reading data rows. + HeaderRows int64 `json:"headerRows,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Delimiter") 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. "Delimiter") 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 *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions: Describe JSON data +// format. +type GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions struct { + // DisableTypeInference: Optional. Whether to disable the inference of + // data type for Json data. If true, all columns will be registered as + // their primitive types (strings, number or boolean). + DisableTypeInference bool `json:"disableTypeInference,omitempty"` + + // Encoding: Optional. The character encoding of the data. The default + // is UTF-8. + Encoding string `json:"encoding,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DisableTypeInference") 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. "DisableTypeInference") 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 *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1ZoneResourceSpec: Settings for resources +// attached as assets within a zone. +type GoogleCloudDataplexV1ZoneResourceSpec struct { + // LocationType: Required. Immutable. The location type of the resources + // that are allowed to be attached to the assets within this zone. + // + // Possible values: + // "LOCATION_TYPE_UNSPECIFIED" - Unspecified location type. + // "SINGLE_REGION" - Resources that are associated with a single + // region. + // "MULTI_REGION" - Resources that are associated with a multi-region + // location. + LocationType string `json:"locationType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocationType") 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. "LocationType") 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 *GoogleCloudDataplexV1ZoneResourceSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ZoneResourceSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudLocationListLocationsResponse: The response message for +// Locations.ListLocations. +type GoogleCloudLocationListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") 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. "Locations") 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 *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudLocationLocation: A resource that represents Google Cloud +// Platform location. +type GoogleCloudLocationLocation struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditConfig: Specifies the audit configuration for a +// service. The configuration determines which permission types are +// logged, and what identities, if any, are exempted from logging. An +// AuditConfig must have one or more AuditLogConfigs.If there are +// AuditConfigs for both allServices and a specific service, the union +// of the two AuditConfigs is used for that service: the log_types +// specified in each AuditConfig are enabled, and the exempted_members +// in each AuditLogConfig are exempted.Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. +type GoogleIamV1AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, storage.googleapis.com, cloudsql.googleapis.com. + // allServices is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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 *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a +// type of permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type GoogleIamV1AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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 *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Binding: Associates members, or principals, with a role. +type GoogleIamV1Binding struct { + // Condition: The condition that is associated with this binding.If the + // condition evaluates to true, then this binding applies to the current + // request.If the condition evaluates to false, then this binding does + // not apply to the current request. However, a different role binding + // might grant the same role to one or more of the principals in this + // binding.To learn which resources support conditions in their IAM + // policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *GoogleTypeExpr `json:"condition,omitempty"` + + // Members: Specifies the principals requesting access for a Google + // Cloud resource. members can have the following values: allUsers: A + // special identifier that represents anyone who is on the internet; + // with or without a Google account. allAuthenticatedUsers: A special + // identifier that represents anyone who is authenticated with a Google + // account or a service account. Does not include identities that come + // from external identity providers (IdPs) through identity federation. + // user:{emailid}: An email address that represents a specific Google + // account. For example, alice@example.com . serviceAccount:{emailid}: + // An email address that represents a Google service account. For + // example, my-other-app@appspot.gserviceaccount.com. + // serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. + // group:{emailid}: An email address that represents a Google group. For + // example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: + // An email address (plus unique identifier) representing a user that + // has been recently deleted. For example, + // alice@example.com?uid=123456789012345678901. If the user is + // recovered, this value reverts to user:{emailid} and the recovered + // user retains the role in the binding. + // deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. + // If the service account is undeleted, this value reverts to + // serviceAccount:{emailid} and the undeleted service account retains + // the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An + // email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // admins@example.com?uid=123456789012345678901. If the group is + // recovered, this value reverts to group:{emailid} and the recovered + // group retains the role in the binding. domain:{domain}: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, google.com or example.com. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to the list of members, or principals. + // For example, roles/viewer, roles/editor, or roles/owner. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, +// which specifies access controls for Google Cloud resources.A Policy +// is a collection of bindings. A binding binds one or more members, or +// principals, to a single role. Principals can be user accounts, +// service accounts, Google groups, and domains (such as G Suite). A +// role is a named list of permissions; each role can be an IAM +// predefined role or a user-created custom role.For some types of +// Google Cloud resources, a binding can also specify a condition, which +// is a logical expression that allows access to a resource only if the +// expression evaluates to true. A condition can add constraints based +// on attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies).JSON +// example: { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type GoogleIamV1Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of members, or principals, with a role. + // Optionally, may specify a condition that determines how and when the + // bindings are applied. Each of the bindings must contain at least one + // principal.The bindings in a Policy can refer to up to 1,500 + // principals; up to 250 of these principals can be Google groups. Each + // occurrence of a principal counts towards these limits. For example, + // if the bindings grant 50 different roles to user:alice@example.com, + // and not to any other principal, then you can add another 1,450 + // principals to the bindings in the Policy. + Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` + + // Etag: etag is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the etag in + // the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An etag is returned in the response to + // getIamPolicy, and systems are expected to put that etag in the + // request to setIamPolicy to ensure that their change will be applied + // to the same version of the policy.Important: If you use IAM + // Conditions, you must include the etag field whenever you call + // setIamPolicy. If you omit this field, then IAM allows you to + // overwrite a version 3 policy with a version 1 policy, and all of the + // conditions in the version 3 policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy.Valid values are 0, 1, + // and 3. Requests that specify an invalid value are rejected.Any + // operation that affects conditional role bindings must specify version + // 3. This requirement applies to the following operations: Getting a + // policy that includes a conditional role binding Adding a conditional + // role binding to a policy Changing a conditional role binding in a + // policy Removing any role binding, with or without a condition, from a + // policy that includes conditionsImportant: If you use IAM Conditions, + // you must include the etag field whenever you call setIamPolicy. If + // you omit this field, then IAM allows you to overwrite a version 3 + // policy with a version 1 policy, and all of the conditions in the + // version 3 policy are lost.If a policy does not include any + // conditions, operations on that policy may specify any valid version + // or leave the field unset.To learn which resources support conditions + // in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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 *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1SetIamPolicyRequest: Request message for SetIamPolicy +// method. +type GoogleIamV1SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the resource. + // The size of the policy is limited to a few 10s of KB. An empty policy + // is a valid policy but certain Google Cloud services (such as + // Projects) might reject them. + Policy *GoogleIamV1Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used:paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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 *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsRequest: Request message for +// TestIamPermissions method. +type GoogleIamV1TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the resource. + // Permissions with wildcards (such as * or storage.*) are not allowed. + // For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsResponse: Response message for +// TestIamPermissions method. +type GoogleIamV1TestIamPermissionsResponse struct { + // Permissions: A subset of TestPermissionsRequest.permissions that the + // caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningCancelOperationRequest: The request message for +// Operations.CancelOperation. +type GoogleLongrunningCancelOperationRequest struct { +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is false, it means the operation is still in + // progress. If true, the operation is completed, and either error or + // response is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the name should be a resource name ending with + // operations/{unique_id}. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as Delete, the + // response is google.protobuf.Empty. If the original method is standard + // Get/Create/Update, the response should be the resource. For other + // methods, the response should have the type XxxResponse, where Xxx is + // the original method name. For example, if the original method name is + // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleRpcStatus: The Status type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// Status message contains three pieces of data: error code, error +// message, and error details.You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleTypeExpr: Represents a textual expression in the Common +// Expression Language (CEL) syntax. CEL is a C-like expression +// language. The syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec.Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type GoogleTypeExpr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *GoogleTypeExpr) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeExpr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "dataplex.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.get" call. +// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudLocationLocation.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, 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 := &GoogleCloudLocationLocation{ + 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": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudLocationLocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the next_page_token field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, 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 := &GoogleCloudLocationListLocationsResponse{ + 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": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataplex.projects.locations.dataAttributeBindings.getIamPolicy": + +type ProjectsLocationsDataAttributeBindingsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataAttributeBindingsService) GetIamPolicy(resource string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall { + c := &ProjectsLocationsDataAttributeBindingsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall { + 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 *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataAttributeBindings.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataAttributeBindings.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataAttributeBindings.setIamPolicy": + +type ProjectsLocationsDataAttributeBindingsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataAttributeBindingsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall { + c := &ProjectsLocationsDataAttributeBindingsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall { + 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 *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall { + 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 *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataAttributeBindings.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataAttributeBindings.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataAttributeBindings.testIamPermissions": + +type ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataAttributeBindingsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall { + c := &ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall { + 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 *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall { + 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 *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) 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.googleiamv1testiampermissionsrequest) + 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/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataAttributeBindings.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + 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": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataAttributeBindings/{dataAttributeBindingsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataAttributeBindings.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.create": + +type ProjectsLocationsDataScansCreateCall struct { + s *Service + parent string + googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a dataScan resource. +// +// - parent: The resource name of the parent location: +// projects/{project}/locations/{location_id} where {project} refers +// to a project_id or project_number and location_id refers to a GCP +// region. +func (r *ProjectsLocationsDataScansService) Create(parent string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansCreateCall { + c := &ProjectsLocationsDataScansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddataplexv1datascan = googleclouddataplexv1datascan + return c +} + +// DataScanId sets the optional parameter "dataScanId": Required. +// DataScan identifier. * Must contain only lowercase letters, numbers +// and hyphens. * Must start with a letter. * Must end with a number or +// a letter. * Must be between 1-63 characters. * Must be unique within +// the customer project / location. +func (c *ProjectsLocationsDataScansCreateCall) DataScanId(dataScanId string) *ProjectsLocationsDataScansCreateCall { + c.urlParams_.Set("dataScanId", dataScanId) + 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 *ProjectsLocationsDataScansCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansCreateCall { + 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 *ProjectsLocationsDataScansCreateCall) Context(ctx context.Context) *ProjectsLocationsDataScansCreateCall { + 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 *ProjectsLocationsDataScansCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansCreateCall) 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.googleclouddataplexv1datascan) + 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}/dataScans") + 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 "dataplex.projects.locations.dataScans.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsDataScansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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": "Creates a dataScan resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataScans.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "dataScanId": { + // "description": "Required. DataScan identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the parent location: projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/dataScans", + // "request": { + // "$ref": "GoogleCloudDataplexV1DataScan" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.delete": + +type ProjectsLocationsDataScansDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete the dataScan resource. +// +// - name: The resource name of the dataScan: +// projects/{project}/locations/{location_id}/dataScans/{data_scan_id} +// where {project} refers to a project_id or project_number and +// location_id refers to a GCP region. +func (r *ProjectsLocationsDataScansService) Delete(name string) *ProjectsLocationsDataScansDeleteCall { + c := &ProjectsLocationsDataScansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *ProjectsLocationsDataScansDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansDeleteCall { + 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 *ProjectsLocationsDataScansDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataScansDeleteCall { + 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 *ProjectsLocationsDataScansDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansDeleteCall) 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 + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsDataScansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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": "Delete the dataScan resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", + // "httpMethod": "DELETE", + // "id": "dataplex.projects.locations.dataScans.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.get": + +type ProjectsLocationsDataScansGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get dataScan resource. +// +// - name: The resource name of the dataScan: +// projects/{project}/locations/{location_id}/dataScans/{data_scan_id} +// where {project} refers to a project_id or project_number and +// location_id refers to a GCP region. +func (r *ProjectsLocationsDataScansService) Get(name string) *ProjectsLocationsDataScansGetCall { + c := &ProjectsLocationsDataScansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": Used to select the subset of +// DataScan information to return. Defaults to BASIC. +// +// Possible values: +// +// "DATA_SCAN_VIEW_UNSPECIFIED" - The API will default to the BASIC +// +// view. +// +// "BASIC" - Basic view that does not include spec and result. +// "FULL" - Include everything. +func (c *ProjectsLocationsDataScansGetCall) View(view string) *ProjectsLocationsDataScansGetCall { + c.urlParams_.Set("view", view) + 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 *ProjectsLocationsDataScansGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataScansGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataScansGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetCall { + 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 *ProjectsLocationsDataScansGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.get" call. +// Exactly one of *GoogleCloudDataplexV1DataScan or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDataplexV1DataScan.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 *ProjectsLocationsDataScansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScan, 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 := &GoogleCloudDataplexV1DataScan{ + 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": "Get dataScan resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataScans.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. Used to select the subset of DataScan information to return. Defaults to BASIC.", + // "enum": [ + // "DATA_SCAN_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The API will default to the BASIC view.", + // "Basic view that does not include spec and result.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudDataplexV1DataScan" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.getIamPolicy": + +type ProjectsLocationsDataScansGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataScansService) GetIamPolicy(resource string) *ProjectsLocationsDataScansGetIamPolicyCall { + c := &ProjectsLocationsDataScansGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDataScansGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataScansGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDataScansGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataScansGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataScansGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetIamPolicyCall { + 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 *ProjectsLocationsDataScansGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansGetIamPolicyCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataScansGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataScans.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.list": + +type ProjectsLocationsDataScansListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists dataScans. +// +// - parent: projects/{project}/locations/{location_id} where {project} +// refers to a project_id or project_number and location_id refers to +// a GCP region. +func (r *ProjectsLocationsDataScansService) List(parent string) *ProjectsLocationsDataScansListCall { + c := &ProjectsLocationsDataScansListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter request. +func (c *ProjectsLocationsDataScansListCall) Filter(filter string) *ProjectsLocationsDataScansListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Order by fields (name +// or create_time) for the result. If not specified, the ordering is +// undefined. +func (c *ProjectsLocationsDataScansListCall) OrderBy(orderBy string) *ProjectsLocationsDataScansListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// dataScans to return. The service may return fewer than this value. If +// unspecified, at most 10 scans will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsDataScansListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous ListDataScans call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to ListDataScans must match the call that provided the page token. +func (c *ProjectsLocationsDataScansListCall) PageToken(pageToken string) *ProjectsLocationsDataScansListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *ProjectsLocationsDataScansListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataScansListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansListCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataScansListCall) Context(ctx context.Context) *ProjectsLocationsDataScansListCall { + 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 *ProjectsLocationsDataScansListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataScans") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", 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 "dataplex.projects.locations.dataScans.list" call. +// Exactly one of *GoogleCloudDataplexV1ListDataScansResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDataplexV1ListDataScansResponse.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 *ProjectsLocationsDataScansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScansResponse, 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 := &GoogleCloudDataplexV1ListDataScansResponse{ + 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": "Lists dataScans.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataScans.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter request.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Order by fields (name or create_time) for the result. If not specified, the ordering is undefined.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 10 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous ListDataScans call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScans must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/dataScans", + // "response": { + // "$ref": "GoogleCloudDataplexV1ListDataScansResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDataScansListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScansResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataplex.projects.locations.dataScans.patch": + +type ProjectsLocationsDataScansPatchCall struct { + s *Service + name string + googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the dataScan resource. +// +// - name: Output only. The relative resource name of the scan, of the +// form: +// projects/{project}/locations/{location_id}/dataScans/{datascan_id}. +// where {project} refers to a project_id or project_number and +// location_id refers to a GCP region. +func (r *ProjectsLocationsDataScansService) Patch(name string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansPatchCall { + c := &ProjectsLocationsDataScansPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddataplexv1datascan = googleclouddataplexv1datascan + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// of fields to update. +func (c *ProjectsLocationsDataScansPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataScansPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsLocationsDataScansPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansPatchCall { + 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 *ProjectsLocationsDataScansPatchCall) Context(ctx context.Context) *ProjectsLocationsDataScansPatchCall { + 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 *ProjectsLocationsDataScansPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansPatchCall) 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.googleclouddataplexv1datascan) + 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/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsDataScansPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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": "Update the dataScan resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}", + // "httpMethod": "PATCH", + // "id": "dataplex.projects.locations.dataScans.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudDataplexV1DataScan" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.run": + +type ProjectsLocationsDataScansRunCall struct { + s *Service + name string + googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Run: Run an on demand execution of a DataScan. +// +// - name: The resource name of the DataScan: +// projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. +// where {project} refers to a project_id or project_number and +// location_id refers to a GCP region. Only on-demand DataScans are +// allowed. +func (r *ProjectsLocationsDataScansService) Run(name string, googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest) *ProjectsLocationsDataScansRunCall { + c := &ProjectsLocationsDataScansRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddataplexv1rundatascanrequest = googleclouddataplexv1rundatascanrequest + 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 *ProjectsLocationsDataScansRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansRunCall { + 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 *ProjectsLocationsDataScansRunCall) Context(ctx context.Context) *ProjectsLocationsDataScansRunCall { + 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 *ProjectsLocationsDataScansRunCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansRunCall) 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.googleclouddataplexv1rundatascanrequest) + 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/{+name}:run") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.run" call. +// Exactly one of *GoogleCloudDataplexV1RunDataScanResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDataplexV1RunDataScanResponse.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 *ProjectsLocationsDataScansRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunDataScanResponse, 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 := &GoogleCloudDataplexV1RunDataScanResponse{ + 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": "Run an on demand execution of a DataScan.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:run", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataScans.run", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the DataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. Only on-demand DataScans are allowed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:run", + // "request": { + // "$ref": "GoogleCloudDataplexV1RunDataScanRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDataplexV1RunDataScanResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.setIamPolicy": + +type ProjectsLocationsDataScansSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataScansService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataScansSetIamPolicyCall { + c := &ProjectsLocationsDataScansSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsDataScansSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansSetIamPolicyCall { + 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 *ProjectsLocationsDataScansSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansSetIamPolicyCall { + 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 *ProjectsLocationsDataScansSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataScansSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataScans.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.testIamPermissions": + +type ProjectsLocationsDataScansTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataScansService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataScansTestIamPermissionsCall { + c := &ProjectsLocationsDataScansTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsDataScansTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansTestIamPermissionsCall { + 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 *ProjectsLocationsDataScansTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataScansTestIamPermissionsCall { + 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 *ProjectsLocationsDataScansTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansTestIamPermissionsCall) 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.googleiamv1testiampermissionsrequest) + 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/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsDataScansTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + 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": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataScans.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.jobs.get": + +type ProjectsLocationsDataScansJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get DataScanJob resource. +// +// - name: The resource name of the DataScanJob: +// projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/ +// dataScanJobs/{data_scan_job_id} where {project} refers to a +// project_id or project_number and location_id refers to a GCP +// region. +func (r *ProjectsLocationsDataScansJobsService) Get(name string) *ProjectsLocationsDataScansJobsGetCall { + c := &ProjectsLocationsDataScansJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": Used to select the subset of +// DataScan information to return. Defaults to BASIC. +// +// Possible values: +// +// "DATA_SCAN_JOB_VIEW_UNSPECIFIED" - The API will default to the +// +// BASIC view. +// +// "BASIC" - Basic view that does not include spec and result. +// "FULL" - Include everything. +func (c *ProjectsLocationsDataScansJobsGetCall) View(view string) *ProjectsLocationsDataScansJobsGetCall { + c.urlParams_.Set("view", view) + 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 *ProjectsLocationsDataScansJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataScansJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsGetCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataScansJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsGetCall { + 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 *ProjectsLocationsDataScansJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansJobsGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataScans.jobs.get" call. +// Exactly one of *GoogleCloudDataplexV1DataScanJob or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDataplexV1DataScanJob.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 *ProjectsLocationsDataScansJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScanJob, 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 := &GoogleCloudDataplexV1DataScanJob{ + 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": "Get DataScanJob resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}/jobs/{jobsId}", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataScans.jobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the DataScanJob: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. Used to select the subset of DataScan information to return. Defaults to BASIC.", + // "enum": [ + // "DATA_SCAN_JOB_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The API will default to the BASIC view.", + // "Basic view that does not include spec and result.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudDataplexV1DataScanJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataScans.jobs.list": + +type ProjectsLocationsDataScansJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists DataScanJobs under the given dataScan. +// +// - parent: The resource name of the parent environment: +// projects/{project}/locations/{location_id}/dataScans/{data_scan_id} +// where {project} refers to a project_id or project_number and +// location_id refers to a GCP region. +func (r *ProjectsLocationsDataScansJobsService) List(parent string) *ProjectsLocationsDataScansJobsListCall { + c := &ProjectsLocationsDataScansJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// DataScanJobs to return. The service may return fewer than this value. +// If unspecified, at most 10 DataScanJobs will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsDataScansJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous ListDataScanJobs call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to ListDataScanJobs must match the call that provided the +// page token. +func (c *ProjectsLocationsDataScansJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataScansJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *ProjectsLocationsDataScansJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataScansJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsListCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataScansJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsListCall { + 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 *ProjectsLocationsDataScansJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataScansJobsListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", 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 "dataplex.projects.locations.dataScans.jobs.list" call. +// Exactly one of *GoogleCloudDataplexV1ListDataScanJobsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDataplexV1ListDataScanJobsResponse.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 *ProjectsLocationsDataScansJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScanJobsResponse, 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 := &GoogleCloudDataplexV1ListDataScanJobsResponse{ + 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": "Lists DataScanJobs under the given dataScan.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataScans/{dataScansId}/jobs", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataScans.jobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous ListDataScanJobs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScanJobs must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the parent environment: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataScans/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/jobs", + // "response": { + // "$ref": "GoogleCloudDataplexV1ListDataScanJobsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDataScansJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScanJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataplex.projects.locations.dataTaxonomies.getIamPolicy": + +type ProjectsLocationsDataTaxonomiesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall { + c := &ProjectsLocationsDataTaxonomiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall { + 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 *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataTaxonomies.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataTaxonomies.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataTaxonomies.setIamPolicy": + +type ProjectsLocationsDataTaxonomiesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall { + c := &ProjectsLocationsDataTaxonomiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall { + 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 *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall { + 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 *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataTaxonomies.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataTaxonomies.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataTaxonomies.testIamPermissions": + +type ProjectsLocationsDataTaxonomiesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall { + c := &ProjectsLocationsDataTaxonomiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall { + 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 *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall { + 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 *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) 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.googleiamv1testiampermissionsrequest) + 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/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataTaxonomies.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + 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": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataTaxonomies.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy": + +type ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesAttributesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall { + c := &ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy.Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected.Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset.The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1.To learn which +// resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall { + 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 *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -// method id "dataplex.projects.locations.get": +// method id "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy": -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy.Can return NOT_FOUND, +// INVALID_ARGUMENT, and PERMISSION_DENIED errors. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesAttributesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall { + c := &ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall { 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 *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) 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()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + 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/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataplex.projects.locations.get" call. -// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { +func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4980,7 +9786,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationLocation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4992,25 +9798,28 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "dataplex.projects.locations.get", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Resource name for the location.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleCloudLocationLocation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5019,123 +9828,97 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } -// method id "dataplex.projects.locations.list": +// method id "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions": -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a NOT_FOUND error.Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the next_page_token field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDataTaxonomiesAttributesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall { + c := &ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall { 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 *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) 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()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + 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/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataplex.projects.locations.list" call. -// Exactly one of *GoogleCloudLocationListLocationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudLocationListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { +// Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5154,7 +9937,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationListLocationsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5166,41 +9949,28 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "dataplex.projects.locations.list", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataTaxonomies/{dataTaxonomiesId}/attributes/{attributesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}/locations", + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "GoogleCloudLocationListLocationsResponse" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5209,27 +9979,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - // method id "dataplex.projects.locations.lakes.create": type ProjectsLocationsLakesCreateCall struct { diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index cb0d2094c7b..ae99c6363fb 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8077,7 +8077,7 @@ } } }, - "revision": "20221109", + "revision": "20221115", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -15737,7 +15737,7 @@ "type": "object" }, "GoogleCloudDialogflowV2Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2Sentiment", "properties": { "magnitude": { @@ -18386,7 +18386,7 @@ "type": "object" }, "GoogleCloudDialogflowV2beta1Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2beta1Sentiment", "properties": { "magnitude": { diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index d418a316ac5..1a1d89c1cc8 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -14877,7 +14877,9 @@ func (s *GoogleCloudDialogflowV2SearchAgentsResponse) MarshalJSON() ([]byte, err // GoogleCloudDialogflowV2Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score @@ -19546,7 +19548,9 @@ func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) err // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index a49935641c8..b704e14561f 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7507,7 +7507,7 @@ } } }, - "revision": "20221109", + "revision": "20221115", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -12894,7 +12894,7 @@ "type": "object" }, "GoogleCloudDialogflowV2Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2Sentiment", "properties": { "magnitude": { @@ -17478,7 +17478,7 @@ "type": "object" }, "GoogleCloudDialogflowV2beta1Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2beta1Sentiment", "properties": { "magnitude": { diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index acc43f92030..7d3e55f1ac6 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -10520,7 +10520,9 @@ func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { // GoogleCloudDialogflowV2Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score @@ -18772,7 +18774,9 @@ func (s *GoogleCloudDialogflowV2beta1SearchAgentsResponse) MarshalJSON() ([]byte // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index fff860f8d66..5f4729d77ad 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20221109", + "revision": "20221115", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -11560,7 +11560,7 @@ "type": "object" }, "GoogleCloudDialogflowV2Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2Sentiment", "properties": { "magnitude": { @@ -13776,7 +13776,7 @@ "type": "object" }, "GoogleCloudDialogflowV2beta1Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2beta1Sentiment", "properties": { "magnitude": { diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index f9152281ff6..3d082f6bd8f 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -14555,7 +14555,9 @@ func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { // GoogleCloudDialogflowV2Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score @@ -18349,7 +18351,9 @@ func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) err // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index d5f94c162fa..127cbf0f6cc 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20221109", + "revision": "20221115", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -11560,7 +11560,7 @@ "type": "object" }, "GoogleCloudDialogflowV2Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2Sentiment", "properties": { "magnitude": { @@ -13776,7 +13776,7 @@ "type": "object" }, "GoogleCloudDialogflowV2beta1Sentiment": { - "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.", + "description": "The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.", "id": "GoogleCloudDialogflowV2beta1Sentiment", "properties": { "magnitude": { diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 0547ec4d2d0..cc2f4b917b0 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -14562,7 +14562,9 @@ func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { // GoogleCloudDialogflowV2Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score @@ -18356,7 +18358,9 @@ func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) err // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit of analysis, -// such as the query text. +// such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score diff --git a/fcm/v1/fcm-api.json b/fcm/v1/fcm-api.json index 05184744d83..a9730e63812 100644 --- a/fcm/v1/fcm-api.json +++ b/fcm/v1/fcm-api.json @@ -146,7 +146,7 @@ } } }, - "revision": "20220307", + "revision": "20221115", "rootUrl": "https://fcm.googleapis.com/", "schemas": { "AndroidConfig": { @@ -374,7 +374,7 @@ "additionalProperties": { "type": "string" }, - "description": "HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`.", + "description": "HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.", "type": "object" }, "payload": { @@ -382,7 +382,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.", + "description": "APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.", "type": "object" } }, diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index bf4bfe6b952..fc7e9f5e50d 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -518,15 +518,15 @@ type ApnsConfig struct { // Service. Refer to APNs request headers // (https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) // for supported headers such as `apns-expiration` and `apns-priority`. + // The backend sets a default value for `apns-expiration` of 30 days and + // a default value for `apns-priority` of 10 if not explicitly set. Headers map[string]string `json:"headers,omitempty"` // Payload: APNs payload as a JSON object, including both `aps` // dictionary and custom payload. See Payload Key Reference // (https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). // If present, it overrides google.firebase.fcm.v1.Notification.title - // and google.firebase.fcm.v1.Notification.body. The backend sets a - // default value for `apns-expiration` of 30 days and a default value - // for `apns-priority` of 10 if not explicitly set. + // and google.firebase.fcm.v1.Notification.body. Payload googleapi.RawMessage `json:"payload,omitempty"` // ForceSendFields is a list of field names (e.g. "FcmOptions") to diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 57e581cec1f..65952468753 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3372,7 +3372,7 @@ } } }, - "revision": "20221103", + "revision": "20221117", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3550,6 +3550,10 @@ "findingCategory": { "description": "The additional taxonomy group within findings from a given source.", "type": "string" + }, + "name": { + "description": "Full resource name of the finding.", + "type": "string" } }, "type": "object" diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 7ff72344cce..22767687fd6 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -733,6 +733,9 @@ type AssociatedFinding struct { // given source. FindingCategory string `json:"findingCategory,omitempty"` + // Name: Full resource name of the finding. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. // "CanonicalFindingName") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index ad6fae8e45f..0fa06714382 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20221103", + "revision": "20221117", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1059,6 +1059,10 @@ "findingCategory": { "description": "The additional taxonomy group within findings from a given source.", "type": "string" + }, + "name": { + "description": "Full resource name of the finding.", + "type": "string" } }, "type": "object" diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 76ebbb8a401..2ac0e367b92 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -440,6 +440,9 @@ type AssociatedFinding struct { // given source. FindingCategory string `json:"findingCategory,omitempty"` + // Name: Full resource name of the finding. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. // "CanonicalFindingName") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index a40dd6b1b0e..1209dfb3acd 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20221103", + "revision": "20221117", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2080,6 +2080,10 @@ "findingCategory": { "description": "The additional taxonomy group within findings from a given source.", "type": "string" + }, + "name": { + "description": "Full resource name of the finding.", + "type": "string" } }, "type": "object" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 334ed0377ed..3f7dc0669fb 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -570,6 +570,9 @@ type AssociatedFinding struct { // given source. FindingCategory string `json:"findingCategory,omitempty"` + // Name: Full resource name of the finding. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. // "CanonicalFindingName") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API