As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Cloud Datastream v1 API

class google.cloud.datastream_v1.types.AvroFileFormat(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

AVRO file format configuration.

class google.cloud.datastream_v1.types.BackfillJob(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represents a backfill job on a specific stream object.

state

Backfill job state.

Type

google.cloud.datastream_v1.types.BackfillJob.State

trigger

Backfill job’s triggering reason.

Type

google.cloud.datastream_v1.types.BackfillJob.Trigger

last_start_time

Output only. Backfill job’s start time.

Type

google.protobuf.timestamp_pb2.Timestamp

last_end_time

Output only. Backfill job’s end time.

Type

google.protobuf.timestamp_pb2.Timestamp

errors

Output only. Errors which caused the backfill job to fail.

Type

MutableSequence[google.cloud.datastream_v1.types.Error]

class State(value)[source]

Bases: proto.enums.Enum

State of the stream object’s backfill job.

Values:
STATE_UNSPECIFIED (0):

Default value.

NOT_STARTED (1):

Backfill job was never started for the stream object (stream has backfill strategy defined as manual or object was explicitly excluded from automatic backfill).

PENDING (2):

Backfill job will start pending available resources.

ACTIVE (3):

Backfill job is running.

STOPPED (4):

Backfill job stopped (next job run will start from beginning).

FAILED (5):

Backfill job failed (due to an error).

COMPLETED (6):

Backfill completed successfully.

UNSUPPORTED (7):

Backfill job failed since the table structure is currently unsupported for backfill.

class Trigger(value)[source]

Bases: proto.enums.Enum

Triggering reason for a backfill job.

Values:
TRIGGER_UNSPECIFIED (0):

Default value.

AUTOMATIC (1):

Object backfill job was triggered automatically according to the stream’s backfill strategy.

MANUAL (2):

Object backfill job was triggered manually using the dedicated API.

class google.cloud.datastream_v1.types.BigQueryDestinationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

BigQuery destination configuration

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

single_target_dataset

Single destination dataset.

This field is a member of oneof dataset_config.

Type

google.cloud.datastream_v1.types.BigQueryDestinationConfig.SingleTargetDataset

source_hierarchy_datasets

Source hierarchy datasets.

This field is a member of oneof dataset_config.

Type

google.cloud.datastream_v1.types.BigQueryDestinationConfig.SourceHierarchyDatasets

data_freshness

The guaranteed data freshness (in seconds) when querying tables created by the stream. Editing this field will only affect new tables created in the future, but existing tables will not be impacted. Lower values mean that queries will return fresher data, but may result in higher cost.

Type

google.protobuf.duration_pb2.Duration

class SingleTargetDataset(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A single target dataset to which all data will be streamed.

dataset_id

The dataset ID of the target dataset.

Type

str

class SourceHierarchyDatasets(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Destination datasets are created so that hierarchy of the destination data objects matches the source hierarchy.

dataset_template

The dataset template to use for dynamic dataset creation.

Type

google.cloud.datastream_v1.types.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

class DatasetTemplate(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Dataset template used for dynamic dataset creation.

location

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

Type

str

dataset_id_prefix

If supplied, every created dataset will have its name prefixed by the provided value. The prefix and name will be separated by an underscore. i.e. _<dataset_name>.

Type

str

kms_key_name

Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key. i.e. projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. See https://cloud.google.com/bigquery/docs/customer-managed-encryption for more information.

Type

str

class google.cloud.datastream_v1.types.BigQueryProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

BigQuery warehouse profile.

class google.cloud.datastream_v1.types.ConnectionProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A set of reusable connection configurations to be used as a source or destination for a stream.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

name

Output only. The resource’s name.

Type

str

create_time

Output only. The create time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. The update time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

labels

Labels.

Type

MutableMapping[str, str]

display_name

Required. Display name.

Type

str

oracle_profile

Oracle ConnectionProfile configuration.

This field is a member of oneof profile.

Type

google.cloud.datastream_v1.types.OracleProfile

gcs_profile

Cloud Storage ConnectionProfile configuration.

This field is a member of oneof profile.

Type

google.cloud.datastream_v1.types.GcsProfile

mysql_profile

MySQL ConnectionProfile configuration.

This field is a member of oneof profile.

Type

google.cloud.datastream_v1.types.MysqlProfile

bigquery_profile

BigQuery Connection Profile configuration.

This field is a member of oneof profile.

Type

google.cloud.datastream_v1.types.BigQueryProfile

postgresql_profile

PostgreSQL Connection Profile configuration.

This field is a member of oneof profile.

Type

google.cloud.datastream_v1.types.PostgresqlProfile

static_service_ip_connectivity

Static Service IP connectivity.

This field is a member of oneof connectivity.

Type

google.cloud.datastream_v1.types.StaticServiceIpConnectivity

forward_ssh_connectivity

Forward SSH tunnel connectivity.

This field is a member of oneof connectivity.

Type

google.cloud.datastream_v1.types.ForwardSshTunnelConnectivity

private_connectivity

Private connectivity.

This field is a member of oneof connectivity.

Type

google.cloud.datastream_v1.types.PrivateConnectivity

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.datastream_v1.types.CreateConnectionProfileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for creating a connection profile.

parent

Required. The parent that owns the collection of ConnectionProfiles.

Type

str

connection_profile_id

Required. The connection profile identifier.

Type

str

connection_profile

Required. The connection profile resource to create.

Type

google.cloud.datastream_v1.types.ConnectionProfile

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

validate_only

Optional. Only validate the connection profile, but don’t create any resources. The default is false.

Type

bool

force

Optional. Create the connection profile without validating it.

Type

bool

class google.cloud.datastream_v1.types.CreatePrivateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for creating a private connection.

parent

Required. The parent that owns the collection of PrivateConnections.

Type

str

private_connection_id

Required. The private connectivity identifier.

Type

str

private_connection

Required. The Private Connectivity resource to create.

Type

google.cloud.datastream_v1.types.PrivateConnection

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

force

Optional. If set to true, will skip validations.

Type

bool

class google.cloud.datastream_v1.types.CreateRouteRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Route creation request.

parent

Required. The parent that owns the collection of Routes.

Type

str

route_id

Required. The Route identifier.

Type

str

route

Required. The Route resource to create.

Type

google.cloud.datastream_v1.types.Route

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.datastream_v1.types.CreateStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for creating a stream.

parent

Required. The parent that owns the collection of streams.

Type

str

stream_id

Required. The stream identifier.

Type

str

stream

Required. The stream resource to create.

Type

google.cloud.datastream_v1.types.Stream

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

validate_only

Optional. Only validate the stream, but don’t create any resources. The default is false.

Type

bool

force

Optional. Create the stream without validating it.

Type

bool

class google.cloud.datastream_v1.types.DeleteConnectionProfileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for deleting a connection profile.

name

Required. The name of the connection profile resource to delete.

Type

str

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.datastream_v1.types.DeletePrivateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to delete a private connection.

name

Required. The name of the private connectivity configuration to delete.

Type

str

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

force

Optional. If set to true, any child routes that belong to this PrivateConnection will also be deleted.

Type

bool

class google.cloud.datastream_v1.types.DeleteRouteRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Route deletion request.

name

Required. The name of the Route resource to delete.

Type

str

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.datastream_v1.types.DeleteStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for deleting a stream.

name

Required. The name of the stream resource to delete.

Type

str

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.datastream_v1.types.DestinationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The configuration of the stream destination.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

destination_connection_profile

Required. Destination connection profile resource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

Type

str

gcs_destination_config

A configuration for how data should be loaded to Cloud Storage.

This field is a member of oneof destination_stream_config.

Type

google.cloud.datastream_v1.types.GcsDestinationConfig

bigquery_destination_config

BigQuery destination configuration.

This field is a member of oneof destination_stream_config.

Type

google.cloud.datastream_v1.types.BigQueryDestinationConfig

class google.cloud.datastream_v1.types.DiscoverConnectionProfileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for ‘discover’ ConnectionProfile request.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

parent

Required. The parent resource of the connection profile type. Must be in the format projects/*/locations/*.

Type

str

connection_profile

An ad-hoc connection profile configuration.

This field is a member of oneof target.

Type

google.cloud.datastream_v1.types.ConnectionProfile

connection_profile_name

A reference to an existing connection profile.

This field is a member of oneof target.

Type

str

full_hierarchy

Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE).

This field is a member of oneof hierarchy.

Type

bool

hierarchy_depth

The number of hierarchy levels below the current level to be retrieved.

This field is a member of oneof hierarchy.

Type

int

oracle_rdbms

Oracle RDBMS to enrich with child data objects and metadata.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.OracleRdbms

mysql_rdbms

MySQL RDBMS to enrich with child data objects and metadata.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.MysqlRdbms

postgresql_rdbms

PostgreSQL RDBMS to enrich with child data objects and metadata.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.PostgresqlRdbms

class google.cloud.datastream_v1.types.DiscoverConnectionProfileResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response from a discover request.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

oracle_rdbms

Enriched Oracle RDBMS object.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.OracleRdbms

mysql_rdbms

Enriched MySQL RDBMS object.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.MysqlRdbms

postgresql_rdbms

Enriched PostgreSQL RDBMS object.

This field is a member of oneof data_object.

Type

google.cloud.datastream_v1.types.PostgresqlRdbms

class google.cloud.datastream_v1.types.Error(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represent a user-facing Error.

reason

A title that explains the reason for the error.

Type

str

error_uuid

A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.

Type

str

message

A message containing more information about the error that occurred.

Type

str

error_time

The time when the error occurred.

Type

google.protobuf.timestamp_pb2.Timestamp

details

Additional information about the error.

Type

MutableMapping[str, str]

class DetailsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.datastream_v1.types.FetchStaticIpsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for ‘FetchStaticIps’ request.

name

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/*/locations/*.

Type

str

page_size

Maximum number of Ips to return, will likely not be specified.

Type

int

page_token

A page token, received from a previous ListStaticIps call. will likely not be specified.

Type

str

class google.cloud.datastream_v1.types.FetchStaticIpsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response message for a ‘FetchStaticIps’ response.

static_ips

list of static ips by account

Type

MutableSequence[str]

next_page_token

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Type

str

class google.cloud.datastream_v1.types.ForwardSshTunnelConnectivity(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Forward SSH Tunnel connectivity.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

hostname

Required. Hostname for the SSH tunnel.

Type

str

username

Required. Username for the SSH tunnel.

Type

str

port

Port for the SSH tunnel, default value is 22.

Type

int

password

Input only. SSH password.

This field is a member of oneof authentication_method.

Type

str

private_key

Input only. SSH private key.

This field is a member of oneof authentication_method.

Type

str

class google.cloud.datastream_v1.types.GcsDestinationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Google Cloud Storage destination configuration

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

path

Path inside the Cloud Storage bucket to write data to.

Type

str

file_rotation_mb

The maximum file size to be saved in the bucket.

Type

int

file_rotation_interval

The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.

Type

google.protobuf.duration_pb2.Duration

avro_file_format

AVRO file format configuration.

This field is a member of oneof file_format.

Type

google.cloud.datastream_v1.types.AvroFileFormat

json_file_format

JSON file format configuration.

This field is a member of oneof file_format.

Type

google.cloud.datastream_v1.types.JsonFileFormat

class google.cloud.datastream_v1.types.GcsProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Cloud Storage bucket profile.

bucket

Required. The Cloud Storage bucket name.

Type

str

root_path

The root path inside the Cloud Storage bucket.

Type

str

class google.cloud.datastream_v1.types.GetConnectionProfileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for getting a connection profile.

name

Required. The name of the connection profile resource to get.

Type

str

class google.cloud.datastream_v1.types.GetPrivateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to get a private connection configuration.

name

Required. The name of the private connectivity configuration to get.

Type

str

class google.cloud.datastream_v1.types.GetRouteRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Route get request.

name

Required. The name of the Route resource to get.

Type

str

class google.cloud.datastream_v1.types.GetStreamObjectRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for fetching a specific stream object.

name

Required. The name of the stream object resource to get.

Type

str

class google.cloud.datastream_v1.types.GetStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for getting a stream.

name

Required. The name of the stream resource to get.

Type

str

class google.cloud.datastream_v1.types.JsonFileFormat(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

JSON file format configuration.

schema_file_format

The schema file format along JSON data files.

Type

google.cloud.datastream_v1.types.JsonFileFormat.SchemaFileFormat

compression

Compression of the loaded JSON file.

Type

google.cloud.datastream_v1.types.JsonFileFormat.JsonCompression

class JsonCompression(value)[source]

Bases: proto.enums.Enum

Json file compression.

Values:
JSON_COMPRESSION_UNSPECIFIED (0):

Unspecified json file compression.

NO_COMPRESSION (1):

Do not compress JSON file.

GZIP (2):

Gzip compression.

class SchemaFileFormat(value)[source]

Bases: proto.enums.Enum

Schema file format.

Values:
SCHEMA_FILE_FORMAT_UNSPECIFIED (0):

Unspecified schema file format.

NO_SCHEMA_FILE (1):

Do not attach schema file.

AVRO_SCHEMA_FILE (2):

Avro schema format.

class google.cloud.datastream_v1.types.ListConnectionProfilesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for listing connection profiles.

parent

Required. The parent that owns the collection of connection profiles.

Type

str

page_size

Maximum number of connection profiles to return. If unspecified, at most 50 connection profiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

Type

int

page_token

Page token received from a previous ListConnectionProfiles call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListConnectionProfiles must match the call that provided the page token.

Type

str

filter

Filter request.

Type

str

order_by

Order by fields for the result.

Type

str

class google.cloud.datastream_v1.types.ListConnectionProfilesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response message for listing connection profiles.

connection_profiles

List of connection profiles.

Type

MutableSequence[google.cloud.datastream_v1.types.ConnectionProfile]

next_page_token

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Type

str

unreachable

Locations that could not be reached.

Type

MutableSequence[str]

class google.cloud.datastream_v1.types.ListPrivateConnectionsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for listing private connections.

parent

Required. The parent that owns the collection of private connectivity configurations.

Type

str

page_size

Maximum number of private connectivity configurations to return. If unspecified, at most 50 private connectivity configurations that will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

Type

int

page_token

Page token received from a previous ListPrivateConnections call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListPrivateConnections must match the call that provided the page token.

Type

str

filter

Filter request.

Type

str

order_by

Order by fields for the result.

Type

str

class google.cloud.datastream_v1.types.ListPrivateConnectionsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response containing a list of private connection configurations.

private_connections

List of private connectivity configurations.

Type

MutableSequence[google.cloud.datastream_v1.types.PrivateConnection]

next_page_token

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Type

str

unreachable

Locations that could not be reached.

Type

MutableSequence[str]

class google.cloud.datastream_v1.types.ListRoutesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Route list request.

parent

Required. The parent that owns the collection of Routess.

Type

str

page_size

Maximum number of Routes to return. The service may return fewer than this value. If unspecified, at most 50 Routes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

Type

int

page_token

Page token received from a previous ListRoutes call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListRoutes must match the call that provided the page token.

Type

str

filter

Filter request.

Type

str

order_by

Order by fields for the result.

Type

str

class google.cloud.datastream_v1.types.ListRoutesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Route list response.

routes

List of Routes.

Type

MutableSequence[google.cloud.datastream_v1.types.Route]

next_page_token

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Type

str

unreachable

Locations that could not be reached.

Type

MutableSequence[str]

class google.cloud.datastream_v1.types.ListStreamObjectsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for listing all objects for a specific stream.

parent

Required. The parent stream that owns the collection of objects.

Type

str

page_size

Maximum number of objects to return. Default is 50. The maximum value is 1000; values above 1000 will be coerced to 1000.

Type

int

page_token

Page token received from a previous ListStreamObjectsRequest call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListStreamObjectsRequest must match the call that provided the page token.

Type

str

class google.cloud.datastream_v1.types.ListStreamObjectsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response containing the objects for a stream.

stream_objects

List of stream objects.

Type

MutableSequence[google.cloud.datastream_v1.types.StreamObject]

next_page_token

A token, which can be sent as page_token to retrieve the next page.

Type

str

class google.cloud.datastream_v1.types.ListStreamsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for listing streams.

parent

Required. The parent that owns the collection of streams.

Type

str

page_size

Maximum number of streams to return. If unspecified, at most 50 streams will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

Type

int

page_token

Page token received from a previous ListStreams call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListStreams must match the call that provided the page token.

Type

str

filter

Filter request.

Type

str

order_by

Order by fields for the result.

Type

str

class google.cloud.datastream_v1.types.ListStreamsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response message for listing streams.

streams

List of streams

Type

MutableSequence[google.cloud.datastream_v1.types.Stream]

next_page_token

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Type

str

unreachable

Locations that could not be reached.

Type

MutableSequence[str]

class google.cloud.datastream_v1.types.LookupStreamObjectRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for looking up a specific stream object by its source object identifier.

parent

Required. The parent stream that owns the collection of objects.

Type

str

source_object_identifier

Required. The source object identifier which maps to the stream object.

Type

google.cloud.datastream_v1.types.SourceObjectIdentifier

class google.cloud.datastream_v1.types.MysqlColumn(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL Column.

column

Column name.

Type

str

data_type

The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html

Type

str

length

Column length.

Type

int

collation

Column collation.

Type

str

primary_key

Whether or not the column represents a primary key.

Type

bool

nullable

Whether or not the column can accept a null value.

Type

bool

ordinal_position

The ordinal position of the column in the table.

Type

int

precision

Column precision.

Type

int

scale

Column scale.

Type

int

class google.cloud.datastream_v1.types.MysqlDatabase(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL database.

database

Database name.

Type

str

mysql_tables

Tables in the database.

Type

MutableSequence[google.cloud.datastream_v1.types.MysqlTable]

class google.cloud.datastream_v1.types.MysqlProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL database profile.

hostname

Required. Hostname for the MySQL connection.

Type

str

port

Port for the MySQL connection, default value is 3306.

Type

int

username

Required. Username for the MySQL connection.

Type

str

password

Required. Input only. Password for the MySQL connection.

Type

str

ssl_config

SSL configuration for the MySQL connection.

Type

google.cloud.datastream_v1.types.MysqlSslConfig

class google.cloud.datastream_v1.types.MysqlRdbms(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL database structure

mysql_databases

Mysql databases on the server

Type

MutableSequence[google.cloud.datastream_v1.types.MysqlDatabase]

class google.cloud.datastream_v1.types.MysqlSourceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL source configuration

include_objects

MySQL objects to retrieve from the source.

Type

google.cloud.datastream_v1.types.MysqlRdbms

exclude_objects

MySQL objects to exclude from the stream.

Type

google.cloud.datastream_v1.types.MysqlRdbms

max_concurrent_cdc_tasks

Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system’s default value will be used.

Type

int

max_concurrent_backfill_tasks

Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system’s default value will be used.

Type

int

class google.cloud.datastream_v1.types.MysqlSslConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL SSL configuration information.

client_key

Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the ‘client_certificate’ and the ‘ca_certificate’ fields are mandatory.

Type

str

client_key_set

Output only. Indicates whether the client_key field is set.

Type

bool

client_certificate

Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the ‘client_key’ and the ‘ca_certificate’ fields are mandatory.

Type

str

client_certificate_set

Output only. Indicates whether the client_certificate field is set.

Type

bool

ca_certificate

Input only. PEM-encoded certificate of the CA that signed the source database server’s certificate.

Type

str

ca_certificate_set

Output only. Indicates whether the ca_certificate field is set.

Type

bool

class google.cloud.datastream_v1.types.MysqlTable(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MySQL table.

table

Table name.

Type

str

mysql_columns

MySQL columns in the database. When unspecified as part of include/exclude objects, includes/excludes everything.

Type

MutableSequence[google.cloud.datastream_v1.types.MysqlColumn]

class google.cloud.datastream_v1.types.OperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represents the metadata of the long-running operation.

create_time

Output only. The time the operation was created.

Type

google.protobuf.timestamp_pb2.Timestamp

end_time

Output only. The time the operation finished running.

Type

google.protobuf.timestamp_pb2.Timestamp

target

Output only. Server-defined resource path for the target of the operation.

Type

str

verb

Output only. Name of the verb executed by the operation.

Type

str

status_message

Output only. Human-readable status of the operation, if any.

Type

str

requested_cancellation

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][google.rpc.Status.code] of 1, corresponding to Code.CANCELLED.

Type

bool

api_version

Output only. API version used to start the operation.

Type

str

validation_result

Output only. Results of executed validations if there are any.

Type

google.cloud.datastream_v1.types.ValidationResult

class google.cloud.datastream_v1.types.OracleColumn(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle Column.

column

Column name.

Type

str

data_type

The Oracle data type.

Type

str

length

Column length.

Type

int

precision

Column precision.

Type

int

scale

Column scale.

Type

int

encoding

Column encoding.

Type

str

primary_key

Whether or not the column represents a primary key.

Type

bool

nullable

Whether or not the column can accept a null value.

Type

bool

ordinal_position

The ordinal position of the column in the table.

Type

int

class google.cloud.datastream_v1.types.OracleProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle database profile.

hostname

Required. Hostname for the Oracle connection.

Type

str

port

Port for the Oracle connection, default value is 1521.

Type

int

username

Required. Username for the Oracle connection.

Type

str

password

Required. Password for the Oracle connection.

Type

str

database_service

Required. Database for the Oracle connection.

Type

str

connection_attributes

Connection string attributes

Type

MutableMapping[str, str]

class ConnectionAttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.datastream_v1.types.OracleRdbms(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle database structure.

oracle_schemas

Oracle schemas/databases in the database server.

Type

MutableSequence[google.cloud.datastream_v1.types.OracleSchema]

class google.cloud.datastream_v1.types.OracleSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle schema.

schema

Schema name.

Type

str

oracle_tables

Tables in the schema.

Type

MutableSequence[google.cloud.datastream_v1.types.OracleTable]

class google.cloud.datastream_v1.types.OracleSourceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle data source configuration

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

include_objects

Oracle objects to include in the stream.

Type

google.cloud.datastream_v1.types.OracleRdbms

exclude_objects

Oracle objects to exclude from the stream.

Type

google.cloud.datastream_v1.types.OracleRdbms

max_concurrent_cdc_tasks

Maximum number of concurrent CDC tasks. The number should be non-negative. If not set (or set to 0), the system’s default value is used.

Type

int

max_concurrent_backfill_tasks

Maximum number of concurrent backfill tasks. The number should be non-negative. If not set (or set to 0), the system’s default value is used.

Type

int

drop_large_objects

Drop large object values.

This field is a member of oneof large_objects_handling.

Type

google.cloud.datastream_v1.types.OracleSourceConfig.DropLargeObjects

stream_large_objects

Stream large object values. NOTE: This feature is currently experimental.

This field is a member of oneof large_objects_handling.

Type

google.cloud.datastream_v1.types.OracleSourceConfig.StreamLargeObjects

class DropLargeObjects(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Configuration to drop large object values.

class StreamLargeObjects(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Configuration to stream large object values.

class google.cloud.datastream_v1.types.OracleTable(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle table.

table

Table name.

Type

str

oracle_columns

Oracle columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.

Type

MutableSequence[google.cloud.datastream_v1.types.OracleColumn]

class google.cloud.datastream_v1.types.PostgresqlColumn(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL Column.

column

Column name.

Type

str

data_type

The PostgreSQL data type.

Type

str

length

Column length.

Type

int

precision

Column precision.

Type

int

scale

Column scale.

Type

int

primary_key

Whether or not the column represents a primary key.

Type

bool

nullable

Whether or not the column can accept a null value.

Type

bool

ordinal_position

The ordinal position of the column in the table.

Type

int

class google.cloud.datastream_v1.types.PostgresqlProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL database profile.

hostname

Required. Hostname for the PostgreSQL connection.

Type

str

port

Port for the PostgreSQL connection, default value is 5432.

Type

int

username

Required. Username for the PostgreSQL connection.

Type

str

password

Required. Password for the PostgreSQL connection.

Type

str

database

Required. Database for the PostgreSQL connection.

Type

str

class google.cloud.datastream_v1.types.PostgresqlRdbms(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL database structure.

postgresql_schemas

PostgreSQL schemas in the database server.

Type

MutableSequence[google.cloud.datastream_v1.types.PostgresqlSchema]

class google.cloud.datastream_v1.types.PostgresqlSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL schema.

schema

Schema name.

Type

str

postgresql_tables

Tables in the schema.

Type

MutableSequence[google.cloud.datastream_v1.types.PostgresqlTable]

class google.cloud.datastream_v1.types.PostgresqlSourceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL data source configuration

include_objects

PostgreSQL objects to include in the stream.

Type

google.cloud.datastream_v1.types.PostgresqlRdbms

exclude_objects

PostgreSQL objects to exclude from the stream.

Type

google.cloud.datastream_v1.types.PostgresqlRdbms

replication_slot

Required. Immutable. The name of the logical replication slot that’s configured with the pgoutput plugin.

Type

str

publication

Required. The name of the publication that includes the set of all tables that are defined in the stream’s include_objects.

Type

str

max_concurrent_backfill_tasks

Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system’s default value will be used.

Type

int

class google.cloud.datastream_v1.types.PostgresqlTable(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL table.

table

Table name.

Type

str

postgresql_columns

PostgreSQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.

Type

MutableSequence[google.cloud.datastream_v1.types.PostgresqlColumn]

class google.cloud.datastream_v1.types.PrivateConnection(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The PrivateConnection resource is used to establish private connectivity between Datastream and a customer’s network.

name

Output only. The resource’s name.

Type

str

create_time

Output only. The create time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. The update time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

labels

Labels.

Type

MutableMapping[str, str]

display_name

Required. Display name.

Type

str

state

Output only. The state of the Private Connection.

Type

google.cloud.datastream_v1.types.PrivateConnection.State

error

Output only. In case of error, the details of the error in a user-friendly format.

Type

google.cloud.datastream_v1.types.Error

vpc_peering_config

VPC Peering Config.

Type

google.cloud.datastream_v1.types.VpcPeeringConfig

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class State(value)[source]

Bases: proto.enums.Enum

Private Connection state.

Values:
STATE_UNSPECIFIED (0):

Unspecified state.

CREATING (1):

The private connection is in creation state - creating resources.

CREATED (2):

The private connection has been created with all of its resources.

FAILED (3):

The private connection creation has failed.

DELETING (4):

The private connection is being deleted.

FAILED_TO_DELETE (5):

Delete request has failed, resource is in invalid state.

class google.cloud.datastream_v1.types.PrivateConnectivity(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Private Connectivity

private_connection

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

Type

str

class google.cloud.datastream_v1.types.Route(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The route resource is the child of the private connection resource, used for defining a route for a private connection.

name

Output only. The resource’s name.

Type

str

create_time

Output only. The create time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. The update time of the resource.

Type

google.protobuf.timestamp_pb2.Timestamp

labels

Labels.

Type

MutableMapping[str, str]

display_name

Required. Display name.

Type

str

destination_address

Required. Destination address for connection

Type

str

destination_port

Destination port for connection

Type

int

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.datastream_v1.types.SourceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The configuration of the stream source.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

source_connection_profile

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

Type

str

oracle_source_config

Oracle data source configuration.

This field is a member of oneof source_stream_config.

Type

google.cloud.datastream_v1.types.OracleSourceConfig

mysql_source_config

MySQL data source configuration.

This field is a member of oneof source_stream_config.

Type

google.cloud.datastream_v1.types.MysqlSourceConfig

postgresql_source_config

PostgreSQL data source configuration.

This field is a member of oneof source_stream_config.

Type

google.cloud.datastream_v1.types.PostgresqlSourceConfig

class google.cloud.datastream_v1.types.SourceObjectIdentifier(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represents an identifier of an object in the data source.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

oracle_identifier

Oracle data source object identifier.

This field is a member of oneof source_identifier.

Type

google.cloud.datastream_v1.types.SourceObjectIdentifier.OracleObjectIdentifier

mysql_identifier

Mysql data source object identifier.

This field is a member of oneof source_identifier.

Type

google.cloud.datastream_v1.types.SourceObjectIdentifier.MysqlObjectIdentifier

postgresql_identifier

PostgreSQL data source object identifier.

This field is a member of oneof source_identifier.

Type

google.cloud.datastream_v1.types.SourceObjectIdentifier.PostgresqlObjectIdentifier

class MysqlObjectIdentifier(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Mysql data source object identifier.

database

Required. The database name.

Type

str

table

Required. The table name.

Type

str

class OracleObjectIdentifier(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Oracle data source object identifier.

schema

Required. The schema name.

Type

str

table

Required. The table name.

Type

str

class PostgresqlObjectIdentifier(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PostgreSQL data source object identifier.

schema

Required. The schema name.

Type

str

table

Required. The table name.

Type

str

class google.cloud.datastream_v1.types.StartBackfillJobRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for manually initiating a backfill job for a specific stream object.

object_

Required. The name of the stream object resource to start a backfill job for.

Type

str

class google.cloud.datastream_v1.types.StartBackfillJobResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response for manually initiating a backfill job for a specific stream object.

object_

The stream object resource a backfill job was started for.

Type

google.cloud.datastream_v1.types.StreamObject

class google.cloud.datastream_v1.types.StaticServiceIpConnectivity(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Static IP address connectivity. Used when the source database is configured to allow incoming connections from the Datastream public IP addresses for the region specified in the connection profile.

class google.cloud.datastream_v1.types.StopBackfillJobRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request for manually stopping a running backfill job for a specific stream object.

object_

Required. The name of the stream object resource to stop the backfill job for.

Type

str

class google.cloud.datastream_v1.types.StopBackfillJobResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response for manually stop a backfill job for a specific stream object.

object_

The stream object resource the backfill job was stopped for.

Type

google.cloud.datastream_v1.types.StreamObject

class google.cloud.datastream_v1.types.Stream(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A resource representing streaming data from a source to a destination.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

name

Output only. The stream’s name.

Type

str

create_time

Output only. The creation time of the stream.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. The last update time of the stream.

Type

google.protobuf.timestamp_pb2.Timestamp

labels

Labels.

Type

MutableMapping[str, str]

display_name

Required. Display name.

Type

str

source_config

Required. Source connection profile configuration.

Type

google.cloud.datastream_v1.types.SourceConfig

destination_config

Required. Destination connection profile configuration.

Type

google.cloud.datastream_v1.types.DestinationConfig

state

The state of the stream.

Type

google.cloud.datastream_v1.types.Stream.State

backfill_all

Automatically backfill objects included in the stream source configuration. Specific objects can be excluded.

This field is a member of oneof backfill_strategy.

Type

google.cloud.datastream_v1.types.Stream.BackfillAllStrategy

backfill_none

Do not automatically backfill any objects.

This field is a member of oneof backfill_strategy.

Type

google.cloud.datastream_v1.types.Stream.BackfillNoneStrategy

errors

Output only. Errors on the Stream.

Type

MutableSequence[google.cloud.datastream_v1.types.Error]

customer_managed_encryption_key

Immutable. A reference to a KMS encryption key. If provided, it will be used to encrypt the data. If left blank, data will be encrypted using an internal Stream-specific encryption key provisioned through KMS.

This field is a member of oneof _customer_managed_encryption_key.

Type

str

class BackfillAllStrategy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Backfill strategy to automatically backfill the Stream’s objects. Specific objects can be excluded.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

oracle_excluded_objects

Oracle data source objects to avoid backfilling.

This field is a member of oneof excluded_objects.

Type

google.cloud.datastream_v1.types.OracleRdbms

mysql_excluded_objects

MySQL data source objects to avoid backfilling.

This field is a member of oneof excluded_objects.

Type

google.cloud.datastream_v1.types.MysqlRdbms

postgresql_excluded_objects

PostgreSQL data source objects to avoid backfilling.

This field is a member of oneof excluded_objects.

Type

google.cloud.datastream_v1.types.PostgresqlRdbms

class BackfillNoneStrategy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Backfill strategy to disable automatic backfill for the Stream’s objects.

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class State(value)[source]

Bases: proto.enums.Enum

Stream state.

Values:
STATE_UNSPECIFIED (0):

Unspecified stream state.

NOT_STARTED (1):

The stream has been created but has not yet started streaming data.

RUNNING (2):

The stream is running.

PAUSED (3):

The stream is paused.

MAINTENANCE (4):

The stream is in maintenance mode.

Updates are rejected on the resource in this state.

FAILED (5):

The stream is experiencing an error that is preventing data from being streamed.

FAILED_PERMANENTLY (6):

The stream has experienced a terminal failure.

STARTING (7):

The stream is starting, but not yet running.

DRAINING (8):

The Stream is no longer reading new events, but still writing events in the buffer.

class google.cloud.datastream_v1.types.StreamObject(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A specific stream object (e.g a specific DB table).

name

Output only. The object resource’s name.

Type

str

create_time

Output only. The creation time of the object.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. The last update time of the object.

Type

google.protobuf.timestamp_pb2.Timestamp

display_name

Required. Display name.

Type

str

errors

Output only. Active errors on the object.

Type

MutableSequence[google.cloud.datastream_v1.types.Error]

backfill_job

The latest backfill job that was initiated for the stream object.

Type

google.cloud.datastream_v1.types.BackfillJob

source_object

The object identifier in the data source.

Type

google.cloud.datastream_v1.types.SourceObjectIdentifier

class google.cloud.datastream_v1.types.UpdateConnectionProfileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Connection profile update message.

update_mask

Optional. Field mask is used to specify the fields to be overwritten in the ConnectionProfile resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Type

google.protobuf.field_mask_pb2.FieldMask

connection_profile

Required. The connection profile to update.

Type

google.cloud.datastream_v1.types.ConnectionProfile

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

validate_only

Optional. Only validate the connection profile, but don’t update any resources. The default is false.

Type

bool

force

Optional. Update the connection profile without validating it.

Type

bool

class google.cloud.datastream_v1.types.UpdateStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for updating a stream.

update_mask

Optional. Field mask is used to specify the fields to be overwritten in the stream resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Type

google.protobuf.field_mask_pb2.FieldMask

stream

Required. The stream resource to update.

Type

google.cloud.datastream_v1.types.Stream

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

validate_only

Optional. Only validate the stream with the changes, without actually updating it. The default is false.

Type

bool

force

Optional. Update the stream without validating it.

Type

bool

class google.cloud.datastream_v1.types.Validation(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A validation to perform on a stream.

description

A short description of the validation.

Type

str

state

Validation execution status.

Type

google.cloud.datastream_v1.types.Validation.State

message

Messages reflecting the validation results.

Type

MutableSequence[google.cloud.datastream_v1.types.ValidationMessage]

code

A custom code identifying this validation.

Type

str

class State(value)[source]

Bases: proto.enums.Enum

Validation execution state.

Values:
STATE_UNSPECIFIED (0):

Unspecified state.

NOT_EXECUTED (1):

Validation did not execute.

FAILED (2):

Validation failed.

PASSED (3):

Validation passed.

class google.cloud.datastream_v1.types.ValidationMessage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represent user-facing validation result message.

message

The result of the validation.

Type

str

level

Message severity level (warning or error).

Type

google.cloud.datastream_v1.types.ValidationMessage.Level

metadata

Additional metadata related to the result.

Type

MutableMapping[str, str]

code

A custom code identifying this specific message.

Type

str

class Level(value)[source]

Bases: proto.enums.Enum

Validation message level.

Values:
LEVEL_UNSPECIFIED (0):

Unspecified level.

WARNING (1):

Potentially cause issues with the Stream.

ERROR (2):

Definitely cause issues with the Stream.

class MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.datastream_v1.types.ValidationResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Contains the current validation results.

validations

A list of validations (includes both executed as well as not executed validations).

Type

MutableSequence[google.cloud.datastream_v1.types.Validation]

class google.cloud.datastream_v1.types.VpcPeeringConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The VPC Peering configuration is used to create VPC peering between Datastream and the consumer’s VPC.

vpc

Required. Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}

Type

str

subnet

Required. A free subnet for peering. (CIDR of /29)

Type

str