{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-datastream/json-schema/google-cloud-datastream-connection-profile-schema.json",
  "title": "ConnectionProfile",
  "description": "A set of reusable connection configurations to be used as a source or destination for a stream.",
  "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/ConnectionProfile",
  "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",
  "$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": {}
    },
    "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."
        }
      }
    },
    "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."
    },
    "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"
    },
    "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"
        }
      }
    },
    "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"
    },
    "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."
    },
    "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"
    },
    "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."
        }
      }
    },
    "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."
        }
      }
    },
    "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"
    },
    "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"
    },
    "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."
        }
      }
    },
    "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."
    },
    "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"
    },
    "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."
    },
    "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"
    }
  }
}