| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="dataform_v1beta1.html">Dataform API</a> . <a href="dataform_v1beta1.projects.html">projects</a> . <a href="dataform_v1beta1.projects.locations.html">locations</a> . <a href="dataform_v1beta1.projects.locations.repositories.html">repositories</a> . <a href="dataform_v1beta1.projects.locations.repositories.compilationResults.html">compilationResults</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Creates a new CompilationResult in a given project and location.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Fetches a single CompilationResult.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Lists CompilationResults in a given Repository.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#list_next">list_next()</a></code></p> |
| 91 |
<p class="firstline">Retrieves the next page of results.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#query">query(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Returns CompilationResultActions in a given CompilationResult.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#query_next">query_next()</a></code></p> |
| 97 |
<p class="firstline">Retrieves the next page of results.</p> |
| 98 |
<h3>Method Details</h3> |
| 99 |
<div class="method"> |
| 100 |
<code class="details" id="close">close()</code> |
| 101 |
<pre>Close httplib2 connections.</pre> |
| 102 |
</div> |
| 103 |
|
| 104 |
<div class="method"> |
| 105 |
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 106 |
<pre>Creates a new CompilationResult in a given project and location. |
| 107 |
|
| 108 |
Args: |
| 109 |
parent: string, Required. The repository in which to create the compilation result. Must be in the format `projects/*/locations/*/repositories/*`. (required) |
| 110 |
body: object, The request body. |
| 111 |
The object takes the form of: |
| 112 |
|
| 113 |
{ # Represents the result of compiling a Dataform project. |
| 114 |
"codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. |
| 115 |
"assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. |
| 116 |
"builtinAssertionNamePrefix": "A String", # Optional. The prefix to prepend to built-in assertion names. |
| 117 |
"databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. |
| 118 |
"defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). |
| 119 |
"defaultLocation": "A String", # Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations. |
| 120 |
"defaultNotebookRuntimeOptions": { # Configures various aspects of Dataform notebook runtime. # Optional. The default notebook runtime options. |
| 121 |
"aiPlatformNotebookRuntimeTemplate": "A String", # 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. |
| 122 |
"gcsOutputBucket": "A String", # Optional. The Google Cloud Storage location to upload the result to. Format: `gs://bucket-name`. |
| 123 |
}, |
| 124 |
"defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). |
| 125 |
"schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. |
| 126 |
"tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. |
| 127 |
"vars": { # Optional. User-defined variables that are made available to project code during compilation. |
| 128 |
"a_key": "A String", |
| 129 |
}, |
| 130 |
}, |
| 131 |
"compilationErrors": [ # Output only. Errors encountered during project compilation. |
| 132 |
{ # An error encountered when attempting to compile a Dataform project. |
| 133 |
"actionTarget": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # Output only. The identifier of the action where this error occurred, if available. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CompilationError) |
| 134 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 135 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 136 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 137 |
}, |
| 138 |
"message": "A String", # Output only. The error's top level message. |
| 139 |
"path": "A String", # Output only. The path of the file where this error occurred, if available, relative to the project root. |
| 140 |
"stack": "A String", # Output only. The error's full stack trace. |
| 141 |
}, |
| 142 |
], |
| 143 |
"createTime": "A String", # Output only. The timestamp of when the compilation result was created. |
| 144 |
"dataEncryptionState": { # Describes encryption state of a resource. # Output only. Only set if the repository has a KMS Key. |
| 145 |
"kmsKeyVersionName": "A String", # Required. The KMS key version name with which data of a resource is encrypted. |
| 146 |
}, |
| 147 |
"dataformCoreVersion": "A String", # Output only. The version of `@dataform/core` that was used for compilation. |
| 148 |
"gitCommitish": "A String", # Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1` |
| 149 |
"internalMetadata": "A String", # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| 150 |
"name": "A String", # Output only. The compilation result's name. |
| 151 |
"privateResourceMetadata": { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. `CompilationResult` resource is `user_scoped` only if it is sourced from a workspace. |
| 152 |
"userScoped": True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace. |
| 153 |
}, |
| 154 |
"releaseConfig": "A String", # Immutable. The name of the release config to compile. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`. |
| 155 |
"resolvedGitCommitSha": "A String", # Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. |
| 156 |
"workspace": "A String", # Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`. |
| 157 |
} |
| 158 |
|
| 159 |
x__xgafv: string, V1 error format. |
| 160 |
Allowed values |
| 161 |
1 - v1 error format |
| 162 |
2 - v2 error format |
| 163 |
|
| 164 |
Returns: |
| 165 |
An object of the form: |
| 166 |
|
| 167 |
{ # Represents the result of compiling a Dataform project. |
| 168 |
"codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. |
| 169 |
"assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. |
| 170 |
"builtinAssertionNamePrefix": "A String", # Optional. The prefix to prepend to built-in assertion names. |
| 171 |
"databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. |
| 172 |
"defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). |
| 173 |
"defaultLocation": "A String", # Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations. |
| 174 |
"defaultNotebookRuntimeOptions": { # Configures various aspects of Dataform notebook runtime. # Optional. The default notebook runtime options. |
| 175 |
"aiPlatformNotebookRuntimeTemplate": "A String", # 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. |
| 176 |
"gcsOutputBucket": "A String", # Optional. The Google Cloud Storage location to upload the result to. Format: `gs://bucket-name`. |
| 177 |
}, |
| 178 |
"defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). |
| 179 |
"schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. |
| 180 |
"tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. |
| 181 |
"vars": { # Optional. User-defined variables that are made available to project code during compilation. |
| 182 |
"a_key": "A String", |
| 183 |
}, |
| 184 |
}, |
| 185 |
"compilationErrors": [ # Output only. Errors encountered during project compilation. |
| 186 |
{ # An error encountered when attempting to compile a Dataform project. |
| 187 |
"actionTarget": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # Output only. The identifier of the action where this error occurred, if available. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CompilationError) |
| 188 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 189 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 190 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 191 |
}, |
| 192 |
"message": "A String", # Output only. The error's top level message. |
| 193 |
"path": "A String", # Output only. The path of the file where this error occurred, if available, relative to the project root. |
| 194 |
"stack": "A String", # Output only. The error's full stack trace. |
| 195 |
}, |
| 196 |
], |
| 197 |
"createTime": "A String", # Output only. The timestamp of when the compilation result was created. |
| 198 |
"dataEncryptionState": { # Describes encryption state of a resource. # Output only. Only set if the repository has a KMS Key. |
| 199 |
"kmsKeyVersionName": "A String", # Required. The KMS key version name with which data of a resource is encrypted. |
| 200 |
}, |
| 201 |
"dataformCoreVersion": "A String", # Output only. The version of `@dataform/core` that was used for compilation. |
| 202 |
"gitCommitish": "A String", # Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1` |
| 203 |
"internalMetadata": "A String", # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| 204 |
"name": "A String", # Output only. The compilation result's name. |
| 205 |
"privateResourceMetadata": { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. `CompilationResult` resource is `user_scoped` only if it is sourced from a workspace. |
| 206 |
"userScoped": True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace. |
| 207 |
}, |
| 208 |
"releaseConfig": "A String", # Immutable. The name of the release config to compile. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`. |
| 209 |
"resolvedGitCommitSha": "A String", # Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. |
| 210 |
"workspace": "A String", # Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`. |
| 211 |
}</pre> |
| 212 |
</div> |
| 213 |
|
| 214 |
<div class="method"> |
| 215 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 216 |
<pre>Fetches a single CompilationResult. |
| 217 |
|
| 218 |
Args: |
| 219 |
name: string, Required. The compilation result's name. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:GetCompilationResultRequest) (required) |
| 220 |
x__xgafv: string, V1 error format. |
| 221 |
Allowed values |
| 222 |
1 - v1 error format |
| 223 |
2 - v2 error format |
| 224 |
|
| 225 |
Returns: |
| 226 |
An object of the form: |
| 227 |
|
| 228 |
{ # Represents the result of compiling a Dataform project. |
| 229 |
"codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. |
| 230 |
"assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. |
| 231 |
"builtinAssertionNamePrefix": "A String", # Optional. The prefix to prepend to built-in assertion names. |
| 232 |
"databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. |
| 233 |
"defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). |
| 234 |
"defaultLocation": "A String", # Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations. |
| 235 |
"defaultNotebookRuntimeOptions": { # Configures various aspects of Dataform notebook runtime. # Optional. The default notebook runtime options. |
| 236 |
"aiPlatformNotebookRuntimeTemplate": "A String", # 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. |
| 237 |
"gcsOutputBucket": "A String", # Optional. The Google Cloud Storage location to upload the result to. Format: `gs://bucket-name`. |
| 238 |
}, |
| 239 |
"defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). |
| 240 |
"schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. |
| 241 |
"tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. |
| 242 |
"vars": { # Optional. User-defined variables that are made available to project code during compilation. |
| 243 |
"a_key": "A String", |
| 244 |
}, |
| 245 |
}, |
| 246 |
"compilationErrors": [ # Output only. Errors encountered during project compilation. |
| 247 |
{ # An error encountered when attempting to compile a Dataform project. |
| 248 |
"actionTarget": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # Output only. The identifier of the action where this error occurred, if available. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CompilationError) |
| 249 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 250 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 251 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 252 |
}, |
| 253 |
"message": "A String", # Output only. The error's top level message. |
| 254 |
"path": "A String", # Output only. The path of the file where this error occurred, if available, relative to the project root. |
| 255 |
"stack": "A String", # Output only. The error's full stack trace. |
| 256 |
}, |
| 257 |
], |
| 258 |
"createTime": "A String", # Output only. The timestamp of when the compilation result was created. |
| 259 |
"dataEncryptionState": { # Describes encryption state of a resource. # Output only. Only set if the repository has a KMS Key. |
| 260 |
"kmsKeyVersionName": "A String", # Required. The KMS key version name with which data of a resource is encrypted. |
| 261 |
}, |
| 262 |
"dataformCoreVersion": "A String", # Output only. The version of `@dataform/core` that was used for compilation. |
| 263 |
"gitCommitish": "A String", # Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1` |
| 264 |
"internalMetadata": "A String", # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| 265 |
"name": "A String", # Output only. The compilation result's name. |
| 266 |
"privateResourceMetadata": { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. `CompilationResult` resource is `user_scoped` only if it is sourced from a workspace. |
| 267 |
"userScoped": True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace. |
| 268 |
}, |
| 269 |
"releaseConfig": "A String", # Immutable. The name of the release config to compile. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`. |
| 270 |
"resolvedGitCommitSha": "A String", # Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. |
| 271 |
"workspace": "A String", # Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`. |
| 272 |
}</pre> |
| 273 |
</div> |
| 274 |
|
| 275 |
<div class="method"> |
| 276 |
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 277 |
<pre>Lists CompilationResults in a given Repository. |
| 278 |
|
| 279 |
Args: |
| 280 |
parent: string, Required. The repository in which to list compilation results. Must be in the format `projects/*/locations/*/repositories/*`. (required) |
| 281 |
filter: string, Optional. Filter for the returned list. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListCompilationResultsRequest) |
| 282 |
orderBy: string, Optional. This field only supports ordering by `name` and `create_time`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field. |
| 283 |
pageSize: integer, Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. |
| 284 |
pageToken: string, Optional. Page token received from a previous `ListCompilationResults` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCompilationResults`, with the exception of `page_size`, must match the call that provided the page token. |
| 285 |
x__xgafv: string, V1 error format. |
| 286 |
Allowed values |
| 287 |
1 - v1 error format |
| 288 |
2 - v2 error format |
| 289 |
|
| 290 |
Returns: |
| 291 |
An object of the form: |
| 292 |
|
| 293 |
{ # `ListCompilationResults` response message. |
| 294 |
"compilationResults": [ # List of compilation results. |
| 295 |
{ # Represents the result of compiling a Dataform project. |
| 296 |
"codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. |
| 297 |
"assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. |
| 298 |
"builtinAssertionNamePrefix": "A String", # Optional. The prefix to prepend to built-in assertion names. |
| 299 |
"databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. |
| 300 |
"defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). |
| 301 |
"defaultLocation": "A String", # Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations. |
| 302 |
"defaultNotebookRuntimeOptions": { # Configures various aspects of Dataform notebook runtime. # Optional. The default notebook runtime options. |
| 303 |
"aiPlatformNotebookRuntimeTemplate": "A String", # 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. |
| 304 |
"gcsOutputBucket": "A String", # Optional. The Google Cloud Storage location to upload the result to. Format: `gs://bucket-name`. |
| 305 |
}, |
| 306 |
"defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). |
| 307 |
"schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. |
| 308 |
"tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. |
| 309 |
"vars": { # Optional. User-defined variables that are made available to project code during compilation. |
| 310 |
"a_key": "A String", |
| 311 |
}, |
| 312 |
}, |
| 313 |
"compilationErrors": [ # Output only. Errors encountered during project compilation. |
| 314 |
{ # An error encountered when attempting to compile a Dataform project. |
| 315 |
"actionTarget": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # Output only. The identifier of the action where this error occurred, if available. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:CompilationError) |
| 316 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 317 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 318 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 319 |
}, |
| 320 |
"message": "A String", # Output only. The error's top level message. |
| 321 |
"path": "A String", # Output only. The path of the file where this error occurred, if available, relative to the project root. |
| 322 |
"stack": "A String", # Output only. The error's full stack trace. |
| 323 |
}, |
| 324 |
], |
| 325 |
"createTime": "A String", # Output only. The timestamp of when the compilation result was created. |
| 326 |
"dataEncryptionState": { # Describes encryption state of a resource. # Output only. Only set if the repository has a KMS Key. |
| 327 |
"kmsKeyVersionName": "A String", # Required. The KMS key version name with which data of a resource is encrypted. |
| 328 |
}, |
| 329 |
"dataformCoreVersion": "A String", # Output only. The version of `@dataform/core` that was used for compilation. |
| 330 |
"gitCommitish": "A String", # Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1` |
| 331 |
"internalMetadata": "A String", # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| 332 |
"name": "A String", # Output only. The compilation result's name. |
| 333 |
"privateResourceMetadata": { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. `CompilationResult` resource is `user_scoped` only if it is sourced from a workspace. |
| 334 |
"userScoped": True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace. |
| 335 |
}, |
| 336 |
"releaseConfig": "A String", # Immutable. The name of the release config to compile. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`. |
| 337 |
"resolvedGitCommitSha": "A String", # Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. |
| 338 |
"workspace": "A String", # Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`. |
| 339 |
}, |
| 340 |
], |
| 341 |
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 342 |
"unreachable": [ # Locations which could not be reached. LINT.ThenChange(//depot/google3/google/cloud/dataform/v2main/data_pipelines.proto:ListCompilationResultsResponse) |
| 343 |
"A String", |
| 344 |
], |
| 345 |
}</pre> |
| 346 |
</div> |
| 347 |
|
| 348 |
<div class="method"> |
| 349 |
<code class="details" id="list_next">list_next()</code> |
| 350 |
<pre>Retrieves the next page of results. |
| 351 |
|
| 352 |
Args: |
| 353 |
previous_request: The request for the previous page. (required) |
| 354 |
previous_response: The response from the request for the previous page. (required) |
| 355 |
|
| 356 |
Returns: |
| 357 |
A request object that you can call 'execute()' on to request the next |
| 358 |
page. Returns None if there are no more items in the collection. |
| 359 |
</pre> |
| 360 |
</div> |
| 361 |
|
| 362 |
<div class="method"> |
| 363 |
<code class="details" id="query">query(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 364 |
<pre>Returns CompilationResultActions in a given CompilationResult. |
| 365 |
|
| 366 |
Args: |
| 367 |
name: string, Required. The compilation result's name. (required) |
| 368 |
filter: string, Optional. Optional filter for the returned list. Filtering is only currently supported on the `file_path` field. |
| 369 |
pageSize: integer, Optional. Maximum number of compilation results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. |
| 370 |
pageToken: string, Optional. Page token received from a previous `QueryCompilationResultActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryCompilationResultActions`, with the exception of `page_size`, must match the call that provided the page token. |
| 371 |
x__xgafv: string, V1 error format. |
| 372 |
Allowed values |
| 373 |
1 - v1 error format |
| 374 |
2 - v2 error format |
| 375 |
|
| 376 |
Returns: |
| 377 |
An object of the form: |
| 378 |
|
| 379 |
{ # `QueryCompilationResultActions` response message. |
| 380 |
"compilationResultActions": [ # List of compilation result actions. |
| 381 |
{ # Represents a single Dataform action in a compilation result. |
| 382 |
"assertion": { # Represents an assertion upon a SQL query which is required return zero rows. # The assertion executed by this action. |
| 383 |
"dependencyTargets": [ # A list of actions that this action depends on. |
| 384 |
{ # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. |
| 385 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 386 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 387 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 388 |
}, |
| 389 |
], |
| 390 |
"disabled": True or False, # Whether this action is disabled (i.e. should not be run). |
| 391 |
"parentAction": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # The parent action of this assertion. Only set if this assertion was automatically generated. |
| 392 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 393 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 394 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 395 |
}, |
| 396 |
"relationDescriptor": { # Describes a relation and its columns. # Descriptor for the assertion's automatically-generated view and its columns. |
| 397 |
"bigqueryLabels": { # A set of BigQuery labels that should be applied to the relation. |
| 398 |
"a_key": "A String", |
| 399 |
}, |
| 400 |
"columns": [ # A list of descriptions of columns within the relation. |
| 401 |
{ # Describes a column. |
| 402 |
"bigqueryPolicyTags": [ # A list of BigQuery policy tags that will be applied to the column. |
| 403 |
"A String", |
| 404 |
], |
| 405 |
"description": "A String", # A textual description of the column. |
| 406 |
"path": [ # The identifier for the column. Each entry in `path` represents one level of nesting. |
| 407 |
"A String", |
| 408 |
], |
| 409 |
}, |
| 410 |
], |
| 411 |
"description": "A String", # A text description of the relation. |
| 412 |
}, |
| 413 |
"selectQuery": "A String", # The SELECT query which must return zero rows in order for this assertion to succeed. |
| 414 |
"tags": [ # Arbitrary, user-defined tags on this action. |
| 415 |
"A String", |
| 416 |
], |
| 417 |
}, |
| 418 |
"canonicalTarget": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. |
| 419 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 420 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 421 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 422 |
}, |
| 423 |
"dataPreparation": { # Defines a compiled Data Preparation entity # The data preparation executed by this action. |
| 424 |
"contentsSql": { # Definition of a SQL Data Preparation # SQL definition for a Data Preparation. Contains a SQL query and additional context information. |
| 425 |
"errorTable": { # Error table information, used to write error data into a BigQuery table. # Error table configuration, |
| 426 |
"retentionDays": 42, # Error table partition expiration in days. Only positive values are allowed. |
| 427 |
"target": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # Error Table target. |
| 428 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 429 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 430 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 431 |
}, |
| 432 |
}, |
| 433 |
"load": { # Simplified load configuration for actions # Load configuration. |
| 434 |
"append": { # Simple load definition # Append into destination table |
| 435 |
}, |
| 436 |
"maximum": { # Load definition for incremental load modes # Insert records where the value exceeds the previous maximum value for a column in the destination table |
| 437 |
"column": "A String", # Column name for incremental load modes |
| 438 |
}, |
| 439 |
"replace": { # Simple load definition # Replace destination table |
| 440 |
}, |
| 441 |
"unique": { # Load definition for incremental load modes # Insert records where the value of a column is not already present in the destination table |
| 442 |
"column": "A String", # Column name for incremental load modes |
| 443 |
}, |
| 444 |
}, |
| 445 |
"query": "A String", # The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement. |
| 446 |
}, |
| 447 |
"contentsYaml": "A String", # The data preparation definition, stored as a YAML string. |
| 448 |
"dependencyTargets": [ # A list of actions that this action depends on. |
| 449 |
{ # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. |
| 450 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 451 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 452 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 453 |
}, |
| 454 |
], |
| 455 |
"disabled": True or False, # Whether this action is disabled (i.e. should not be run). |
| 456 |
"tags": [ # Arbitrary, user-defined tags on this action. |
| 457 |
"A String", |
| 458 |
], |
| 459 |
}, |
| 460 |
"declaration": { # Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions. # The declaration declared by this action. |
| 461 |
"relationDescriptor": { # Describes a relation and its columns. # Descriptor for the relation and its columns. Used as documentation only, i.e. values here will result in no changes to the relation's metadata. |
| 462 |
"bigqueryLabels": { # A set of BigQuery labels that should be applied to the relation. |
| 463 |
"a_key": "A String", |
| 464 |
}, |
| 465 |
"columns": [ # A list of descriptions of columns within the relation. |
| 466 |
{ # Describes a column. |
| 467 |
"bigqueryPolicyTags": [ # A list of BigQuery policy tags that will be applied to the column. |
| 468 |
"A String", |
| 469 |
], |
| 470 |
"description": "A String", # A textual description of the column. |
| 471 |
"path": [ # The identifier for the column. Each entry in `path` represents one level of nesting. |
| 472 |
"A String", |
| 473 |
], |
| 474 |
}, |
| 475 |
], |
| 476 |
"description": "A String", # A text description of the relation. |
| 477 |
}, |
| 478 |
}, |
| 479 |
"filePath": "A String", # The full path including filename in which this action is located, relative to the workspace root. |
| 480 |
"internalMetadata": "A String", # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| 481 |
"notebook": { # Represents a notebook. # The notebook executed by this action. |
| 482 |
"contents": "A String", # The contents of the notebook. |
| 483 |
"dependencyTargets": [ # A list of actions that this action depends on. |
| 484 |
{ # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. |
| 485 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 486 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 487 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 488 |
}, |
| 489 |
], |
| 490 |
"disabled": True or False, # Whether this action is disabled (i.e. should not be run). |
| 491 |
"tags": [ # Arbitrary, user-defined tags on this action. |
| 492 |
"A String", |
| 493 |
], |
| 494 |
}, |
| 495 |
"operations": { # Represents a list of arbitrary database operations. # The database operations executed by this action. |
| 496 |
"dependencyTargets": [ # A list of actions that this action depends on. |
| 497 |
{ # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. |
| 498 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 499 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 500 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 501 |
}, |
| 502 |
], |
| 503 |
"disabled": True or False, # Whether this action is disabled (i.e. should not be run). |
| 504 |
"hasOutput": True or False, # Whether these operations produce an output relation. |
| 505 |
"queries": [ # A list of arbitrary SQL statements that will be executed without alteration. |
| 506 |
"A String", |
| 507 |
], |
| 508 |
"relationDescriptor": { # Describes a relation and its columns. # Descriptor for any output relation and its columns. Only set if `has_output` is true. |
| 509 |
"bigqueryLabels": { # A set of BigQuery labels that should be applied to the relation. |
| 510 |
"a_key": "A String", |
| 511 |
}, |
| 512 |
"columns": [ # A list of descriptions of columns within the relation. |
| 513 |
{ # Describes a column. |
| 514 |
"bigqueryPolicyTags": [ # A list of BigQuery policy tags that will be applied to the column. |
| 515 |
"A String", |
| 516 |
], |
| 517 |
"description": "A String", # A textual description of the column. |
| 518 |
"path": [ # The identifier for the column. Each entry in `path` represents one level of nesting. |
| 519 |
"A String", |
| 520 |
], |
| 521 |
}, |
| 522 |
], |
| 523 |
"description": "A String", # A text description of the relation. |
| 524 |
}, |
| 525 |
"tags": [ # Arbitrary, user-defined tags on this action. |
| 526 |
"A String", |
| 527 |
], |
| 528 |
}, |
| 529 |
"relation": { # Represents a database relation. # The database relation created/updated by this action. |
| 530 |
"additionalOptions": { # Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported. |
| 531 |
"a_key": "A String", |
| 532 |
}, |
| 533 |
"clusterExpressions": [ # A list of columns or SQL expressions used to cluster the table. |
| 534 |
"A String", |
| 535 |
], |
| 536 |
"connection": "A String", # Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project}.{location}.{connection_id}` or `projects/{project}/locations/{location}/connections/{connection_id}`, or be set to DEFAULT. |
| 537 |
"dependencyTargets": [ # A list of actions that this action depends on. |
| 538 |
{ # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. |
| 539 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 540 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 541 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 542 |
}, |
| 543 |
], |
| 544 |
"disabled": True or False, # Whether this action is disabled (i.e. should not be run). |
| 545 |
"fileFormat": "A String", # Optional. The file format for the BigQuery table. |
| 546 |
"incrementalTableConfig": { # Contains settings for relations of type `INCREMENTAL_TABLE`. # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`. |
| 547 |
"incrementalPostOperations": [ # SQL statements to be executed after inserting new rows into the relation. |
| 548 |
"A String", |
| 549 |
], |
| 550 |
"incrementalPreOperations": [ # SQL statements to be executed before inserting new rows into the relation. |
| 551 |
"A String", |
| 552 |
], |
| 553 |
"incrementalSelectQuery": "A String", # The SELECT query which returns rows which should be inserted into the relation if it already exists and is not being refreshed. |
| 554 |
"refreshDisabled": True or False, # Whether this table should be protected from being refreshed. |
| 555 |
"uniqueKeyParts": [ # A set of columns or SQL expressions used to define row uniqueness. If any duplicates are discovered (as defined by `unique_key_parts`), only the newly selected rows (as defined by `incremental_select_query`) will be included in the relation. |
| 556 |
"A String", |
| 557 |
], |
| 558 |
"updatePartitionFilter": "A String", # A SQL expression conditional used to limit the set of existing rows considered for a merge operation (see `unique_key_parts` for more information). |
| 559 |
}, |
| 560 |
"partitionExpirationDays": 42, # Sets the partition expiration in days. |
| 561 |
"partitionExpression": "A String", # The SQL expression used to partition the relation. |
| 562 |
"postOperations": [ # SQL statements to be executed after creating the relation. |
| 563 |
"A String", |
| 564 |
], |
| 565 |
"preOperations": [ # SQL statements to be executed before creating the relation. |
| 566 |
"A String", |
| 567 |
], |
| 568 |
"relationDescriptor": { # Describes a relation and its columns. # Descriptor for the relation and its columns. |
| 569 |
"bigqueryLabels": { # A set of BigQuery labels that should be applied to the relation. |
| 570 |
"a_key": "A String", |
| 571 |
}, |
| 572 |
"columns": [ # A list of descriptions of columns within the relation. |
| 573 |
{ # Describes a column. |
| 574 |
"bigqueryPolicyTags": [ # A list of BigQuery policy tags that will be applied to the column. |
| 575 |
"A String", |
| 576 |
], |
| 577 |
"description": "A String", # A textual description of the column. |
| 578 |
"path": [ # The identifier for the column. Each entry in `path` represents one level of nesting. |
| 579 |
"A String", |
| 580 |
], |
| 581 |
}, |
| 582 |
], |
| 583 |
"description": "A String", # A text description of the relation. |
| 584 |
}, |
| 585 |
"relationType": "A String", # The type of this relation. |
| 586 |
"requirePartitionFilter": True or False, # Specifies whether queries on this table must include a predicate filter that filters on the partitioning column. |
| 587 |
"selectQuery": "A String", # The SELECT query which returns rows which this relation should contain. |
| 588 |
"storageUri": "A String", # Optional. The fully qualified location prefix of the external folder where table data is stored. The URI should be in the format `gs://bucket/path_to_table/`. |
| 589 |
"tableFormat": "A String", # Optional. The table format for the BigQuery table. |
| 590 |
"tags": [ # Arbitrary, user-defined tags on this action. |
| 591 |
"A String", |
| 592 |
], |
| 593 |
}, |
| 594 |
"target": { # Represents an action identifier. If the action writes output, the output will be written to the referenced database object. # This action's identifier. Unique within the compilation result. |
| 595 |
"database": "A String", # Optional. The action's database (Google Cloud project ID) . |
| 596 |
"name": "A String", # Optional. The action's name, within `database` and `schema`. |
| 597 |
"schema": "A String", # Optional. The action's schema (BigQuery dataset ID), within `database`. |
| 598 |
}, |
| 599 |
}, |
| 600 |
], |
| 601 |
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 602 |
}</pre> |
| 603 |
</div> |
| 604 |
|
| 605 |
<div class="method"> |
| 606 |
<code class="details" id="query_next">query_next()</code> |
| 607 |
<pre>Retrieves the next page of results. |
| 608 |
|
| 609 |
Args: |
| 610 |
previous_request: The request for the previous page. (required) |
| 611 |
previous_response: The response from the request for the previous page. (required) |
| 612 |
|
| 613 |
Returns: |
| 614 |
A request object that you can call 'execute()' on to request the next |
| 615 |
page. Returns None if there are no more items in the collection. |
| 616 |
</pre> |
| 617 |
</div> |
| 618 |
|
| 619 |
</body></html> |