Close httplib2 connections.
create(parent, body=None, releaseConfigId=None, x__xgafv=None)
Creates a new ReleaseConfig in a given Repository.
Deletes a single ReleaseConfig.
Fetches a single ReleaseConfig.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists ReleaseConfigs in a given Repository.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates a single ReleaseConfig. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. 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
close()
Close httplib2 connections.
create(parent, body=None, releaseConfigId=None, x__xgafv=None)
Creates a new ReleaseConfig in a given Repository. Args: parent: string, Required. The repository in which to create the release config. Must be in the format `projects/*/locations/*/repositories/*`. (required) body: object, The request body. The object takes the form of: { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. } releaseConfigId: string, Required. The ID to use for the release config, which will become the final component of the release config's resource name. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. }
delete(name, x__xgafv=None)
Deletes a single ReleaseConfig. Args: name: string, Required. The release config's name. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
get(name, x__xgafv=None)
Fetches a single ReleaseConfig. Args: name: string, Required. The release config's name. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists ReleaseConfigs in a given Repository. Args: parent: string, Required. The repository in which to list release configs. Must be in the format `projects/*/locations/*/repositories/*`. (required) pageSize: integer, Optional. Maximum number of release configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. pageToken: string, Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with the exception of `page_size`, must match the call that provided the page token. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # `ListReleaseConfigs` response message. "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. "releaseConfigs": [ # List of release configs. { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. }, ], "unreachable": [ # Locations which could not be reached. "A String", ], }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates a single ReleaseConfig. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. 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 Args: name: string, Identifier. The release config's name. (required) body: object, The request body. The object takes the form of: { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. } updateMask: string, Optional. Specifies the fields to be updated in the release config. If left unset, all fields will be updated. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents a Dataform release configuration. "codeCompilationConfig": { # Configures various aspects of Dataform code compilation. # Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json. "assertionSchema": "A String", # Optional. The default schema (BigQuery dataset ID) for assertions. "databaseSuffix": "A String", # Optional. The suffix that should be appended to all database (Google Cloud project ID) names. "defaultDatabase": "A String", # Optional. The default database (Google Cloud project ID). "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. "defaultNotebookRuntimeOptions": { "gcsOutputBucket": "A String", # Optional. The GCS location to upload the result to. Format: `gs://bucket-name`. }, "defaultSchema": "A String", # Optional. The default schema (BigQuery dataset ID). "schemaSuffix": "A String", # Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. "tablePrefix": "A String", # Optional. The prefix that should be prepended to all table names. "vars": { # Optional. User-defined variables that are made available to project code during compilation. "a_key": "A String", }, }, "cronSchedule": "A String", # Optional. Optional schedule (in cron format) for automatic creation of compilation results. "disabled": True or False, # Optional. Disables automatic creation of compilation results. "gitCommitish": "A String", # Required. 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` "name": "A String", # Identifier. The release config's name. "recentScheduledReleaseRecords": [ # Output only. Records of the 10 most recent scheduled release attempts, ordered in descending order of `release_time`. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. { # A record of an attempt to create a compilation result for this release config. "compilationResult": "A String", # The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. "code": 42, # The status code, which should be an enum value of google.rpc.Code. "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, "releaseTime": "A String", # The timestamp of this release attempt. }, ], "releaseCompilationResult": "A String", # Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. "timeZone": "A String", # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. }