Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0b4efa458e7adc25e50baac51dfebd32934e061b
778cafaef39d9bbe56f17bd228dc337edddf58aa
6,578 changes: 3,289 additions & 3,289 deletions .gitattributes

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
### Internal Changes

### API Changes
* Add `force` field for `com.databricks.sdk.service.pipelines.DeletePipelineRequest`.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 24 additions & 3 deletions ...ks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/DeletePipelineRequest.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,33 @@
package com.databricks.sdk.service.pipelines;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;

@Generated
public class DeletePipelineRequest {
/**
* If true, deletion will proceed even if resource cleanup fails. By default, deletion will fail
* if resources cleanup is required but fails.
*/
@JsonIgnore
@QueryParam("force")
private Boolean force;

/** */
@JsonIgnore private String pipelineId;

public DeletePipelineRequest setForce(Boolean force) {
this.force = force;
return this;
}

public Boolean getForce() {
return force;
}

public DeletePipelineRequest setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
Expand All @@ -26,16 +44,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeletePipelineRequest that = (DeletePipelineRequest) o;
return Objects.equals(pipelineId, that.pipelineId);
return Objects.equals(force, that.force) && Objects.equals(pipelineId, that.pipelineId);
}

@Override
public int hashCode() {
return Objects.hash(pipelineId);
return Objects.hash(force, pipelineId);
}

