diff --git a/Dataform/metadata/V1Beta1/Dataform.php b/Dataform/metadata/V1Beta1/Dataform.php
index 98e8698551ac..2aa6182bd3c7 100644
Binary files a/Dataform/metadata/V1Beta1/Dataform.php and b/Dataform/metadata/V1Beta1/Dataform.php differ
diff --git a/Dataform/samples/V1beta1/DataformClient/list_repositories.php b/Dataform/samples/V1beta1/DataformClient/list_repositories.php
index 0ef168a50d6e..70c08437248b 100644
--- a/Dataform/samples/V1beta1/DataformClient/list_repositories.php
+++ b/Dataform/samples/V1beta1/DataformClient/list_repositories.php
@@ -32,6 +32,9 @@
/**
* Lists Repositories in a given project and location.
*
+ * **Note:** *This method can return repositories not shown in the [Dataform
+ * UI](https://console.cloud.google.com/bigquery/dataform)*.
+ *
* @param string $formattedParent The location in which to list repositories. Must be in the format
* `projects/*/locations/*`. Please see
* {@see DataformClient::locationName()} for help formatting this field.
diff --git a/Dataform/samples/V1beta1/DataformClient/update_config.php b/Dataform/samples/V1beta1/DataformClient/update_config.php
index dc341aca076a..2873ca1c9366 100644
--- a/Dataform/samples/V1beta1/DataformClient/update_config.php
+++ b/Dataform/samples/V1beta1/DataformClient/update_config.php
@@ -31,11 +31,10 @@
/**
* Update default config for a given project and location.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
diff --git a/Dataform/samples/V1beta1/DataformClient/update_release_config.php b/Dataform/samples/V1beta1/DataformClient/update_release_config.php
index 7aeebab82996..cadf062df2e1 100644
--- a/Dataform/samples/V1beta1/DataformClient/update_release_config.php
+++ b/Dataform/samples/V1beta1/DataformClient/update_release_config.php
@@ -31,11 +31,10 @@
/**
* Updates a single ReleaseConfig.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* @param string $releaseConfigGitCommitish Git commit/tag/branch name at which the repository should be
* compiled. Must exist in the remote repository. Examples:
diff --git a/Dataform/samples/V1beta1/DataformClient/update_repository.php b/Dataform/samples/V1beta1/DataformClient/update_repository.php
index 1e5a6c20585e..4a6461b83abb 100644
--- a/Dataform/samples/V1beta1/DataformClient/update_repository.php
+++ b/Dataform/samples/V1beta1/DataformClient/update_repository.php
@@ -31,11 +31,10 @@
/**
* Updates a single Repository.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
diff --git a/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php b/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php
index f767546e0491..9ec882ab1848 100644
--- a/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php
+++ b/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php
@@ -31,11 +31,10 @@
/**
* Updates a single WorkflowConfig.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* @param string $formattedWorkflowConfigReleaseConfig The name of the release config whose release_compilation_result
* should be executed. Must be in the format
diff --git a/Dataform/src/V1beta1/Client/DataformClient.php b/Dataform/src/V1beta1/Client/DataformClient.php
index e12344fedd18..76a7938bd600 100644
--- a/Dataform/src/V1beta1/Client/DataformClient.php
+++ b/Dataform/src/V1beta1/Client/DataformClient.php
@@ -368,6 +368,30 @@ public static function locationName(string $project, string $location): string
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * notebook_runtime_template resource.
+ *
+ * @param string $project
+ * @param string $location
+ * @param string $notebookRuntimeTemplate
+ *
+ * @return string The formatted notebook_runtime_template resource.
+ *
+ * @experimental
+ */
+ public static function notebookRuntimeTemplateName(
+ string $project,
+ string $location,
+ string $notebookRuntimeTemplate
+ ): string {
+ return self::getPathTemplate('notebookRuntimeTemplate')->render([
+ 'project' => $project,
+ 'location' => $location,
+ 'notebook_runtime_template' => $notebookRuntimeTemplate,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* release_config resource.
@@ -527,6 +551,7 @@ public static function workspaceName(
* - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
* - location: projects/{project}/locations/{location}
+ * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}
* - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}
* - repository: projects/{project}/locations/{location}/repositories/{repository}
* - secretVersion: projects/{project}/secrets/{secret}/versions/{version}
@@ -1500,6 +1525,9 @@ public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $ca
/**
* Lists Repositories in a given project and location.
*
+ * **Note:** *This method can return repositories not shown in the [Dataform
+ * UI](https://console.cloud.google.com/bigquery/dataform)*.
+ *
* The async variant is {@see DataformClient::listRepositoriesAsync()} .
*
* @example samples/V1beta1/DataformClient/list_repositories.php
@@ -2052,11 +2080,10 @@ public function searchFiles(SearchFilesRequest $request, array $callOptions = []
/**
* Update default config for a given project and location.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* The async variant is {@see DataformClient::updateConfigAsync()} .
*
@@ -2086,11 +2113,10 @@ public function updateConfig(UpdateConfigRequest $request, array $callOptions =
/**
* Updates a single ReleaseConfig.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* The async variant is {@see DataformClient::updateReleaseConfigAsync()} .
*
@@ -2120,11 +2146,10 @@ public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $
/**
* Updates a single Repository.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* The async variant is {@see DataformClient::updateRepositoryAsync()} .
*
@@ -2154,11 +2179,10 @@ public function updateRepository(UpdateRepositoryRequest $request, array $callOp
/**
* Updates a single WorkflowConfig.
*
- * **Note:** This method does not fully implement
- * [AIP-134](https://google.aip.dev/134); in particular:
- * - The wildcard entry (**\***) is treated as a bad request
- * - When the **field_mask** is omitted, instead of only updating the set
- * fields, the request is treated as a full update on all modifiable fields
+ * **Note:** *This method does not fully implement
+ * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
+ * as a bad request, and when the `field_mask` is omitted, the request is
+ * treated as a full update on all modifiable fields.*
*
* The async variant is {@see DataformClient::updateWorkflowConfigAsync()} .
*
diff --git a/Dataform/src/V1beta1/CodeCompilationConfig.php b/Dataform/src/V1beta1/CodeCompilationConfig.php
index 92256536ef47..4383b717be5e 100644
--- a/Dataform/src/V1beta1/CodeCompilationConfig.php
+++ b/Dataform/src/V1beta1/CodeCompilationConfig.php
@@ -68,6 +68,12 @@ class CodeCompilationConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
protected $table_prefix = '';
+ /**
+ * Optional. The prefix to prepend to built-in assertion names.
+ *
+ * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $builtin_assertion_name_prefix = '';
/**
* Optional. The default notebook runtime options.
*
@@ -102,6 +108,8 @@ class CodeCompilationConfig extends \Google\Protobuf\Internal\Message
* dataset ID) names.
* @type string $table_prefix
* Optional. The prefix that should be prepended to all table names.
+ * @type string $builtin_assertion_name_prefix
+ * Optional. The prefix to prepend to built-in assertion names.
* @type \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions $default_notebook_runtime_options
* Optional. The default notebook runtime options.
* }
@@ -329,6 +337,32 @@ public function setTablePrefix($var)
return $this;
}
+ /**
+ * Optional. The prefix to prepend to built-in assertion names.
+ *
+ * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getBuiltinAssertionNamePrefix()
+ {
+ return $this->builtin_assertion_name_prefix;
+ }
+
+ /**
+ * Optional. The prefix to prepend to built-in assertion names.
+ *
+ * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setBuiltinAssertionNamePrefix($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->builtin_assertion_name_prefix = $var;
+
+ return $this;
+ }
+
/**
* Optional. The default notebook runtime options.
*
diff --git a/Dataform/src/V1beta1/CompilationResultAction.php b/Dataform/src/V1beta1/CompilationResultAction.php
index 67b08c662d5d..8a5a3cc59014 100644
--- a/Dataform/src/V1beta1/CompilationResultAction.php
+++ b/Dataform/src/V1beta1/CompilationResultAction.php
@@ -61,6 +61,8 @@ class CompilationResultAction extends \Google\Protobuf\Internal\Message
* The declaration declared by this action.
* @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook $notebook
* The notebook executed by this action.
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $data_preparation
+ * The data preparation executed by this action.
* @type \Google\Cloud\Dataform\V1beta1\Target $target
* This action's identifier. Unique within the compilation result.
* @type \Google\Cloud\Dataform\V1beta1\Target $canonical_target
@@ -235,6 +237,37 @@ public function setNotebook($var)
return $this;
}
+ /**
+ * The data preparation executed by this action.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation|null
+ */
+ public function getDataPreparation()
+ {
+ return $this->readOneof(9);
+ }
+
+ public function hasDataPreparation()
+ {
+ return $this->hasOneof(9);
+ }
+
+ /**
+ * The data preparation executed by this action.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $var
+ * @return $this
+ */
+ public function setDataPreparation($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation::class);
+ $this->writeOneof(9, $var);
+
+ return $this;
+ }
+
/**
* This action's identifier. Unique within the compilation result.
*
diff --git a/Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php
new file mode 100644
index 000000000000..71691c4e565d
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php
@@ -0,0 +1,214 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation
+ */
+class DataPreparation extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * A list of actions that this action depends on.
+ *
+ * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
+ */
+ private $dependency_targets;
+ /**
+ * Whether this action is disabled (i.e. should not be run).
+ *
+ * Generated from protobuf field bool disabled = 2;
+ */
+ protected $disabled = false;
+ /**
+ * Arbitrary, user-defined tags on this action.
+ *
+ * Generated from protobuf field repeated string tags = 4;
+ */
+ private $tags;
+ protected $definition;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $contents_yaml
+ * The data preparation definition, stored as a YAML string.
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $contents_sql
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ * @type array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $dependency_targets
+ * A list of actions that this action depends on.
+ * @type bool $disabled
+ * Whether this action is disabled (i.e. should not be run).
+ * @type array|\Google\Protobuf\Internal\RepeatedField $tags
+ * Arbitrary, user-defined tags on this action.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The data preparation definition, stored as a YAML string.
+ *
+ * Generated from protobuf field string contents_yaml = 5;
+ * @return string
+ */
+ public function getContentsYaml()
+ {
+ return $this->readOneof(5);
+ }
+
+ public function hasContentsYaml()
+ {
+ return $this->hasOneof(5);
+ }
+
+ /**
+ * The data preparation definition, stored as a YAML string.
+ *
+ * Generated from protobuf field string contents_yaml = 5;
+ * @param string $var
+ * @return $this
+ */
+ public function setContentsYaml($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->writeOneof(5, $var);
+
+ return $this;
+ }
+
+ /**
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition|null
+ */
+ public function getContentsSql()
+ {
+ return $this->readOneof(6);
+ }
+
+ public function hasContentsSql()
+ {
+ return $this->hasOneof(6);
+ }
+
+ /**
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $var
+ * @return $this
+ */
+ public function setContentsSql($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition::class);
+ $this->writeOneof(6, $var);
+
+ return $this;
+ }
+
+ /**
+ * A list of actions that this action depends on.
+ *
+ * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getDependencyTargets()
+ {
+ return $this->dependency_targets;
+ }
+
+ /**
+ * A list of actions that this action depends on.
+ *
+ * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
+ * @param array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setDependencyTargets($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class);
+ $this->dependency_targets = $arr;
+
+ return $this;
+ }
+
+ /**
+ * Whether this action is disabled (i.e. should not be run).
+ *
+ * Generated from protobuf field bool disabled = 2;
+ * @return bool
+ */
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+
+ /**
+ * Whether this action is disabled (i.e. should not be run).
+ *
+ * Generated from protobuf field bool disabled = 2;
+ * @param bool $var
+ * @return $this
+ */
+ public function setDisabled($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->disabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Arbitrary, user-defined tags on this action.
+ *
+ * Generated from protobuf field repeated string tags = 4;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getTags()
+ {
+ return $this->tags;
+ }
+
+ /**
+ * Arbitrary, user-defined tags on this action.
+ *
+ * Generated from protobuf field repeated string tags = 4;
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setTags($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->tags = $arr;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getDefinition()
+ {
+ return $this->whichOneof("definition");
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php
new file mode 100644
index 000000000000..8a47bc680b82
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php
@@ -0,0 +1,117 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable
+ */
+class ErrorTable extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ */
+ protected $target = null;
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ */
+ protected $retention_days = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\Dataform\V1beta1\Target $target
+ * Error Table target.
+ * @type int $retention_days
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ * @return \Google\Cloud\Dataform\V1beta1\Target|null
+ */
+ public function getTarget()
+ {
+ return $this->target;
+ }
+
+ public function hasTarget()
+ {
+ return isset($this->target);
+ }
+
+ public function clearTarget()
+ {
+ unset($this->target);
+ }
+
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ * @param \Google\Cloud\Dataform\V1beta1\Target $var
+ * @return $this
+ */
+ public function setTarget($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class);
+ $this->target = $var;
+
+ return $this;
+ }
+
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ * @return int
+ */
+ public function getRetentionDays()
+ {
+ return $this->retention_days;
+ }
+
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setRetentionDays($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->retention_days = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php
new file mode 100644
index 000000000000..d6ac6ea315bb
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php
@@ -0,0 +1,160 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition
+ */
+class SqlDefinition extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ */
+ protected $query = '';
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2;
+ */
+ protected $error_table = null;
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3;
+ */
+ protected $load = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $query
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $error_table
+ * Error table configuration,
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $load
+ * Load configuration.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ * @return string
+ */
+ public function getQuery()
+ {
+ return $this->query;
+ }
+
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setQuery($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->query = $var;
+
+ return $this;
+ }
+
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable|null
+ */
+ public function getErrorTable()
+ {
+ return $this->error_table;
+ }
+
+ public function hasErrorTable()
+ {
+ return isset($this->error_table);
+ }
+
+ public function clearErrorTable()
+ {
+ unset($this->error_table);
+ }
+
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $var
+ * @return $this
+ */
+ public function setErrorTable($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable::class);
+ $this->error_table = $var;
+
+ return $this;
+ }
+
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig|null
+ */
+ public function getLoad()
+ {
+ return $this->load;
+ }
+
+ public function hasLoad()
+ {
+ return isset($this->load);
+ }
+
+ public function clearLoad()
+ {
+ unset($this->load);
+ }
+
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $var
+ * @return $this
+ */
+ public function setLoad($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig::class);
+ $this->load = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php b/Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php
new file mode 100644
index 000000000000..7273a9f3f7ba
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php
@@ -0,0 +1,68 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode
+ */
+class IncrementalLoadMode extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ */
+ protected $column = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $column
+ * Column name for incremental load modes
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ * @return string
+ */
+ public function getColumn()
+ {
+ return $this->column;
+ }
+
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setColumn($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->column = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php b/Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php
new file mode 100644
index 000000000000..74361347b289
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php
@@ -0,0 +1,181 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig
+ */
+class LoadConfig extends \Google\Protobuf\Internal\Message
+{
+ protected $mode;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $replace
+ * Replace destination table
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $append
+ * Append into destination table
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $maximum
+ * Insert records where the value exceeds the previous maximum value for a
+ * column in the destination table
+ * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $unique
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Replace destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null
+ */
+ public function getReplace()
+ {
+ return $this->readOneof(1);
+ }
+
+ public function hasReplace()
+ {
+ return $this->hasOneof(1);
+ }
+
+ /**
+ * Replace destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var
+ * @return $this
+ */
+ public function setReplace($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class);
+ $this->writeOneof(1, $var);
+
+ return $this;
+ }
+
+ /**
+ * Append into destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null
+ */
+ public function getAppend()
+ {
+ return $this->readOneof(2);
+ }
+
+ public function hasAppend()
+ {
+ return $this->hasOneof(2);
+ }
+
+ /**
+ * Append into destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var
+ * @return $this
+ */
+ public function setAppend($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class);
+ $this->writeOneof(2, $var);
+
+ return $this;
+ }
+
+ /**
+ * Insert records where the value exceeds the previous maximum value for a
+ * column in the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null
+ */
+ public function getMaximum()
+ {
+ return $this->readOneof(3);
+ }
+
+ public function hasMaximum()
+ {
+ return $this->hasOneof(3);
+ }
+
+ /**
+ * Insert records where the value exceeds the previous maximum value for a
+ * column in the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var
+ * @return $this
+ */
+ public function setMaximum($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class);
+ $this->writeOneof(3, $var);
+
+ return $this;
+ }
+
+ /**
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4;
+ * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null
+ */
+ public function getUnique()
+ {
+ return $this->readOneof(4);
+ }
+
+ public function hasUnique()
+ {
+ return $this->hasOneof(4);
+ }
+
+ /**
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4;
+ * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var
+ * @return $this
+ */
+ public function setUnique($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class);
+ $this->writeOneof(4, $var);
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getMode()
+ {
+ return $this->whichOneof("mode");
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php b/Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php
new file mode 100644
index 000000000000..d77a67e03972
--- /dev/null
+++ b/Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php
@@ -0,0 +1,34 @@
+google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode
+ */
+class SimpleLoadMode extends \Google\Protobuf\Internal\Message
+{
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/NotebookRuntimeOptions.php b/Dataform/src/V1beta1/NotebookRuntimeOptions.php
index 4cdee536e619..86733efea125 100644
--- a/Dataform/src/V1beta1/NotebookRuntimeOptions.php
+++ b/Dataform/src/V1beta1/NotebookRuntimeOptions.php
@@ -15,6 +15,15 @@
*/
class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message
{
+ /**
+ * Optional. The resource name of the [Colab runtime template]
+ * (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
+ * created for notebook executions. If not specified, a runtime is created
+ * with Colab's default specifications.
+ *
+ * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ */
+ protected $ai_platform_notebook_runtime_template = '';
protected $execution_sink;
/**
@@ -26,6 +35,11 @@ class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message
* @type string $gcs_output_bucket
* Optional. The Google Cloud Storage location to upload the result to.
* Format: `gs://bucket-name`.
+ * @type string $ai_platform_notebook_runtime_template
+ * Optional. The resource name of the [Colab runtime template]
+ * (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
+ * created for notebook executions. If not specified, a runtime is created
+ * with Colab's default specifications.
* }
*/
public function __construct($data = NULL) {
@@ -66,6 +80,38 @@ public function setGcsOutputBucket($var)
return $this;
}
+ /**
+ * Optional. The resource name of the [Colab runtime template]
+ * (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
+ * created for notebook executions. If not specified, a runtime is created
+ * with Colab's default specifications.
+ *
+ * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getAiPlatformNotebookRuntimeTemplate()
+ {
+ return $this->ai_platform_notebook_runtime_template;
+ }
+
+ /**
+ * Optional. The resource name of the [Colab runtime template]
+ * (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
+ * created for notebook executions. If not specified, a runtime is created
+ * with Colab's default specifications.
+ *
+ * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setAiPlatformNotebookRuntimeTemplate($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->ai_platform_notebook_runtime_template = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Dataform/src/V1beta1/WorkflowConfig.php b/Dataform/src/V1beta1/WorkflowConfig.php
index 6ad480b93f86..059df4fe35b5 100644
--- a/Dataform/src/V1beta1/WorkflowConfig.php
+++ b/Dataform/src/V1beta1/WorkflowConfig.php
@@ -59,6 +59,12 @@ class WorkflowConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $recent_scheduled_execution_records;
+ /**
+ * Optional. Disables automatic creation of workflow invocations.
+ *
+ * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $disabled = false;
/**
* Output only. The timestamp of when the WorkflowConfig was created.
*
@@ -106,6 +112,8 @@ class WorkflowConfig extends \Google\Protobuf\Internal\Message
* Output only. Records of the 10 most recent scheduled execution attempts,
* ordered in descending order of `execution_time`. Updated whenever automatic
* creation of a workflow invocation is triggered by cron_schedule.
+ * @type bool $disabled
+ * Optional. Disables automatic creation of workflow invocations.
* @type \Google\Protobuf\Timestamp $create_time
* Output only. The timestamp of when the WorkflowConfig was created.
* @type \Google\Protobuf\Timestamp $update_time
@@ -303,6 +311,32 @@ public function setRecentScheduledExecutionRecords($var)
return $this;
}
+ /**
+ * Optional. Disables automatic creation of workflow invocations.
+ *
+ * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
+ * @return bool
+ */
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+
+ /**
+ * Optional. Disables automatic creation of workflow invocations.
+ *
+ * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
+ * @param bool $var
+ * @return $this
+ */
+ public function setDisabled($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->disabled = $var;
+
+ return $this;
+ }
+
/**
* Output only. The timestamp of when the WorkflowConfig was created.
*
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction.php b/Dataform/src/V1beta1/WorkflowInvocationAction.php
index 1bb6be39856b..7d87747394b0 100644
--- a/Dataform/src/V1beta1/WorkflowInvocationAction.php
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction.php
@@ -72,6 +72,8 @@ class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message
* Output only. The workflow action's bigquery action details.
* @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction $notebook_action
* Output only. The workflow action's notebook action details.
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $data_preparation_action
+ * Output only. The workflow action's data preparation action details.
* @type \Google\Cloud\Dataform\V1beta1\Target $target
* Output only. This action's identifier. Unique within the workflow
* invocation.
@@ -162,6 +164,37 @@ public function setNotebookAction($var)
return $this;
}
+ /**
+ * Output only. The workflow action's data preparation action details.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction|null
+ */
+ public function getDataPreparationAction()
+ {
+ return $this->readOneof(9);
+ }
+
+ public function hasDataPreparationAction()
+ {
+ return $this->hasOneof(9);
+ }
+
+ /**
+ * Output only. The workflow action's data preparation action details.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $var
+ * @return $this
+ */
+ public function setDataPreparationAction($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction::class);
+ $this->writeOneof(9, $var);
+
+ return $this;
+ }
+
/**
* Output only. This action's identifier. Unique within the workflow
* invocation.
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php
new file mode 100644
index 000000000000..201a84a2d93d
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php
@@ -0,0 +1,191 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction
+ */
+class DataPreparationAction extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. The generated BigQuery SQL script that will be executed. For
+ * reference only.
+ *
+ * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $generated_sql = '';
+ /**
+ * Output only. The ID of the BigQuery job that executed the SQL in
+ * sql_script. Only set once the job has started to run.
+ *
+ * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $job_id = '';
+ protected $definition;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $contents_yaml
+ * Output only. YAML representing the contents of the data preparation.
+ * Can be used to show the customer what the input was to their workflow.
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $contents_sql
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ * @type string $generated_sql
+ * Output only. The generated BigQuery SQL script that will be executed. For
+ * reference only.
+ * @type string $job_id
+ * Output only. The ID of the BigQuery job that executed the SQL in
+ * sql_script. Only set once the job has started to run.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. YAML representing the contents of the data preparation.
+ * Can be used to show the customer what the input was to their workflow.
+ *
+ * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getContentsYaml()
+ {
+ return $this->readOneof(2);
+ }
+
+ public function hasContentsYaml()
+ {
+ return $this->hasOneof(2);
+ }
+
+ /**
+ * Output only. YAML representing the contents of the data preparation.
+ * Can be used to show the customer what the input was to their workflow.
+ *
+ * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setContentsYaml($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->writeOneof(2, $var);
+
+ return $this;
+ }
+
+ /**
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition|null
+ */
+ public function getContentsSql()
+ {
+ return $this->readOneof(6);
+ }
+
+ public function hasContentsSql()
+ {
+ return $this->hasOneof(6);
+ }
+
+ /**
+ * SQL definition for a Data Preparation. Contains a SQL query and
+ * additional context information.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $var
+ * @return $this
+ */
+ public function setContentsSql($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition::class);
+ $this->writeOneof(6, $var);
+
+ return $this;
+ }
+
+ /**
+ * Output only. The generated BigQuery SQL script that will be executed. For
+ * reference only.
+ *
+ * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getGeneratedSql()
+ {
+ return $this->generated_sql;
+ }
+
+ /**
+ * Output only. The generated BigQuery SQL script that will be executed. For
+ * reference only.
+ *
+ * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setGeneratedSql($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->generated_sql = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The ID of the BigQuery job that executed the SQL in
+ * sql_script. Only set once the job has started to run.
+ *
+ * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getJobId()
+ {
+ return $this->job_id;
+ }
+
+ /**
+ * Output only. The ID of the BigQuery job that executed the SQL in
+ * sql_script. Only set once the job has started to run.
+ *
+ * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setJobId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->job_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getDefinition()
+ {
+ return $this->whichOneof("definition");
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php
new file mode 100644
index 000000000000..5b1d7afd367b
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php
@@ -0,0 +1,117 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable
+ */
+class ActionErrorTable extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ */
+ protected $target = null;
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ */
+ protected $retention_days = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\Dataform\V1beta1\Target $target
+ * Error Table target.
+ * @type int $retention_days
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ * @return \Google\Cloud\Dataform\V1beta1\Target|null
+ */
+ public function getTarget()
+ {
+ return $this->target;
+ }
+
+ public function hasTarget()
+ {
+ return isset($this->target);
+ }
+
+ public function clearTarget()
+ {
+ unset($this->target);
+ }
+
+ /**
+ * Error Table target.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1;
+ * @param \Google\Cloud\Dataform\V1beta1\Target $var
+ * @return $this
+ */
+ public function setTarget($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class);
+ $this->target = $var;
+
+ return $this;
+ }
+
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ * @return int
+ */
+ public function getRetentionDays()
+ {
+ return $this->retention_days;
+ }
+
+ /**
+ * Error table partition expiration in days. Only positive values are
+ * allowed.
+ *
+ * Generated from protobuf field int32 retention_days = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setRetentionDays($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->retention_days = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php
new file mode 100644
index 000000000000..dcbf07249afe
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php
@@ -0,0 +1,68 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode
+ */
+class ActionIncrementalLoadMode extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ */
+ protected $column = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $column
+ * Column name for incremental load modes
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ * @return string
+ */
+ public function getColumn()
+ {
+ return $this->column;
+ }
+
+ /**
+ * Column name for incremental load modes
+ *
+ * Generated from protobuf field string column = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setColumn($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->column = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php
new file mode 100644
index 000000000000..0d7d4f9bee32
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php
@@ -0,0 +1,181 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig
+ */
+class ActionLoadConfig extends \Google\Protobuf\Internal\Message
+{
+ protected $mode;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $replace
+ * Replace destination table
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $append
+ * Append into destination table
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $maximum
+ * Insert records where the value exceeds the previous maximum value for
+ * a column in the destination table
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $unique
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Replace destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null
+ */
+ public function getReplace()
+ {
+ return $this->readOneof(1);
+ }
+
+ public function hasReplace()
+ {
+ return $this->hasOneof(1);
+ }
+
+ /**
+ * Replace destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var
+ * @return $this
+ */
+ public function setReplace($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class);
+ $this->writeOneof(1, $var);
+
+ return $this;
+ }
+
+ /**
+ * Append into destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null
+ */
+ public function getAppend()
+ {
+ return $this->readOneof(2);
+ }
+
+ public function hasAppend()
+ {
+ return $this->hasOneof(2);
+ }
+
+ /**
+ * Append into destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var
+ * @return $this
+ */
+ public function setAppend($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class);
+ $this->writeOneof(2, $var);
+
+ return $this;
+ }
+
+ /**
+ * Insert records where the value exceeds the previous maximum value for
+ * a column in the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null
+ */
+ public function getMaximum()
+ {
+ return $this->readOneof(3);
+ }
+
+ public function hasMaximum()
+ {
+ return $this->hasOneof(3);
+ }
+
+ /**
+ * Insert records where the value exceeds the previous maximum value for
+ * a column in the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var
+ * @return $this
+ */
+ public function setMaximum($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class);
+ $this->writeOneof(3, $var);
+
+ return $this;
+ }
+
+ /**
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null
+ */
+ public function getUnique()
+ {
+ return $this->readOneof(4);
+ }
+
+ public function hasUnique()
+ {
+ return $this->hasOneof(4);
+ }
+
+ /**
+ * Insert records where the value of a column is not already present in
+ * the destination table
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var
+ * @return $this
+ */
+ public function setUnique($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class);
+ $this->writeOneof(4, $var);
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getMode()
+ {
+ return $this->whichOneof("mode");
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php
new file mode 100644
index 000000000000..5c962ddde60c
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php
@@ -0,0 +1,34 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode
+ */
+class ActionSimpleLoadMode extends \Google\Protobuf\Internal\Message
+{
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php
new file mode 100644
index 000000000000..c4f0a3b819d0
--- /dev/null
+++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php
@@ -0,0 +1,160 @@
+google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition
+ */
+class ActionSqlDefinition extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ */
+ protected $query = '';
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2;
+ */
+ protected $error_table = null;
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3;
+ */
+ protected $load_config = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $query
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $error_table
+ * Error table configuration,
+ * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $load_config
+ * Load configuration.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ * @return string
+ */
+ public function getQuery()
+ {
+ return $this->query;
+ }
+
+ /**
+ * The SQL query representing the data preparation steps. Formatted as a
+ * Pipe SQL query statement.
+ *
+ * Generated from protobuf field string query = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setQuery($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->query = $var;
+
+ return $this;
+ }
+
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable|null
+ */
+ public function getErrorTable()
+ {
+ return $this->error_table;
+ }
+
+ public function hasErrorTable()
+ {
+ return isset($this->error_table);
+ }
+
+ public function clearErrorTable()
+ {
+ unset($this->error_table);
+ }
+
+ /**
+ * Error table configuration,
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $var
+ * @return $this
+ */
+ public function setErrorTable($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable::class);
+ $this->error_table = $var;
+
+ return $this;
+ }
+
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3;
+ * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig|null
+ */
+ public function getLoadConfig()
+ {
+ return $this->load_config;
+ }
+
+ public function hasLoadConfig()
+ {
+ return isset($this->load_config);
+ }
+
+ public function clearLoadConfig()
+ {
+ unset($this->load_config);
+ }
+
+ /**
+ * Load configuration.
+ *
+ * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3;
+ * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $var
+ * @return $this
+ */
+ public function setLoadConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig::class);
+ $this->load_config = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/Dataform/src/V1beta1/resources/dataform_descriptor_config.php b/Dataform/src/V1beta1/resources/dataform_descriptor_config.php
index 3ff138416d38..3a1a4eb53b89 100644
--- a/Dataform/src/V1beta1/resources/dataform_descriptor_config.php
+++ b/Dataform/src/V1beta1/resources/dataform_descriptor_config.php
@@ -850,6 +850,7 @@
'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}',
'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}',
'location' => 'projects/{project}/locations/{location}',
+ 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}',
'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}',
'repository' => 'projects/{project}/locations/{location}/repositories/{repository}',
'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}',
diff --git a/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php b/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php
index 57aeebb81535..77fda5fe11eb 100644
--- a/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php
+++ b/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php
@@ -745,12 +745,14 @@ public function createWorkflowConfigTest()
$releaseConfig = 'releaseConfig582587002';
$cronSchedule = 'cronSchedule206244136';
$timeZone = 'timeZone36848094';
+ $disabled = true;
$internalMetadata = 'internalMetadata-1087755663';
$expectedResponse = new WorkflowConfig();
$expectedResponse->setName($name);
$expectedResponse->setReleaseConfig($releaseConfig);
$expectedResponse->setCronSchedule($cronSchedule);
$expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setDisabled($disabled);
$expectedResponse->setInternalMetadata($internalMetadata);
$transport->addResponse($expectedResponse);
// Mock request
@@ -1973,12 +1975,14 @@ public function getWorkflowConfigTest()
$releaseConfig = 'releaseConfig582587002';
$cronSchedule = 'cronSchedule206244136';
$timeZone = 'timeZone36848094';
+ $disabled = true;
$internalMetadata = 'internalMetadata-1087755663';
$expectedResponse = new WorkflowConfig();
$expectedResponse->setName($name2);
$expectedResponse->setReleaseConfig($releaseConfig);
$expectedResponse->setCronSchedule($cronSchedule);
$expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setDisabled($disabled);
$expectedResponse->setInternalMetadata($internalMetadata);
$transport->addResponse($expectedResponse);
// Mock request
@@ -3987,12 +3991,14 @@ public function updateWorkflowConfigTest()
$releaseConfig = 'releaseConfig582587002';
$cronSchedule = 'cronSchedule206244136';
$timeZone = 'timeZone36848094';
+ $disabled = true;
$internalMetadata = 'internalMetadata-1087755663';
$expectedResponse = new WorkflowConfig();
$expectedResponse->setName($name);
$expectedResponse->setReleaseConfig($releaseConfig);
$expectedResponse->setCronSchedule($cronSchedule);
$expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setDisabled($disabled);
$expectedResponse->setInternalMetadata($internalMetadata);
$transport->addResponse($expectedResponse);
// Mock request