{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-datastream/json-schema/google-cloud-datastream-discover-connection-profile-request-schema.json",
  "title": "DiscoverConnectionProfileRequest",
  "description": "Request message for 'discover' ConnectionProfile request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-datastream-projects-api-openapi.yml#/components/schemas/DiscoverConnectionProfileRequest",
  "properties": {
    "postgresqlRdbms": {
      "$ref": "#/$defs/PostgresqlRdbms",
      "description": "Optional. PostgreSQL RDBMS to enrich with child data objects and metadata."
    },
    "hierarchyDepth": {
      "description": "Optional. The number of hierarchy levels below the current level to be retrieved.",
      "format": "int32",
      "type": "integer"
    },
    "sourceCatalog": {
      "$ref": "#/$defs/SourceCatalog",
      "description": "Optional. Source catalog to enrich with child data objects and metadata. This is mainly used to represent SaaS sources databases."
    },
    "sqlServerRdbms": {
      "$ref": "#/$defs/SqlServerRdbms",
      "description": "Optional. SQLServer RDBMS to enrich with child data objects and metadata."
    },
    "mongodbCluster": {
      "$ref": "#/$defs/MongodbCluster",
      "description": "Optional. MongoDB cluster to enrich with child data objects and metadata."
    },
    "oracleRdbms": {
      "$ref": "#/$defs/OracleRdbms",
      "description": "Optional. Oracle RDBMS to enrich with child data objects and metadata."
    },
    "mysqlRdbms": {
      "$ref": "#/$defs/MysqlRdbms",
      "description": "Optional. MySQL RDBMS to enrich with child data objects and metadata."
    },
    "salesforceOrg": {
      "$ref": "#/$defs/SalesforceOrg",
      "description": "Optional. Salesforce organization to enrich with child data objects and metadata."
    },
    "connectionProfile": {
      "$ref": "#/$defs/ConnectionProfile",
      "description": "Optional. An ad-hoc connection profile configuration."
    },
    "connectionProfileName": {
      "type": "string",
      "description": "Optional. A reference to an existing connection profile."
    },
    "fullHierarchy": {
      "type": "boolean",
      "description": "Optional. Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE)."
    },
    "spannerDatabase": {
      "$ref": "#/$defs/SpannerDatabase",
      "description": "Optional. Spanner database to enrich with child data objects and metadata."
    }
  },
  "type": "object",
  "$defs": {
    "BasicEncryption": {
      "type": "object",
      "properties": {},
      "description": "Message to represent the option where Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default."
    },
    "BigQueryProfile": {
      "description": "Profile for connecting to a BigQuery destination.",
      "type": "object",
      "properties": {}
    },
    "ConnectionProfile": {
      "description": "A set of reusable connection configurations to be used as a source or destination for a stream.",
      "properties": {
        "bigqueryProfile": {
          "$ref": "#/$defs/BigQueryProfile",
          "description": "Profile for connecting to a BigQuery destination."
        },
        "displayName": {
          "type": "string",
          "description": "Required. Display name."
        },
        "mysqlProfile": {
          "$ref": "#/$defs/MysqlProfile",
          "description": "Profile for connecting to a MySQL source."
        },
        "workdayProfile": {
          "$ref": "#/$defs/WorkdayProfile",
          "description": "Optional. Profile for connecting to a Workday source."
        },
        "gcsProfile": {
          "$ref": "#/$defs/GcsProfile",
          "description": "Profile for connecting to a Cloud Storage destination."
        },
        "spannerProfile": {
          "$ref": "#/$defs/SpannerProfile",
          "description": "Profile for connecting to a Spanner source."
        },
        "createTime": {
          "description": "Output only. The create time of the resource.",
          "readOnly": true,
          "type": "string",
          "format": "google-datetime"
        },
        "sqlServerProfile": {
          "$ref": "#/$defs/SqlServerProfile",
          "description": "Profile for connecting to a SQLServer source."
        },
        "labels": {
          "description": "Labels.",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "salesforceMarketingCloudProfile": {
          "$ref": "#/$defs/SalesforceMarketingCloudProfile",
          "description": "Profile for connecting to a Salesforce Marketing Cloud source."
        },
        "dataverseProfile": {
          "$ref": "#/$defs/DataverseProfile",
          "description": "Profile for connecting to a Dataverse source."
        },
        "salesforceProfile": {
          "$ref": "#/$defs/SalesforceProfile",
          "description": "Profile for connecting to a Salesforce source."
        },
        "mongodbProfile": {
          "$ref": "#/$defs/MongodbProfile",
          "description": "Profile for connecting to a MongoDB source."
        },
        "serviceNowProfile": {
          "$ref": "#/$defs/ServiceNowProfile",
          "description": "Profile for connecting to a ServiceNow source."
        },
        "privateConnectivity": {
          "$ref": "#/$defs/PrivateConnectivity",
          "description": "Private connectivity."
        },
        "satisfiesPzs": {
          "readOnly": true,
          "description": "Output only. Reserved for future use.",
          "type": "boolean"
        },
        "satisfiesPzi": {
          "description": "Output only. Reserved for future use.",
          "readOnly": true,
          "type": "boolean"
        },
        "name": {
          "description": "Output only. Identifier. The resource's name.",
          "readOnly": true,
          "type": "string"
        },
        "forwardSshConnectivity": {
          "$ref": "#/$defs/ForwardSshTunnelConnectivity",
          "description": "Forward SSH tunnel connectivity."
        },
        "oracleProfile": {
          "$ref": "#/$defs/OracleProfile",
          "description": "Profile for connecting to an Oracle source."
        },
        "updateTime": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The update time of the resource.",
          "format": "google-datetime"
        },
        "staticServiceIpConnectivity": {
          "$ref": "#/$defs/StaticServiceIpConnectivity",
          "description": "Static Service IP connectivity."
        },
        "postgresqlProfile": {
          "$ref": "#/$defs/PostgresqlProfile",
          "description": "Profile for connecting to a PostgreSQL source."
        }
      },
      "type": "object"
    },
    "DataverseProfile": {
      "type": "object",
      "description": "Profile for connecting to a Dataverse source.",
      "properties": {
        "environmentUrl": {
          "description": "Required. Environment URL of the Microsoft Dataverse instance. Example: `.crm.dynamics.com`",
          "type": "string"
        },
        "tenantId": {
          "description": "Required. Tenant id of the Microsoft Dataverse instance.",
          "type": "string"
        },
        "oauthClientCredentials": {
          "$ref": "#/$defs/OauthClientCredentials",
          "description": "Required. Credentials for authenticating with the Dataverse API."
        }
      }
    },
    "EncryptionAndServerValidation": {
      "description": "Message to represent the option where Datastream will enforce encryption and authenticate server identity. ca_certificate must be set if user selects this option.",
      "properties": {
        "caCertificate": {
          "description": "Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.",
          "type": "string"
        },
        "serverCertificateHostname": {
          "description": "Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EncryptionNotEnforced": {
      "properties": {},
      "type": "object",
      "description": "Message to represent the option where encryption is not enforced. An empty message right now to allow future extensibility."
    },
    "ForwardSshTunnelConnectivity": {
      "description": "Forward SSH Tunnel connectivity.",
      "properties": {
        "hostname": {
          "type": "string",
          "description": "Required. Hostname for the SSH tunnel."
        },
        "username": {
          "description": "Required. Username for the SSH tunnel.",
          "type": "string"
        },
        "password": {
          "description": "Input only. SSH password.",
          "type": "string"
        },
        "port": {
          "format": "int32",
          "type": "integer",
          "description": "Port for the SSH tunnel, default value is 22."
        },
        "privateKey": {
          "type": "string",
          "description": "Input only. SSH private key."
        }
      },
      "type": "object"
    },
    "GcsProfile": {
      "properties": {
        "bucket": {
          "description": "Required. The Cloud Storage bucket name.",
          "type": "string"
        },
        "rootPath": {
          "type": "string",
          "description": "Optional. The root path inside the Cloud Storage bucket."
        }
      },
      "type": "object",
      "description": "Profile for connecting to a Cloud Storage destination."
    },
    "HostAddress": {
      "description": "A HostAddress represents a transport end point, which is the combination of an IP address or hostname and a port number.",
      "type": "object",
      "properties": {
        "hostname": {
          "type": "string",
          "description": "Required. Hostname for the connection."
        },
        "port": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Port for the connection."
        }
      }
    },
    "MongodbCluster": {
      "properties": {
        "databases": {
          "description": "MongoDB databases in the cluster.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/MongodbDatabase"
          }
        }
      },
      "type": "object",
      "description": "MongoDB Cluster structure."
    },
    "MongodbCollection": {
      "type": "object",
      "description": "MongoDB Collection.",
      "properties": {
        "collection": {
          "description": "The collection name.",
          "type": "string"
        },
        "fields": {
          "description": "Fields in the collection.",
          "items": {
            "$ref": "#/$defs/MongodbField"
          },
          "type": "array"
        }
      }
    },
    "MongodbDatabase": {
      "type": "object",
      "properties": {
        "collections": {
          "items": {
            "$ref": "#/$defs/MongodbCollection"
          },
          "description": "Collections in the database.",
          "type": "array"
        },
        "database": {
          "type": "string",
          "description": "The database name."
        }
      },
      "description": "MongoDB Database."
    },
    "MongodbField": {
      "description": "MongoDB Field.",
      "type": "object",
      "properties": {
        "field": {
          "description": "The field name.",
          "type": "string"
        }
      }
    },
    "MongodbProfile": {
      "properties": {
        "secretManagerStoredPassword": {
          "description": "Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the `password` field.",
          "type": "string"
        },
        "additionalOptions": {
          "type": "object",
          "description": "Optional. Specifies additional options for the MongoDB connection. The options should be sent as key-value pairs, for example: `additional_options = {\"serverSelectionTimeoutMS\": \"10000\", \"directConnection\": \"true\"}`. Keys are case-sensitive and should match the official MongoDB connection string options: https://www.mongodb.com/docs/manual/reference/connection-string-options/ The server will not modify the values provided by the user.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "srvConnectionFormat": {
          "$ref": "#/$defs/SrvConnectionFormat",
          "description": "Srv connection format."
        },
        "hostAddresses": {
          "items": {
            "$ref": "#/$defs/HostAddress"
          },
          "type": "array",
          "description": "Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports."
        },
        "username": {
          "description": "Required. Username for the MongoDB connection.",
          "type": "string"
        },
        "password": {
          "type": "string",
          "description": "Optional. Password for the MongoDB connection. Mutually exclusive with the `secret_manager_stored_password` field."
        },
        "replicaSet": {
          "type": "string",
          "description": "Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified."
        },
        "standardConnectionFormat": {
          "$ref": "#/$defs/StandardConnectionFormat",
          "description": "Standard connection format."
        },
        "sslConfig": {
          "$ref": "#/$defs/MongodbSslConfig",
          "description": "Optional. SSL configuration for the MongoDB connection."
        }
      },
      "type": "object",
      "description": "Profile for connecting to a MongoDB source."
    },
    "MongodbSslConfig": {
      "type": "object",
      "properties": {
        "clientCertificate": {
          "description": "Optional. 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": "string"
        },
        "clientCertificateSet": {
          "type": "boolean",
          "description": "Output only. Indicates whether the client_certificate field is set.",
          "readOnly": true
        },
        "clientKeySet": {
          "description": "Output only. Indicates whether the client_key field is set.",
          "type": "boolean",
          "readOnly": true
        },
        "caCertificateSet": {
          "description": "Output only. Indicates whether the ca_certificate field is set.",
          "readOnly": true,
          "type": "boolean"
        },
        "caCertificate": {
          "description": "Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.",
          "type": "string"
        },
        "secretManagerStoredClientKey": {
          "type": "string",
          "description": "Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the `client_key` field."
        },
        "clientKey": {
          "type": "string",
          "description": "Optional. 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."
        }
      },
      "description": "MongoDB SSL configuration information."
    },
    "MysqlColumn": {
      "properties": {
        "dataType": {
          "type": "string",
          "description": "The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html"
        },
        "precision": {
          "format": "int32",
          "type": "integer",
          "description": "Column precision."
        },
        "primaryKey": {
          "description": "Whether or not the column represents a primary key.",
          "type": "boolean"
        },
        "ordinalPosition": {
          "format": "int32",
          "type": "integer",
          "description": "The ordinal position of the column in the table."
        },
        "column": {
          "description": "The column name.",
          "type": "string"
        },
        "collation": {
          "description": "Column collation.",
          "type": "string"
        },
        "scale": {
          "format": "int32",
          "description": "Column scale.",
          "type": "integer"
        },
        "length": {
          "format": "int32",
          "description": "Column length.",
          "type": "integer"
        },
        "nullable": {
          "type": "boolean",
          "description": "Whether or not the column can accept a null value."
        }
      },
      "description": "MySQL Column.",
      "type": "object"
    },
    "MysqlDatabase": {
      "description": "MySQL database.",
      "type": "object",
      "properties": {
        "database": {
          "description": "The database name.",
          "type": "string"
        },
        "mysqlTables": {
          "description": "Tables in the database.",
          "items": {
            "$ref": "#/$defs/MysqlTable"
          },
          "type": "array"
        }
      }
    },
    "MysqlProfile": {
      "description": "Profile for connecting to a MySQL source.",
      "properties": {
        "secretManagerStoredPassword": {
          "description": "Optional. A reference to a Secret Manager resource name storing the MySQL connection password. Mutually exclusive with the `password` field.",
          "type": "string"
        },
        "hostname": {
          "type": "string",
          "description": "Required. Hostname for the MySQL connection."
        },
        "sslConfig": {
          "$ref": "#/$defs/MysqlSslConfig",
          "description": "SSL configuration for the MySQL connection."
        },
        "username": {
          "type": "string",
          "description": "Required. Username for the MySQL connection."
        },
        "password": {
          "type": "string",
          "description": "Optional. Input only. Password for the MySQL connection. Mutually exclusive with the `secret_manager_stored_password` field."
        },
        "port": {
          "description": "Port for the MySQL connection, default value is 3306.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "MysqlRdbms": {
      "description": "MySQL database structure",
      "type": "object",
      "properties": {
        "mysqlDatabases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MysqlDatabase"
          },
          "description": "Mysql databases on the server"
        }
      }
    },
    "MysqlSslConfig": {
      "type": "object",
      "description": "MySQL SSL configuration information.",
      "properties": {
        "clientKey": {
          "description": "Optional. 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": "string"
        },
        "clientCertificate": {
          "type": "string",
          "description": "Optional. 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."
        },
        "clientCertificateSet": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Indicates whether the client_certificate field is set."
        },
        "caCertificateSet": {
          "description": "Output only. Indicates whether the ca_certificate field is set.",
          "readOnly": true,
          "type": "boolean"
        },
        "caCertificate": {
          "type": "string",
          "description": "Input only. PEM-encoded certificate of the CA that signed the source database server's certificate."
        },
        "clientKeySet": {
          "description": "Output only. Indicates whether the client_key field is set.",
          "readOnly": true,
          "type": "boolean"
        }
      }
    },
    "MysqlTable": {
      "properties": {
        "table": {
          "type": "string",
          "description": "The table name."
        },
        "mysqlColumns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MysqlColumn"
          },
          "description": "MySQL columns in the database. When unspecified as part of include/exclude objects, includes/excludes everything."
        }
      },
      "description": "MySQL table.",
      "type": "object"
    },
    "Oauth2ClientCredentials": {
      "type": "object",
      "description": "OAuth2 Client Credentials.",
      "properties": {
        "secretManagerStoredClientSecret": {
          "type": "string",
          "description": "Optional. A reference to a Secret Manager resource name storing the Salesforce OAuth2 client_secret. Mutually exclusive with the `client_secret` field."
        },
        "clientSecret": {
          "type": "string",
          "description": "Optional. Client secret for Salesforce OAuth2 Client Credentials. Mutually exclusive with the `secret_manager_stored_client_secret` field."
        },
        "clientId": {
          "description": "Required. Client ID for Salesforce OAuth2 Client Credentials.",
          "type": "string"
        }
      }
    },
    "OauthClientCredentials": {
      "type": "object",
      "properties": {
        "clientSecret": {
          "$ref": "#/$defs/Secret",
          "description": "Required. Client secret for OAuth Client Credentials."
        },
        "clientId": {
          "type": "string",
          "description": "Required. Client ID for OAuth Client Credentials."
        }
      },
      "description": "OAuth Client Credentials."
    },
    "OauthRefreshTokenCredentials": {
      "properties": {
        "oauthClientCredentials": {
          "$ref": "#/$defs/OauthClientCredentials",
          "description": "Required. Specifies the OAuth Client Credentials."
        },
        "refreshToken": {
          "$ref": "#/$defs/Secret",
          "description": "Required. Specifies the OAuth Refresh Token."
        }
      },
      "type": "object",
      "description": "OAuth Refresh Token Credentials."
    },
    "OracleAsmConfig": {
      "description": "Configuration for Oracle Automatic Storage Management (ASM) connection.",
      "properties": {
        "port": {
          "format": "int32",
          "description": "Required. Port for the Oracle ASM connection.",
          "type": "integer"
        },
        "secretManagerStoredPassword": {
          "description": "Optional. A reference to a Secret Manager resource name storing the Oracle ASM connection password. Mutually exclusive with the `password` field.",
          "type": "string"
        },
        "username": {
          "type": "string",
          "description": "Required. Username for the Oracle ASM connection."
        },
        "password": {
          "description": "Optional. Password for the Oracle ASM connection. Mutually exclusive with the `secret_manager_stored_password` field.",
          "type": "string"
        },
        "hostname": {
          "description": "Required. Hostname for the Oracle ASM connection.",
          "type": "string"
        },
        "oracleSslConfig": {
          "$ref": "#/$defs/OracleSslConfig",
          "description": "Optional. SSL configuration for the Oracle connection."
        },
        "asmService": {
          "type": "string",
          "description": "Required. ASM service name for the Oracle ASM connection."
        },
        "connectionAttributes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional. Connection string attributes",
          "type": "object"
        }
      },
      "type": "object"
    },
    "OracleColumn": {
      "type": "object",
      "properties": {
        "column": {
          "description": "The column name.",
          "type": "string"
        },
        "nullable": {
          "description": "Whether or not the column can accept a null value.",
          "type": "boolean"
        },
        "ordinalPosition": {
          "type": "integer",
          "format": "int32",
          "description": "The ordinal position of the column in the table."
        },
        "primaryKey": {
          "type": "boolean",
          "description": "Whether or not the column represents a primary key."
        },
        "length": {
          "format": "int32",
          "type": "integer",
          "description": "Column length."
        },
        "precision": {
          "format": "int32",
          "description": "Column precision.",
          "type": "integer"
        },
        "encoding": {
          "type": "string",
          "description": "Column encoding."
        },
        "scale": {
          "type": "integer",
          "format": "int32",
          "description": "Column scale."
        },
        "dataType": {
          "type": "string",
          "description": "The Oracle data type."
        }
      },
      "description": "Oracle Column."
    },
    "OracleProfile": {
      "type": "object",
      "properties": {
        "hostname": {
          "description": "Required. Hostname for the Oracle connection.",
          "type": "string"
        },
        "secretManagerStoredPassword": {
          "description": "Optional. A reference to a Secret Manager resource name storing the Oracle connection password. Mutually exclusive with the `password` field.",
          "type": "string"
        },
        "port": {
          "format": "int32",
          "description": "Port for the Oracle connection, default value is 1521.",
          "type": "integer"
        },
        "databaseService": {
          "description": "Required. Database for the Oracle connection.",
          "type": "string"
        },
        "oracleAsmConfig": {
          "$ref": "#/$defs/OracleAsmConfig",
          "description": "Optional. Configuration for Oracle ASM connection."
        },
        "connectionAttributes": {
          "description": "Connection string attributes",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "username": {
          "type": "string",
          "description": "Required. Username for the Oracle connection."
        },
        "password": {
          "description": "Optional. Password for the Oracle connection. Mutually exclusive with the `secret_manager_stored_password` field.",
          "type": "string"
        },
        "oracleSslConfig": {
          "$ref": "#/$defs/OracleSslConfig",
          "description": "Optional. SSL configuration for the Oracle connection."
        }
      },
      "description": "Profile for connecting to an Oracle source."
    },
    "OracleRdbms": {
      "properties": {
        "oracleSchemas": {
          "description": "Oracle schemas/databases in the database server.",
          "items": {
            "$ref": "#/$defs/OracleSchema"
          },
          "type": "array"
        }
      },
      "type": "object",
      "description": "Oracle database structure."
    },
    "OracleSchema": {
      "description": "Oracle schema.",
      "type": "object",
      "properties": {
        "oracleTables": {
          "type": "array",
          "description": "Tables in the schema.",
          "items": {
            "$ref": "#/$defs/OracleTable"
          }
        },
        "schema": {
          "description": "The schema name.",
          "type": "string"
        }
      }
    },
    "OracleSslConfig": {
      "properties": {
        "caCertificateSet": {
          "description": "Output only. Indicates whether the ca_certificate field has been set for this Connection-Profile.",
          "readOnly": true,
          "type": "boolean"
        },
        "serverCertificateDistinguishedName": {
          "description": "Optional. The distinguished name (DN) mentioned in the server certificate. This corresponds to SSL_SERVER_CERT_DN sqlnet parameter. Refer https://docs.oracle.com/en/database/oracle/oracle-database/19/netrf/local-naming-parameters-in-tns-ora-file.html#GUID-70AB0695-A9AA-4A94-B141-4C605236EEB7 If this field is not provided, the DN matching is not enforced.",
          "type": "string"
        },
        "caCertificate": {
          "type": "string",
          "description": "Input only. PEM-encoded certificate of the CA that signed the source database server's certificate."
        }
      },
      "description": "Oracle SSL configuration information.",
      "type": "object"
    },
    "OracleTable": {
      "properties": {
        "oracleColumns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OracleColumn"
          },
          "description": "Oracle columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything."
        },
        "table": {
          "description": "The table name.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Oracle table."
    },
    "PostgresqlColumn": {
      "type": "object",
      "properties": {
        "dataType": {
          "type": "string",
          "description": "The PostgreSQL data type."
        },
        "column": {
          "type": "string",
          "description": "The column name."
        },
        "scale": {
          "description": "Column scale.",
          "type": "integer",
          "format": "int32"
        },
        "ordinalPosition": {
          "description": "The ordinal position of the column in the table.",
          "type": "integer",
          "format": "int32"
        },
        "precision": {
          "type": "integer",
          "description": "Column precision.",
          "format": "int32"
        },
        "primaryKey": {
          "description": "Whether or not the column represents a primary key.",
          "type": "boolean"
        },
        "length": {
          "type": "integer",
          "format": "int32",
          "description": "Column length."
        },
        "nullable": {
          "description": "Whether or not the column can accept a null value.",
          "type": "boolean"
        }
      },
      "description": "PostgreSQL Column."
    },
    "PostgresqlProfile": {
      "description": "Profile for connecting to a PostgreSQL source.",
      "type": "object",
      "properties": {
        "sslConfig": {
          "$ref": "#/$defs/PostgresqlSslConfig",
          "description": "Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)"
        },
        "hostname": {
          "type": "string",
          "description": "Required. Hostname for the PostgreSQL connection."
        },
        "database": {
          "type": "string",
          "description": "Required. Database for the PostgreSQL connection."
        },
        "secretManagerStoredPassword": {
          "description": "Optional. A reference to a Secret Manager resource name storing the PostgreSQL connection password. Mutually exclusive with the `password` field.",
          "type": "string"
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "Port for the PostgreSQL connection, default value is 5432."
        },
        "username": {
          "description": "Required. Username for the PostgreSQL connection.",
          "type": "string"
        },
        "password": {
          "type": "string",
          "description": "Optional. Password for the PostgreSQL connection. Mutually exclusive with the `secret_manager_stored_password` field."
        }
      }
    },
    "PostgresqlRdbms": {
      "type": "object",
      "properties": {
        "postgresqlSchemas": {
          "items": {
            "$ref": "#/$defs/PostgresqlSchema"
          },
          "description": "PostgreSQL schemas in the database server.",
          "type": "array"
        }
      },
      "description": "PostgreSQL database structure."
    },
    "PostgresqlSchema": {
      "type": "object",
      "properties": {
        "schema": {
          "type": "string",
          "description": "The schema name."
        },
        "postgresqlTables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PostgresqlTable"
          },
          "description": "Tables in the schema."
        }
      },
      "description": "PostgreSQL schema."
    },
    "PostgresqlSslConfig": {
      "description": "PostgreSQL SSL configuration information.",
      "type": "object",
      "properties": {
        "serverAndClientVerification": {
          "$ref": "#/$defs/ServerAndClientVerification",
          "description": "If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated."
        },
        "serverVerification": {
          "$ref": "#/$defs/ServerVerification",
          "description": " If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated."
        }
      }
    },
    "PostgresqlTable": {
      "description": "PostgreSQL table.",
      "type": "object",
      "properties": {
        "table": {
          "description": "The table name.",
          "type": "string"
        },
        "postgresqlColumns": {
          "items": {
            "$ref": "#/$defs/PostgresqlColumn"
          },
          "description": "PostgreSQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.",
          "type": "array"
        }
      }
    },
    "PrivateConnectivity": {
      "properties": {
        "privateConnection": {
          "description": "Required. A reference to a private connection resource. Format: `projects/{project}/locations/{location}/privateConnections/{name}`",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Private Connectivity"
    },
    "SalesforceField": {
      "description": "Salesforce field.",
      "properties": {
        "dataType": {
          "type": "string",
          "description": "The data type."
        },
        "name": {
          "type": "string",
          "description": "The field name."
        },
        "nillable": {
          "type": "boolean",
          "description": "Indicates whether the field can accept nil values."
        }
      },
      "type": "object"
    },
    "SalesforceMarketingCloudProfile": {
      "description": "Profile for connecting to a Salesforce Marketing Cloud source.",
      "properties": {
        "oauthClientCredentials": {
          "$ref": "#/$defs/OauthClientCredentials",
          "description": "Required. Input only. Credentials for authenticating with the Salesforce Marketing Cloud API."
        },
        "subdomain": {
          "description": "Required. Subdomain for the Salesforce Marketing Cloud connection. Example: if your specific endpoint is `https://{your-specific-subdomain}.rest.marketingcloudapis.com/`, the subdomain is `{your-specific-subdomain}`. Must be 1-63 characters, start and end with an alphanumeric character, and contain only lowercase letters, numbers, and hyphens (-).",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SalesforceObject": {
      "description": "Salesforce object.",
      "type": "object",
      "properties": {
        "fields": {
          "type": "array",
          "description": "Salesforce fields. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.",
          "items": {
            "$ref": "#/$defs/SalesforceField"
          }
        },
        "objectName": {
          "description": "The object name.",
          "type": "string"
        }
      }
    },
    "SalesforceOrg": {
      "type": "object",
      "description": "Salesforce organization structure.",
      "properties": {
        "objects": {
          "description": "Salesforce objects in the database server.",
          "items": {
            "$ref": "#/$defs/SalesforceObject"
          },
          "type": "array"
        }
      }
    },
    "SalesforceProfile": {
      "description": "Profile for connecting to a Salesforce source.",
      "properties": {
        "oauth2ClientCredentials": {
          "$ref": "#/$defs/Oauth2ClientCredentials",
          "description": "Connected app authentication."
        },
        "userCredentials": {
          "$ref": "#/$defs/UserCredentials",
          "description": "Deprecated: Salesforce is retiring Username-Password authentication. Use `oauth2_client_credentials` instead."
        },
        "domain": {
          "description": "Required. Domain endpoint for the Salesforce connection.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Secret": {
      "properties": {
        "rawValue": {
          "description": "Optional. Input only. The actual raw value of the secret as plain text.",
          "type": "string"
        },
        "secretVersion": {
          "description": "Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats: * projects/{project}/locations/{location}/secrets/{secret}/versions/{version} * projects/{project}/secrets/{secret}/versions/{version}",
          "type": "string"
        }
      },
      "description": "A confidential piece of information where the actual value is either directly specified in the message as a raw string or stored in GCP secret manager.",
      "type": "object"
    },
    "ServerAndClientVerification": {
      "type": "object",
      "properties": {
        "clientCertificate": {
          "type": "string",
          "description": "Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate."
        },
        "serverCertificateHostname": {
          "type": "string",
          "description": "Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated."
        },
        "caCertificate": {
          "type": "string",
          "description": "Required. Input only. PEM-encoded server root CA certificate."
        },
        "clientKey": {
          "type": "string",
          "description": "Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream."
        }
      },
      "description": "Message represents the option where Datastream will enforce the encryption and authenticate the server identity as well as the client identity. ca_certificate, client_certificate and client_key must be set if user selects this option."
    },
    "ServerVerification": {
      "type": "object",
      "description": "Message represents the option where Datastream will enforce the encryption and authenticate the server identity. ca_certificate must be set if user selects this option.",
      "properties": {
        "caCertificate": {
          "type": "string",
          "description": "Required. Input only. PEM-encoded server root CA certificate."
        },
        "serverCertificateHostname": {
          "description": "Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.",
          "type": "string"
        }
      }
    },
    "ServiceNowProfile": {
      "type": "object",
      "description": "Profile for connecting to a ServiceNow source.",
      "properties": {
        "userPasswordCredentials": {
          "$ref": "#/$defs/UserPasswordCredentials",
          "description": "User-password authentication."
        },
        "instance": {
          "type": "string",
          "description": "Required. The instance of the ServiceNow account. This is the `` part of the URL `https://.service-now.com`."
        },
        "oauthClientCredentials": {
          "$ref": "#/$defs/OauthClientCredentials",
          "description": "Credentials for authenticating with the ServiceNow API."
        }
      }
    },
    "SourceCatalog": {
      "description": "Source catalog.",
      "type": "object",
      "properties": {
        "objects": {
          "description": "Optional. Source objects in the catalog.",
          "items": {
            "$ref": "#/$defs/SourceObject"
          },
          "type": "array"
        }
      }
    },
    "SourceObject": {
      "description": "Source object.",
      "properties": {
        "properties": {
          "type": "array",
          "description": "Optional. Source properties. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.",
          "items": {
            "$ref": "#/$defs/SourceProperty"
          }
        },
        "objectName": {
          "description": "Required. The object name.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SourceProperty": {
      "type": "object",
      "description": "Source property.",
      "properties": {
        "propertyName": {
          "description": "Required. The property name.",
          "type": "string"
        },
        "primaryKey": {
          "description": "Optional. Whether or not the property is a primary key.",
          "type": "boolean"
        },
        "properties": {
          "items": {
            "$ref": "#/$defs/SourceProperty"
          },
          "type": "array",
          "description": "Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing."
        }
      }
    },
    "SpannerColumn": {
      "description": "Spanner column.",
      "type": "object",
      "properties": {
        "column": {
          "description": "Required. The column name.",
          "type": "string"
        },
        "isPrimaryKey": {
          "type": "boolean",
          "description": "Optional. Whether or not the column is a primary key."
        },
        "ordinalPosition": {
          "format": "int64",
          "description": "Optional. The ordinal position of the column in the table.",
          "type": "string"
        },
        "dataType": {
          "description": "Optional. Spanner data type.",
          "type": "string"
        }
      }
    },
    "SpannerDatabase": {
      "description": "Spanner database structure.",
      "type": "object",
      "properties": {
        "schemas": {
          "items": {
            "$ref": "#/$defs/SpannerSchema"
          },
          "type": "array",
          "description": "Optional. Spanner schemas in the database."
        }
      }
    },
    "SpannerProfile": {
      "type": "object",
      "properties": {
        "host": {
          "description": "Optional. The Spanner endpoint to connect to. Defaults to the global endpoint (https://spanner.googleapis.com). Must be in the format: https://spanner.{region}.rep.googleapis.com.",
          "type": "string"
        },
        "database": {
          "description": "Required. Immutable. Cloud Spanner database resource. This field is immutable. Must be in the format: projects/{project}/instances/{instance}/databases/{database_id}.",
          "type": "string"
        }
      },
      "description": "Profile for connecting to a Spanner source."
    },
    "SpannerSchema": {
      "description": "Spanner schema.",
      "properties": {
        "tables": {
          "description": "Optional. Spanner tables in the schema.",
          "items": {
            "$ref": "#/$defs/SpannerTable"
          },
          "type": "array"
        },
        "schema": {
          "description": "Required. The schema name.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SpannerTable": {
      "properties": {
        "table": {
          "type": "string",
          "description": "Required. The table name."
        },
        "columns": {
          "items": {
            "$ref": "#/$defs/SpannerColumn"
          },
          "description": "Optional. Spanner columns in the table.",
          "type": "array"
        }
      },
      "description": "Spanner table.",
      "type": "object"
    },
    "SqlServerColumn": {
      "type": "object",
      "properties": {
        "column": {
          "type": "string",
          "description": "The column name."
        },
        "primaryKey": {
          "type": "boolean",
          "description": "Whether or not the column represents a primary key."
        },
        "nullable": {
          "type": "boolean",
          "description": "Whether or not the column can accept a null value."
        },
        "precision": {
          "description": "Column precision.",
          "type": "integer",
          "format": "int32"
        },
        "scale": {
          "format": "int32",
          "type": "integer",
          "description": "Column scale."
        },
        "dataType": {
          "description": "The SQLServer data type.",
          "type": "string"
        },
        "length": {
          "description": "Column length.",
          "format": "int32",
          "type": "integer"
        },
        "ordinalPosition": {
          "format": "int32",
          "type": "integer",
          "description": "The ordinal position of the column in the table."
        }
      },
      "description": "SQLServer Column."
    },
    "SqlServerProfile": {
      "description": "Profile for connecting to a SQLServer source.",
      "properties": {
        "secretManagerStoredPassword": {
          "type": "string",
          "description": "Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the `password` field."
        },
        "username": {
          "type": "string",
          "description": "Required. Username for the SQLServer connection."
        },
        "password": {
          "description": "Optional. Password for the SQLServer connection. Mutually exclusive with the `secret_manager_stored_password` field.",
          "type": "string"
        },
        "hostname": {
          "type": "string",
          "description": "Required. Hostname for the SQLServer connection."
        },
        "sslConfig": {
          "$ref": "#/$defs/SqlServerSslConfig",
          "description": "Optional. SSL configuration for the SQLServer connection."
        },
        "port": {
          "description": "Port for the SQLServer connection, default value is 1433.",
          "type": "integer",
          "format": "int32"
        },
        "database": {
          "type": "string",
          "description": "Required. Database for the SQLServer connection."
        }
      },
      "type": "object"
    },
    "SqlServerRdbms": {
      "description": "SQLServer database structure.",
      "properties": {
        "schemas": {
          "description": "SQLServer schemas in the database server.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SqlServerSchema"
          }
        }
      },
      "type": "object"
    },
    "SqlServerSchema": {
      "type": "object",
      "properties": {
        "schema": {
          "description": "The schema name.",
          "type": "string"
        },
        "tables": {
          "items": {
            "$ref": "#/$defs/SqlServerTable"
          },
          "description": "Tables in the schema.",
          "type": "array"
        }
      },
      "description": "SQLServer schema."
    },
    "SqlServerSslConfig": {
      "type": "object",
      "properties": {
        "encryptionAndServerValidation": {
          "$ref": "#/$defs/EncryptionAndServerValidation",
          "description": "If set, Datastream will enforce encryption and authenticate server identity."
        },
        "encryptionNotEnforced": {
          "$ref": "#/$defs/EncryptionNotEnforced",
          "description": "If set, Datastream will not enforce encryption. If the DB server mandates encryption, then connection will be encrypted but server identity will not be authenticated."
        },
        "basicEncryption": {
          "$ref": "#/$defs/BasicEncryption",
          "description": "If set, Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default."
        }
      },
      "description": "SQL Server SSL configuration information."
    },
    "SqlServerTable": {
      "type": "object",
      "properties": {
        "columns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SqlServerColumn"
          },
          "description": "SQLServer columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything."
        },
        "table": {
          "type": "string",
          "description": "The table name."
        }
      },
      "description": "SQLServer table."
    },
    "SrvConnectionFormat": {
      "type": "object",
      "properties": {},
      "description": "Srv connection format."
    },
    "StandardConnectionFormat": {
      "description": "Standard connection format.",
      "properties": {
        "directConnection": {
          "type": "boolean",
          "description": "Optional. Deprecated: Use the `additional_options` map to specify the `directConnection` parameter instead. For example: `additional_options = {\"directConnection\": \"true\"}`. Specifies whether the client connects directly to the host[:port] in the connection URI.",
          "deprecated": true
        }
      },
      "type": "object"
    },
    "StaticServiceIpConnectivity": {
      "description": "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.",
      "type": "object",
      "properties": {}
    },
    "UserCredentials": {
      "description": "Deprecated: Salesforce is retiring Username-Password authentication. Use `Oauth2ClientCredentials` instead.",
      "properties": {
        "username": {
          "type": "string",
          "description": "Required. Username for the Salesforce connection."
        },
        "password": {
          "description": "Optional. Password for the Salesforce connection. Mutually exclusive with the `secret_manager_stored_password` field.",
          "type": "string"
        },
        "secretManagerStoredPassword": {
          "type": "string",
          "description": "Optional. A reference to a Secret Manager resource name storing the Salesforce connection's password. Mutually exclusive with the `password` field."
        },
        "secretManagerStoredSecurityToken": {
          "type": "string",
          "description": "Optional. A reference to a Secret Manager resource name storing the Salesforce connection's security token. Mutually exclusive with the `security_token` field."
        },
        "securityToken": {
          "description": "Optional. Security token for the Salesforce connection. Mutually exclusive with the `secret_manager_stored_security_token` field.",
          "type": "string"
        }
      },
      "type": "object",
      "deprecated": true
    },
    "UserPasswordCredentials": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "Required. Username for the connection."
        },
        "password": {
          "$ref": "#/$defs/Secret",
          "description": "Required. Password for the connection."
        }
      },
      "description": "User-password credentials."
    },
    "WorkdayProfile": {
      "description": "Profile for connecting to a Workday source.",
      "properties": {
        "tenant": {
          "description": "Required. Tenant for the Workday connection (e.g., `google12`).",
          "type": "string"
        },
        "oauthRefreshTokenCredentials": {
          "$ref": "#/$defs/OauthRefreshTokenCredentials",
          "description": "Required. Credentials for authenticating with the Workday API. OAuth Refresh Token credentials for authenticating with the Workday API."
        },
        "host": {
          "type": "string",
          "description": "Required. Host for the Workday connection. Must be a valid hostname (e.g., `wd3-impl-services1.workday.com`)."
        }
      },
      "type": "object"
    }
  }
}