// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package operations

import (
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared"
	"net/http"
)

type UpdateWorkspaceRequest struct {
	WorkspaceID            string                        `pathParam:"style=simple,explode=false,name=workspaceId"`
	WorkspaceUpdateRequest shared.WorkspaceUpdateRequest `request:"mediaType=application/json"`
}

func (o *UpdateWorkspaceRequest) GetWorkspaceID() string {
	if o == nil {
		return ""
	}
	return o.WorkspaceID
}

func (o *UpdateWorkspaceRequest) GetWorkspaceUpdateRequest() shared.WorkspaceUpdateRequest {
	if o == nil {
		return shared.WorkspaceUpdateRequest{}
	}
	return o.WorkspaceUpdateRequest
}

type UpdateWorkspaceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Successful operation
	WorkspaceResponse *shared.WorkspaceResponse
}

func (o *UpdateWorkspaceResponse) GetContentType() string {
	if o == nil {
		return ""
	}
	return o.ContentType
}

func (o *UpdateWorkspaceResponse) GetStatusCode() int {
	if o == nil {
		return 0
	}
	return o.StatusCode
}

func (o *UpdateWorkspaceResponse) GetRawResponse() *http.Response {
	if o == nil {
		return nil
	}
	return o.RawResponse
}

func (o *UpdateWorkspaceResponse) GetWorkspaceResponse() *shared.WorkspaceResponse {
	if o == nil {
		return nil
	}
	return o.WorkspaceResponse
}