@Override
public String toString() {
return new ToStringer(DeletePipelineRequest.class).add("pipelineId", pipelineId).toString();
return new ToStringer(DeletePipelineRequest.class)
.add("force", force)
.add("pipelineId", pipelineId)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
@Generated
public class IngestionPipelineDefinition {
/**
* Immutable. The Unity Catalog connection that this ingestion pipeline uses to communicate with
* the source. This is used with connectors for applications like Salesforce, Workday, and so on.
* The Unity Catalog connection that this ingestion pipeline uses to communicate with the source.
* This is used with both connectors for applications like Salesforce, Workday, and so on, and
* also database connectors like Oracle, (connector_type = QUERY_BASED OR connector_type = CDC).
* If connection name corresponds to database connectors like Oracle, and connector_type is not
* provided then connector_type defaults to QUERY_BASED. If connector_type is passed as CDC we use
* Combined Cdc Managed Ingestion pipeline. Under certain conditions, this can be replaced with
* ingestion_gateway_id to change the connector to Cdc Managed Ingestion Pipeline with Gateway
* pipeline.
*/
@JsonProperty("connection_name")
private String connectionName;
Expand All @@ -30,8 +36,10 @@ public class IngestionPipelineDefinition {
private Boolean ingestFromUcForeignCatalog;

/**
* Immutable. Identifier for the gateway that is used by this ingestion pipeline to communicate
* with the source database. This is used with connectors to databases like SQL Server.
* Identifier for the gateway that is used by this ingestion pipeline to communicate with the
* source database. This is used with CDC connectors to databases like SQL Server using a gateway
* pipeline (connector_type = CDC). Under certain conditions, this can be replaced with
* connection_name to change the connector to Combined Cdc Managed Ingestion Pipeline.
*/
@JsonProperty("ingestion_gateway_id")
private String ingestionGatewayId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class Branch {
private Timestamp createTime;

/**
* The resource name of the branch. This field is output-only and constructed by the system.
* Format: `projects/{project_id}/branches/{branch_id}`
* Output only. The full resource path of the branch. Format:
* projects/{project_id}/branches/{branch_id}
*/
@JsonProperty("name")
private String name;
Expand All @@ -25,7 +25,7 @@ public class Branch {
* The project containing this branch (API resource hierarchy). Format: projects/{project_id}
*
* <p>Note: This field indicates where the branch exists in the resource hierarchy. For
* point-in-time branching from another branch, see `spec.source_branch`.
* point-in-time branching from another branch, see `status.source_branch`.
*/
@JsonProperty("parent")
private String parent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.databricks.sdk.support.Generated;

/** The state of the database branch. */
/** The state of the branch. */
@Generated
public enum BranchStatusState {
ARCHIVED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ public class CreateBranchRequest {

/**
* The ID to use for the Branch. This becomes the final component of the branch's resource name.
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase
* letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `staging` → name becomes
* `projects/{project_id}/branches/staging` - Without custom ID: system generates slug → name
* becomes `projects/{project_id}/branches/br-example-name-x1y2z3a4`
* The ID is required and must be 1-63 characters long, start with a lowercase letter, and contain
* only lowercase letters, numbers, and hyphens. For example, `development` becomes
* `projects/my-app/branches/development`.
*/
@JsonIgnore
@QueryParam("branch_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ public class CreateEndpointRequest {

/**
* The ID to use for the Endpoint. This becomes the final component of the endpoint's resource
* name. The ID must be 1-63 characters long, start with a lowercase letter, and contain only
* lowercase letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `primary` →
* name becomes `projects/{project_id}/branches/{branch_id}/endpoints/primary` - Without custom
* ID: system generates slug → name becomes
* `projects/{project_id}/branches/{branch_id}/endpoints/ep-example-name-x1y2z3a4`
* name. The ID is required and must be 1-63 characters long, start with a lowercase letter, and
* contain only lowercase letters, numbers, and hyphens. For example, `primary` becomes
* `projects/my-app/branches/development/endpoints/primary`.
*/
@JsonIgnore
@QueryParam("endpoint_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ public class CreateProjectRequest {

/**
* The ID to use for the Project. This becomes the final component of the project's resource name.
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase
* letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `production` → name
* becomes `projects/production` - Without custom ID: system generates UUID → name becomes
* `projects/a7f89b2c-3d4e-5f6g-7h8i-9j0k1l2m3n4o`
* The ID is required and must be 1-63 characters long, start with a lowercase letter, and contain
* only lowercase letters, numbers, and hyphens. For example, `my-app` becomes `projects/my-app`.
*/
@JsonIgnore
@QueryParam("project_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

@Generated
public class DeleteBranchRequest {
/** The name of the Branch to delete. Format: projects/{project_id}/branches/{branch_id} */
/**
* The full resource path of the branch to delete. Format:
* projects/{project_id}/branches/{branch_id}
*/
@JsonIgnore private String name;

public DeleteBranchRequest setName(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Generated
public class DeleteEndpointRequest {
/**
* The name of the Endpoint to delete. Format:
* The full resource path of the endpoint to delete. Format:
* projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
*/
@JsonIgnore private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Generated
public class DeleteProjectRequest {
/** The name of the Project to delete. Format: projects/{project_id} */
/** The full resource path of the project to delete. Format: projects/{project_id} */
@JsonIgnore private String name;

public DeleteProjectRequest setName(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Generated
public class DeleteRoleRequest {
/**
* The resource name of the postgres role. Format:
* The full resource path of the role to delete. Format:
* projects/{project_id}/branches/{branch_id}/roles/{role_id}
*/
@JsonIgnore private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class Endpoint {
private Timestamp createTime;

/**
* The resource name of the endpoint. This field is output-only and constructed by the system.
* Format: `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`
* Output only. The full resource path of the endpoint. Format:
* projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
*/
@JsonProperty("name")
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@Generated
public class GetBranchRequest {
/**
* The resource name of the branch to retrieve. Format:
* `projects/{project_id}/branches/{branch_id}`
* The full resource path of the branch to retrieve. Format:
* projects/{project_id}/branches/{branch_id}
*/
@JsonIgnore private String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@Generated
public class GetEndpointRequest {
/**
* The resource name of the endpoint to retrieve. Format:
* `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`
* The full resource path of the endpoint to retrieve. Format:
* projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
*/
@JsonIgnore private String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Generated
public class GetProjectRequest {
/** The resource name of the project to retrieve. Format: `projects/{project_id}` */
/** The full resource path of the project to retrieve. Format: projects/{project_id} */
@JsonIgnore private String name;

public GetProjectRequest setName(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Generated
public class GetRoleRequest {
/**
* The name of the Role to retrieve. Format:
* The full resource path of the role to retrieve. Format:
* projects/{project_id}/branches/{branch_id}/roles/{role_id}
*/
@JsonIgnore private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

@Generated
public class ListBranchesResponse {
/** List of database branches in the project. */
/** List of branches in the project. */
@JsonProperty("branches")
private Collection<Branch> branches;

/** Token to request the next page of database branches. */
/** Token to request the next page of branches. */
@JsonProperty("next_page_token")
private String nextPageToken;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

@Generated
public class ListProjectsResponse {
/** Token to request the next page of database projects. */
/** Token to request the next page of projects. */
@JsonProperty("next_page_token")
private String nextPageToken;

/** List of all database projects in the workspace that the user has permission to access. */
/** List of all projects in the workspace that the user has permission to access. */
@JsonProperty("projects")
private Collection<Project> projects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,10 @@
*
* <p>**About resource IDs and names**
*
* <p>Lakebase APIs use hierarchical resource names in API paths to identify resources, such as
* `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`.
*
* <p>When creating a resource, you may optionally provide the final ID component (for example,
* `project_id`, `branch_id`, or `endpoint_id`). If you do not, the system generates an identifier
* and uses it as the ID component.
*
* <p>The `name` field is output-only and represents the full resource path. Note: The term
* *resource name* in this API refers to this full, hierarchical identifier (for example,
* `projects/{project_id}`), not the `display_name` field. The `display_name` is a separate,
* user-visible label shown in the UI.
*
* <p>The `uid` field is a system-generated, immutable identifier intended for internal reference
* and should not be used to address or locate resources.
* <p>Resources are identified by hierarchical resource names like
* `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`. The `name` field on each
* resource contains this full path and is output-only. Note that `name` refers to this resource
* path, not the user-visible `display_name`.
*/
@Generated
public class PostgresAPI {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,10 @@
*
* <p>**About resource IDs and names**
*
* <p>Lakebase APIs use hierarchical resource names in API paths to identify resources, such as
* `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`.
*
* <p>When creating a resource, you may optionally provide the final ID component (for example,
* `project_id`, `branch_id`, or `endpoint_id`). If you do not, the system generates an identifier
* and uses it as the ID component.
*
* <p>The `name` field is output-only and represents the full resource path. Note: The term
* *resource name* in this API refers to this full, hierarchical identifier (for example,
* `projects/{project_id}`), not the `display_name` field. The `display_name` is a separate,
* user-visible label shown in the UI.
*
* <p>The `uid` field is a system-generated, immutable identifier intended for internal reference
* and should not be used to address or locate resources.
* <p>Resources are identified by hierarchical resource names like
* `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`. The `name` field on each
* resource contains this full path and is output-only. Note that `name` refers to this resource
* path, not the user-visible `display_name`.
*
* <p>This is the high-level interface, that contains generated methods.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ public class Project {
@JsonProperty("create_time")
private Timestamp createTime;

/**
* The resource name of the project. This field is output-only and constructed by the system.
* Format: `projects/{project_id}`
*/
/** Output only. The full resource path of the project. Format: projects/{project_id} */
@JsonProperty("name")
private String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Role {
private Timestamp createTime;

/**
* The resource name of the role. Format:
* Output only. The full resource path of the role. Format:
* projects/{project_id}/branches/{branch_id}/roles/{role_id}
*/
@JsonProperty("name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class UpdateBranchRequest {
private Branch branch;

/**
* The resource name of the branch. This field is output-only and constructed by the system.
* Format: `projects/{project_id}/branches/{branch_id}`
* Output only. The full resource path of the branch. Format:
* projects/{project_id}/branches/{branch_id}
*/
@JsonIgnore private String name;

Expand Down
Loading
Loading