mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Wed Jul 13 09:59:37 UTC 2022
This commit is contained in:
parent
cf5ab60e4a
commit
879929cbc6
323 changed files with 7203 additions and 4178 deletions
|
|
@ -5,8 +5,8 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud datastream connection-profiles create
|
||||
(CONNECTION_PROFILE : --location=LOCATION) --display-name=DISPLAY_NAME
|
||||
--type=TYPE
|
||||
([--bucket=BUCKET : --root-path=ROOT_PATH]
|
||||
--type=TYPE [--force] [--labels=[KEY=VALUE,...]]
|
||||
[[--bucket=BUCKET : --root-path=ROOT_PATH]
|
||||
| --database-service=DATABASE_SERVICE
|
||||
--oracle-hostname=ORACLE_HOSTNAME --oracle-port=ORACLE_PORT
|
||||
--oracle-username=ORACLE_USERNAME (--oracle-password=ORACLE_PASSWORD
|
||||
|
|
@ -14,8 +14,7 @@ SYNOPSIS
|
|||
--mysql-port=MYSQL_PORT
|
||||
--mysql-username=MYSQL_USERNAME (--mysql-password=MYSQL_PASSWORD
|
||||
| --mysql-prompt-for-password) : --ca-certificate=CA_CERTIFICATE
|
||||
--client-certificate=CLIENT_CERTIFICATE --client-key=CLIENT_KEY])
|
||||
[--force] [--labels=[KEY=VALUE,...]]
|
||||
--client-certificate=CLIENT_CERTIFICATE --client-key=CLIENT_KEY]]
|
||||
[--private-connection=PRIVATE_CONNECTION : --static-ip-connectivity
|
||||
| [--forward-ssh-hostname=FORWARD_SSH_HOSTNAME
|
||||
--forward-ssh-username=FORWARD_SSH_USERNAME
|
||||
|
|
@ -52,6 +51,11 @@ EXAMPLES
|
|||
--bucket=fake-bucket --root-path=/root/path \
|
||||
--display-name=my-profile
|
||||
|
||||
To create a connection profile for BigQuery:
|
||||
|
||||
$ gcloud datastream connection-profiles create CONNECTION_PROFILE \
|
||||
--location=us-central1 --type=bigquery --display-name=my-profile
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Connection profile resource - The connection profile to create. The
|
||||
arguments in this group can be used to specify the attributes of this
|
||||
|
|
@ -84,9 +88,21 @@ REQUIRED FLAGS
|
|||
Friendly name for the connection profile.
|
||||
|
||||
--type=TYPE
|
||||
Type can be MYSQL, ORACLE or GOOGLE-CLOUD-STORAGE
|
||||
Type can be MYSQL, ORACLE, GOOGLE-CLOUD-STORAGE or BIGQUERY
|
||||
|
||||
Exactly one of these must be specified:
|
||||
OPTIONAL FLAGS
|
||||
--force
|
||||
Create the connection profile without validating it.
|
||||
|
||||
--labels=[KEY=VALUE,...]
|
||||
List of label KEY=VALUE pairs to add.
|
||||
|
||||
Keys must start with a lowercase character and contain only hyphens
|
||||
(-), underscores (_), lowercase characters, and numbers. Values must
|
||||
contain only hyphens (-), underscores (_), lowercase characters, and
|
||||
numbers.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--bucket=BUCKET
|
||||
The full project and resource path for Cloud Storage bucket including
|
||||
|
|
@ -182,18 +198,6 @@ REQUIRED FLAGS
|
|||
This flag must be specified if any of the other arguments in this
|
||||
group are specified.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--force
|
||||
Create the connection profile without validating it.
|
||||
|
||||
--labels=[KEY=VALUE,...]
|
||||
List of label KEY=VALUE pairs to add.
|
||||
|
||||
Keys must start with a lowercase character and contain only hyphens
|
||||
(-), underscores (_), lowercase characters, and numbers. Values must
|
||||
contain only hyphens (-), underscores (_), lowercase characters, and
|
||||
numbers.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
Private connection resource - Resource ID of the private connection.
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ EXAMPLES
|
|||
--bucket=fake-bucket --root-path=/root/path \
|
||||
--display-name=my-profile
|
||||
|
||||
To update a connection profile for Google Cloud Storage:
|
||||
|
||||
$ gcloud datastream connection-profiles update CONNECTION_PROFILE \
|
||||
--location=us-central1 --type=bigquery --display-name=my-profile
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Connection profile resource - The connection profile to update. The
|
||||
arguments in this group can be used to specify the attributes of this
|
||||
|
|
@ -83,7 +88,7 @@ POSITIONAL ARGUMENTS
|
|||
|
||||
REQUIRED FLAGS
|
||||
--type=TYPE
|
||||
Type can be MYSQL, ORACLE or GOOGLE-CLOUD-STORAGE
|
||||
Type can be MYSQL, ORACLE, GOOGLE-CLOUD-STORAGE or BIGQUERY
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--display-name=DISPLAY_NAME
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ SYNOPSIS
|
|||
| --backfill-all --mysql-excluded-objects=MYSQL_EXCLUDED_OBJECTS
|
||||
| --oracle-excluded-objects=ORACLE_EXCLUDED_OBJECTS)
|
||||
(--destination=DESTINATION
|
||||
--gcs-destination-config=GCS_DESTINATION_CONFIG)
|
||||
(--bigquery-destination-config=BIGQUERY_DESTINATION_CONFIG
|
||||
| --gcs-destination-config=GCS_DESTINATION_CONFIG))
|
||||
(--source=SOURCE (--mysql-source-config=MYSQL_SOURCE_CONFIG
|
||||
| --oracle-source-config=ORACLE_SOURCE_CONFIG))
|
||||
[--labels=[KEY=VALUE,...]] [--force | --validate-only]
|
||||
|
|
@ -37,6 +38,15 @@ EXAMPLES
|
|||
--gcs-destination-config=destination_config.json \
|
||||
--backfill-all --mysql-excluded-objects=excluded_objects.json
|
||||
|
||||
To create a stream with an Oracle source and a BigQuery destination:
|
||||
|
||||
$ gcloud datastream streams create STREAM --location=us-central1 \
|
||||
--display-name=my-stream --source=source \
|
||||
--oracle-source-config=source_config.json \
|
||||
--destination=destination \
|
||||
--bigquery-destination-config=destination_config.json \
|
||||
--backfill-none
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Stream resource - The stream to create. The arguments in this group can be
|
||||
used to specify the attributes of this resource. (NOTE) Some attributes
|
||||
|
|
@ -105,21 +115,37 @@ REQUIRED FLAGS
|
|||
connection_profile. To set the connection_profile attribute:
|
||||
▫ provide the argument --destination on the command line.
|
||||
|
||||
--gcs-destination-config=GCS_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for Google
|
||||
Cloud Storage Destination Config.
|
||||
Exactly one of these must be specified:
|
||||
|
||||
The JSON file is formatted as follows:
|
||||
--bigquery-destination-config=BIGQUERY_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for
|
||||
Google BigQuery Destination Config.
|
||||
|
||||
{
|
||||
"path": "some/path",
|
||||
"file_rotation_mb":5,
|
||||
"file_rotation_interval":"15s",
|
||||
"avro_file_format": {}
|
||||
}
|
||||
The JSON file is formatted as follows:
|
||||
|
||||
This flag must be specified if any of the other arguments in this
|
||||
group are specified.
|
||||
{
|
||||
"source_hierarchy_datasets": {
|
||||
"dataset_template": {
|
||||
"location": "us-central1",
|
||||
"dataset_id_prefix": "my_prefix",
|
||||
"kms_key_name": "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}"
|
||||
}
|
||||
},
|
||||
"data_freshness": 3600
|
||||
}
|
||||
|
||||
--gcs-destination-config=GCS_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for
|
||||
Google Cloud Storage Destination Config.
|
||||
|
||||
The JSON file is formatted as follows:
|
||||
|
||||
{
|
||||
"path": "some/path",
|
||||
"file_rotation_mb":5,
|
||||
"file_rotation_interval":"15s",
|
||||
"avro_file_format": {}
|
||||
}
|
||||
|
||||
This must be specified.
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ SYNOPSIS
|
|||
| --oracle-excluded-objects=ORACLE_EXCLUDED_OBJECTS]
|
||||
[--clear-labels | --remove-labels=[KEY,...]]
|
||||
[--destination=DESTINATION
|
||||
: --gcs-destination-config=GCS_DESTINATION_CONFIG]
|
||||
: --bigquery-destination-config=BIGQUERY_DESTINATION_CONFIG
|
||||
| --gcs-destination-config=GCS_DESTINATION_CONFIG]
|
||||
[--force | --validate-only]
|
||||
[--source=SOURCE : --mysql-source-config=MYSQL_SOURCE_CONFIG
|
||||
| --oracle-source-config=ORACLE_SOURCE_CONFIG] [GCLOUD_WIDE_FLAG ...]
|
||||
|
|
@ -140,18 +141,37 @@ FLAGS
|
|||
connection_profile. To set the connection_profile attribute:
|
||||
▸ provide the argument --destination on the command line.
|
||||
|
||||
--gcs-destination-config=GCS_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for Google
|
||||
Cloud Storage Destination Config.
|
||||
At most one of these can be specified:
|
||||
|
||||
The JSON file is formatted as follows:
|
||||
--bigquery-destination-config=BIGQUERY_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for Google
|
||||
BigQuery Destination Config.
|
||||
|
||||
{
|
||||
"path": "some/path",
|
||||
"file_rotation_mb":5,
|
||||
"file_rotation_interval":"15s",
|
||||
"avro_file_format": {}
|
||||
}
|
||||
The JSON file is formatted as follows:
|
||||
|
||||
{
|
||||
"source_hierarchy_datasets": {
|
||||
"dataset_template": {
|
||||
"location": "us-central1",
|
||||
"dataset_id_prefix": "my_prefix",
|
||||
"kms_key_name": "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}"
|
||||
}
|
||||
},
|
||||
"data_freshness": 3600
|
||||
}
|
||||
|
||||
--gcs-destination-config=GCS_DESTINATION_CONFIG
|
||||
Path to a YAML (or JSON) file containing the configuration for Google
|
||||
Cloud Storage Destination Config.
|
||||
|
||||
The JSON file is formatted as follows:
|
||||
|
||||
{
|
||||
"path": "some/path",
|
||||
"file_rotation_mb":5,
|
||||
"file_rotation_interval":"15s",
|
||||
"avro_file_format": {}
|
||||
}
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue