projects

package
v1.12.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package projects provides primitives to interact with the openapi HTTP API.

Code generated by github.com/do87/oapi-codegen version v0.5.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateRequest

func NewCreateRequest(ctx context.Context, server string, body CreateJSONRequestBody) (*http.Request, error)

NewCreateRequest calls the generic Create builder with application/json body

func NewCreateRequestWithBody

func NewCreateRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRequestWithBody generates requests for Create with any type of body

func NewDeleteProjectContainerIDLabelsRequest

func NewDeleteProjectContainerIDLabelsRequest(ctx context.Context, server string, containerId string, params *DeleteProjectContainerIDLabelsParams) (*http.Request, error)

NewDeleteProjectContainerIDLabelsRequest generates requests for DeleteProjectContainerIDLabels

func NewDeleteRequest

func NewDeleteRequest(ctx context.Context, server string, containerId string) (*http.Request, error)

NewDeleteRequest generates requests for Delete

func NewGetRequest

func NewGetRequest(ctx context.Context, server string, containerId string, params *GetParams) (*http.Request, error)

NewGetRequest generates requests for Get

func NewListRequest

func NewListRequest(ctx context.Context, server string, params *ListParams) (*http.Request, error)

NewListRequest generates requests for List

func NewUpdateRequest

func NewUpdateRequest(ctx context.Context, server string, containerId string, body UpdateJSONRequestBody) (*http.Request, error)

NewUpdateRequest calls the generic Update builder with application/json body

func NewUpdateRequestWithBody

func NewUpdateRequestWithBody(ctx context.Context, server string, containerId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRequestWithBody generates requests for Update with any type of body

func ValidateRole

func ValidateRole(role ProjectMemberRole) error

ValidateRole validates a role

Types

type AllProjectsResponse

type AllProjectsResponse struct {
	Items []ProjectResponse `json:"items"`

	// Limit The maximum number of projects to return in the response. If not present, an appropriate default will be used.
	Limit LimitSchema `json:"limit"`

	// Offset The offset of the first item in the collection to return.
	Offset OffsetSchema `json:"offset"`
}

AllProjectsResponse defines model for AllProjectsResponse.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client common.Client
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, httpClient common.Client) *Client

Creates a new Client, with reasonable defaults

func (*Client) Create

func (c *Client) Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWithBody

func (c *Client) CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProjectContainerIDLabels

func (c *Client) DeleteProjectContainerIDLabels(ctx context.Context, containerId string, params *DeleteProjectContainerIDLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, containerId string, params *GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) List

func (c *Client) List(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, containerId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWithBody

func (c *Client) UpdateWithBody(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// List request
	List(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Create request with any body
	CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Delete request
	Delete(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Get request
	Get(ctx context.Context, containerId string, params *GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Update request with any body
	UpdateWithBody(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Update(ctx context.Context, containerId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProjectContainerIDLabels request
	DeleteProjectContainerIDLabels(ctx context.Context, containerId string, params *DeleteProjectContainerIDLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, httpClient common.Client) *ClientWithResponses

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateWithBodyWithResponse

func (c *ClientWithResponses) CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

CreateWithBodyWithResponse request with arbitrary body returning *CreateResponse

func (*ClientWithResponses) CreateWithResponse

func (c *ClientWithResponses) CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

func (*ClientWithResponses) DeleteProjectContainerIDLabelsWithResponse

func (c *ClientWithResponses) DeleteProjectContainerIDLabelsWithResponse(ctx context.Context, containerId string, params *DeleteProjectContainerIDLabelsParams, reqEditors ...RequestEditorFn) (*DeleteProjectContainerIDLabelsResponse, error)

DeleteProjectContainerIDLabelsWithResponse request returning *DeleteProjectContainerIDLabelsResponse

func (*ClientWithResponses) DeleteWithResponse

func (c *ClientWithResponses) DeleteWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

DeleteWithResponse request returning *DeleteResponse

func (*ClientWithResponses) GetWithResponse

func (c *ClientWithResponses) GetWithResponse(ctx context.Context, containerId string, params *GetParams, reqEditors ...RequestEditorFn) (*GetResponse, error)

GetWithResponse request returning *GetResponse

func (*ClientWithResponses) ListWithResponse

func (c *ClientWithResponses) ListWithResponse(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*ListResponse, error)

ListWithResponse request returning *ListResponse

func (*ClientWithResponses) ParseCreateResponse

func (c *ClientWithResponses) ParseCreateResponse(rsp *http.Response) (*CreateResponse, error)

ParseCreateResponse parses an HTTP response from a CreateWithResponse call

func (*ClientWithResponses) ParseDeleteProjectContainerIDLabelsResponse

func (c *ClientWithResponses) ParseDeleteProjectContainerIDLabelsResponse(rsp *http.Response) (*DeleteProjectContainerIDLabelsResponse, error)

ParseDeleteProjectContainerIDLabelsResponse parses an HTTP response from a DeleteProjectContainerIDLabelsWithResponse call

func (*ClientWithResponses) ParseDeleteResponse

func (c *ClientWithResponses) ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error)

ParseDeleteResponse parses an HTTP response from a DeleteWithResponse call

func (*ClientWithResponses) ParseGetResponse

func (c *ClientWithResponses) ParseGetResponse(rsp *http.Response) (*GetResponse, error)

ParseGetResponse parses an HTTP response from a GetWithResponse call

func (*ClientWithResponses) ParseListResponse

func (c *ClientWithResponses) ParseListResponse(rsp *http.Response) (*ListResponse, error)

ParseListResponse parses an HTTP response from a ListWithResponse call

func (*ClientWithResponses) ParseUpdateResponse

func (c *ClientWithResponses) ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error)

ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call

func (*ClientWithResponses) UpdateWithBodyWithResponse

func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse

func (*ClientWithResponses) UpdateWithResponse

func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, containerId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// List request
	ListWithResponse(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*ListResponse, error)

	// Create request with any body
	CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	// Delete request
	DeleteWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

	// Get request
	GetWithResponse(ctx context.Context, containerId string, params *GetParams, reqEditors ...RequestEditorFn) (*GetResponse, error)

	// Update request with any body
	UpdateWithBodyWithResponse(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	UpdateWithResponse(ctx context.Context, containerId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	// DeleteProjectContainerIDLabels request
	DeleteProjectContainerIDLabelsWithResponse(ctx context.Context, containerId string, params *DeleteProjectContainerIDLabelsParams, reqEditors ...RequestEditorFn) (*DeleteProjectContainerIDLabelsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateJSONRequestBody

type CreateJSONRequestBody = ProjectRequestBody

CreateJSONRequestBody defines body for Create for application/json ContentType.

type CreateResponse

type CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ProjectResponse
	JSON400      *ErrorResponse
	JSON403      *ErrorResponse
	JSON409      *ErrorResponse
	HasError     error // Aggregated error
}

func (CreateResponse) Status

func (r CreateResponse) Status() string

Status returns HTTPResponse.Status

func (CreateResponse) StatusCode

func (r CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

func (CreateResponse) WaitHandler

func (r CreateResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, containerID string) *wait.Handler

type CreationTimeStart

type CreationTimeStart = string

CreationTimeStart defines model for creation-time-start.

type DeleteProjectContainerIDLabelsParams

type DeleteProjectContainerIDLabelsParams struct {
	// Keys Label name.
	Keys *[]interface{} `form:"keys,omitempty" json:"keys,omitempty"`
}

DeleteProjectContainerIDLabelsParams defines parameters for DeleteProjectContainerIDLabels.

type DeleteProjectContainerIDLabelsResponse

type DeleteProjectContainerIDLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *ErrorResponse
	HasError     error // Aggregated error
}

func (DeleteProjectContainerIDLabelsResponse) Status

Status returns HTTPResponse.Status

func (DeleteProjectContainerIDLabelsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteResponse

type DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *ErrorResponse
	HasError     error // Aggregated error
}

func (DeleteResponse) Status

func (r DeleteResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteResponse) StatusCode

func (r DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

func (DeleteResponse) WaitHandler

func (r DeleteResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, containerID string) *wait.Handler

type ErrorResponse

type ErrorResponse struct {
	// Error The reason phrase of the status code.
	Error string `json:"error"`

	// Message Description of the error.
	Message string `json:"message"`

	// Path Path which was called.
	Path string `json:"path"`

	// Status Http Status Code.
	Status float32 `json:"status"`

	// TimeStamp Timestamp at which the error occurred.
	TimeStamp string `json:"timeStamp"`
}

ErrorResponse defines model for ErrorResponse.

type GetParams

type GetParams struct {
	IncludeParents *bool `form:"includeParents,omitempty" json:"includeParents,omitempty"`
}

GetParams defines parameters for Get.

type GetResponse

type GetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectResponseWithParents
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	HasError     error // Aggregated error
}

func (GetResponse) Status

func (r GetResponse) Status() string

Status returns HTTPResponse.Status

func (GetResponse) StatusCode

func (r GetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LifecycleState

type LifecycleState string

LifecycleState Lifecycle state of the resource container.

| LIFECYCLE STATE | DESCRIPTION | |----------|--------------------| | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. | | ACTIVE | Resource container can be fully used. | | INACTIVE | Resource container usage has been disabled. | | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. |

const (
	ACTIVE   LifecycleState = "ACTIVE"
	CREATING LifecycleState = "CREATING"
	DELETING LifecycleState = "DELETING"
	INACTIVE LifecycleState = "INACTIVE"
)

Defines values for LifecycleState.

type Limit

type Limit = float32

Limit defines model for limit.

type LimitSchema

type LimitSchema = float32

LimitSchema The maximum number of projects to return in the response. If not present, an appropriate default will be used.

type ListParams

type ListParams struct {
	// ContainerParentID Container ID from parent container.
	ContainerParentID *string `form:"containerParentID,omitempty" json:"containerParentID,omitempty"`

	// ContainerIDs List of container IDs
	ContainerIDs *[]interface{} `form:"containerIDs,omitempty" json:"containerIDs,omitempty"`

	// Member E-Mail address of the user for whom the visible resource containers should be filtered.
	Member *Member `form:"member,omitempty" json:"member,omitempty"`

	// Offset The offset of the first item in the collection to return.
	Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`

	// Limit The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// CreationTimeStart A timestamp to specifiy the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
	CreationTimeStart *CreationTimeStart `form:"creation-time-start,omitempty" json:"creation-time-start,omitempty"`
}

ListParams defines parameters for List.

type ListResponse

type ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AllProjectsResponse
	JSON400      *ErrorResponse
	JSON403      *ErrorResponse
	JSON409      *ErrorResponse
	HasError     error // Aggregated error
}

func (ListResponse) Status

func (r ListResponse) Status() string

Status returns HTTPResponse.Status

func (ListResponse) StatusCode

func (r ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Member

type Member = string

Member defines model for member.

type Offset

type Offset = float32

Offset defines model for offset.

type OffsetSchema

type OffsetSchema = float32

OffsetSchema The offset of the first item in the collection to return.

type Parent

type Parent struct {
	// ContainerId User-friendly identifier of either organization or folder (will replace id).
	ContainerID string `json:"containerId"`

	// Id Legacy identifier of either organization or folder (for backward compatibility). Field name according to parent object of v1.
	ID openapi_types.UUID `json:"id"`

	// Type Container type of parent container.
	Type ParentType `json:"type"`
}

Parent Parent container.

type ParentList

type ParentList = []struct {
	// ContainerId User-friendly identifier of either organization or folder (will replace id).
	ContainerID string `json:"containerId"`

	// ContainerParentId User-friendly parent identifier of either organization or folder (will replace parentId).
	ContainerParentID string `json:"containerParentId"`

	// Id Legacy identifier (for backward compatibility).
	ID openapi_types.UUID `json:"id"`

	// Name Parent container name.
	Name string `json:"name"`

	// ParentId Legacy identifier of the parent resource container (for backward compatibility).
	ParentID openapi_types.UUID `json:"parentId"`

	// Type Parent container type.
	Type ParentListType `json:"type"`
}

ParentList defines model for ParentList.

type ParentListType

type ParentListType string

ParentListType Parent container type.

const (
	PARENT_LIST_TYPE_FOLDER       ParentListType = "FOLDER"
	PARENT_LIST_TYPE_ORGANIZATION ParentListType = "ORGANIZATION"
)

Defines values for ParentListType.

type ParentType

type ParentType string

ParentType Container type of parent container.

const (
	PARENT_TYPE_FOLDER       ParentType = "FOLDER"
	PARENT_TYPE_ORGANIZATION ParentType = "ORGANIZATION"
)

Defines values for ParentType.

type PatchFolderOrProject

type PatchFolderOrProject struct {
	// ContainerParentId New user-friendly parent Id for the resource container.
	ContainerParentID *string `json:"containerParentId,omitempty"`

	// Labels Labels are key-value string pairs which can be attached to a resource container. Some labels may be enforced via policies.
	// - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	// - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	Labels *ResourceLabels `json:"labels,omitempty"`

	// Name New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9][ a-zA-ZäüöÄÜÖß0-9_+&-]{1,39}$`.
	Name *string `json:"name,omitempty"`
}

PatchFolderOrProject defines model for PatchFolderOrProject.

type ProjectMember

type ProjectMember struct {
	Role    *ProjectMemberRole `json:"role,omitempty"`
	Subject *string            `json:"subject,omitempty"`
}

ProjectMember defines model for ProjectMember.

type ProjectMemberRole

type ProjectMemberRole string

ProjectMemberRole defines model for ProjectMember.Role.

const (
	PROJECT_ADMIN   ProjectMemberRole = "project.admin"
	PROJECT_AUDITOR ProjectMemberRole = "project.auditor"
	PROJECT_MEMBER  ProjectMemberRole = "project.member"
	PROJECT_OWNER   ProjectMemberRole = "project.owner"
)

Defines values for ProjectMemberRole.

type ProjectRequestBody

type ProjectRequestBody struct {
	// ContainerParentId User-friendly identifier of the parent resource container.
	ContainerParentID string `json:"containerParentId"`

	// Labels Labels are key-value string pairs which can be attached to a resource container. Some labels may be enforced via policies.
	// - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	// - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	Labels *ResourceLabels `json:"labels,omitempty"`

	// Members The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account.
	Members []ProjectMember `json:"members"`

	// Name Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9][ a-zA-ZäüöÄÜÖß0-9_+&-]{1,39}$`.
	Name string `json:"name"`
}

ProjectRequestBody defines model for ProjectRequestBody.

type ProjectResponse

type ProjectResponse struct {
	// ContainerId Globally unique, user-friendly identifier. Will replace old, legacy identifier "projectId".
	ContainerID string `json:"containerId"`

	// CreationTime Timestamp at which the project was created.
	CreationTime string `json:"creationTime"`

	// Labels Labels are key-value string pairs which can be attached to a resource container. Some labels may be enforced via policies.
	// - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	// - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	Labels *ResourceLabels `json:"labels,omitempty"`

	// LifecycleState Lifecycle state of the resource container.
	//
	// | LIFECYCLE STATE | DESCRIPTION |
	// |----------|--------------------|
	// | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. |
	// | ACTIVE   | Resource container can be fully used. |
	// | INACTIVE | Resource container usage has been disabled. |
	// | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. |
	LifecycleState LifecycleState `json:"lifecycleState"`

	// Name Project name.
	Name string `json:"name"`

	// Parent Parent container.
	Parent Parent `json:"parent"`

	// ProjectId Globally unique, legacy project identifier (for backward compatibility)
	ProjectID openapi_types.UUID `json:"projectId"`

	// UpdateTime Timestamp at which the project was last modified.
	UpdateTime string `json:"updateTime"`
}

ProjectResponse defines model for ProjectResponse.

type ProjectResponseWithParents

type ProjectResponseWithParents struct {
	// ContainerId Globally unique, user-friendly identifier. Will replace old, legacy identifier "projectId".
	ContainerID string `json:"containerId"`

	// CreationTime Timestamp at which the project was created.
	CreationTime string `json:"creationTime"`

	// Labels Labels are key-value string pairs which can be attached to a resource container. Some labels may be enforced via policies.
	// - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	// - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
	Labels *ResourceLabels `json:"labels,omitempty"`

	// LifecycleState Lifecycle state of the resource container.
	//
	// | LIFECYCLE STATE | DESCRIPTION |
	// |----------|--------------------|
	// | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. |
	// | ACTIVE   | Resource container can be fully used. |
	// | INACTIVE | Resource container usage has been disabled. |
	// | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. |
	LifecycleState LifecycleState `json:"lifecycleState"`

	// Name Project name.
	Name string `json:"name"`

	// Parent Parent container.
	Parent  Parent      `json:"parent"`
	Parents *ParentList `json:"parents,omitempty"`

	// ProjectId Globally unique, legacy project identifier (for backward compatibility)
	ProjectID openapi_types.UUID `json:"projectId"`

	// UpdateTime Timestamp at which the project was last modified.
	UpdateTime string `json:"updateTime"`
}

ProjectResponseWithParents defines model for ProjectResponseWithParents.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResourceLabels

type ResourceLabels map[string]string

ResourceLabels Labels are key-value string pairs which can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.

type UpdateJSONRequestBody

type UpdateJSONRequestBody = PatchFolderOrProject

UpdateJSONRequestBody defines body for Update for application/json ContentType.

type UpdateResponse

type UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	HasError     error // Aggregated error
}

func (UpdateResponse) Status

func (r UpdateResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateResponse) StatusCode

func (r UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL