cdtoolchainv2

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package cdtoolchainv2 : Operations and models for the CdToolchainV2 service

Index

Constants

View Source
const (
	CreateToolchainEventOptionsContentTypeApplicationJSONConst = "application/json"
	CreateToolchainEventOptionsContentTypeNoneConst            = "none"
	CreateToolchainEventOptionsContentTypeTextPlainConst       = "text/plain"
)

Constants associated with the CreateToolchainEventOptions.ContentType property. The content type of the attached data. Supported values are `text/plain`, `application/json`, and `none`.

View Source
const (
	ToolModelStateConfiguredConst    = "configured"
	ToolModelStateConfiguringConst   = "configuring"
	ToolModelStateMisconfiguredConst = "misconfigured"
	ToolModelStateUnconfiguredConst  = "unconfigured"
)

Constants associated with the ToolModel.State property. Current configuration state of the tool.

View Source
const (
	ToolchainToolStateConfiguredConst    = "configured"
	ToolchainToolStateConfiguringConst   = "configuring"
	ToolchainToolStateMisconfiguredConst = "misconfigured"
	ToolchainToolStateUnconfiguredConst  = "unconfigured"
)

Constants associated with the ToolchainTool.State property. Current configuration state of the tool.

View Source
const (
	ToolchainToolPatchStateConfiguredConst    = "configured"
	ToolchainToolPatchStateConfiguringConst   = "configuring"
	ToolchainToolPatchStateMisconfiguredConst = "misconfigured"
	ToolchainToolPatchStateUnconfiguredConst  = "unconfigured"
)

Constants associated with the ToolchainToolPatch.State property. Current configuration state of the tool.

View Source
const (
	ToolchainToolPostStateConfiguredConst    = "configured"
	ToolchainToolPostStateConfiguringConst   = "configuring"
	ToolchainToolPostStateMisconfiguredConst = "misconfigured"
	ToolchainToolPostStateUnconfiguredConst  = "unconfigured"
)

Constants associated with the ToolchainToolPost.State property. Current configuration state of the tool.

View Source
const DefaultServiceName = "cd_toolchain"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.us-south.devops.cloud.ibm.com/toolchain/v2"

DefaultServiceURL is the default URL to make service requests to.

Variables

This section is empty.

Functions

func GetServiceURLForRegion

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalToolModel added in v0.1.2

func UnmarshalToolModel(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolModel unmarshals an instance of ToolModel from the specified map of raw messages.

func UnmarshalToolModelReferent added in v0.1.2

func UnmarshalToolModelReferent(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolModelReferent unmarshals an instance of ToolModelReferent from the specified map of raw messages.

func UnmarshalToolchain

func UnmarshalToolchain(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchain unmarshals an instance of Toolchain from the specified map of raw messages.

func UnmarshalToolchainCollection added in v0.1.2

func UnmarshalToolchainCollection(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainCollection unmarshals an instance of ToolchainCollection from the specified map of raw messages.

func UnmarshalToolchainCollectionFirst added in v0.1.2

func UnmarshalToolchainCollectionFirst(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainCollectionFirst unmarshals an instance of ToolchainCollectionFirst from the specified map of raw messages.

func UnmarshalToolchainCollectionLast added in v0.1.2

func UnmarshalToolchainCollectionLast(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainCollectionLast unmarshals an instance of ToolchainCollectionLast from the specified map of raw messages.

func UnmarshalToolchainCollectionNext added in v0.1.2

func UnmarshalToolchainCollectionNext(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainCollectionNext unmarshals an instance of ToolchainCollectionNext from the specified map of raw messages.

func UnmarshalToolchainCollectionPrevious added in v0.1.2

func UnmarshalToolchainCollectionPrevious(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainCollectionPrevious unmarshals an instance of ToolchainCollectionPrevious from the specified map of raw messages.

func UnmarshalToolchainEventPost added in v1.4.0

func UnmarshalToolchainEventPost(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainEventPost unmarshals an instance of ToolchainEventPost from the specified map of raw messages.

func UnmarshalToolchainEventPrototypeData added in v1.4.0

func UnmarshalToolchainEventPrototypeData(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainEventPrototypeData unmarshals an instance of ToolchainEventPrototypeData from the specified map of raw messages.

func UnmarshalToolchainEventPrototypeDataApplicationJSON added in v1.4.0

func UnmarshalToolchainEventPrototypeDataApplicationJSON(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainEventPrototypeDataApplicationJSON unmarshals an instance of ToolchainEventPrototypeDataApplicationJSON from the specified map of raw messages.

func UnmarshalToolchainModel added in v0.1.2

func UnmarshalToolchainModel(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainModel unmarshals an instance of ToolchainModel from the specified map of raw messages.

func UnmarshalToolchainPatch added in v0.1.2

func UnmarshalToolchainPatch(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainPatch unmarshals an instance of ToolchainPatch from the specified map of raw messages.

func UnmarshalToolchainPost added in v0.1.2

func UnmarshalToolchainPost(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainPost unmarshals an instance of ToolchainPost from the specified map of raw messages.

func UnmarshalToolchainPrototypePatch added in v0.1.2

func UnmarshalToolchainPrototypePatch(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainPrototypePatch unmarshals an instance of ToolchainPrototypePatch from the specified map of raw messages.

func UnmarshalToolchainTool added in v0.1.2

func UnmarshalToolchainTool(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainTool unmarshals an instance of ToolchainTool from the specified map of raw messages.

func UnmarshalToolchainToolCollection added in v0.1.2

func UnmarshalToolchainToolCollection(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolCollection unmarshals an instance of ToolchainToolCollection from the specified map of raw messages.

func UnmarshalToolchainToolCollectionFirst added in v0.1.2

func UnmarshalToolchainToolCollectionFirst(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolCollectionFirst unmarshals an instance of ToolchainToolCollectionFirst from the specified map of raw messages.

func UnmarshalToolchainToolCollectionLast added in v0.1.2

func UnmarshalToolchainToolCollectionLast(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolCollectionLast unmarshals an instance of ToolchainToolCollectionLast from the specified map of raw messages.

func UnmarshalToolchainToolCollectionNext added in v0.1.2

func UnmarshalToolchainToolCollectionNext(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolCollectionNext unmarshals an instance of ToolchainToolCollectionNext from the specified map of raw messages.

func UnmarshalToolchainToolCollectionPrevious added in v0.1.2

func UnmarshalToolchainToolCollectionPrevious(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolCollectionPrevious unmarshals an instance of ToolchainToolCollectionPrevious from the specified map of raw messages.

func UnmarshalToolchainToolPatch added in v0.1.2

func UnmarshalToolchainToolPatch(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolPatch unmarshals an instance of ToolchainToolPatch from the specified map of raw messages.

func UnmarshalToolchainToolPost added in v0.1.2

func UnmarshalToolchainToolPost(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolPost unmarshals an instance of ToolchainToolPost from the specified map of raw messages.

func UnmarshalToolchainToolPrototypePatch added in v0.1.2

func UnmarshalToolchainToolPrototypePatch(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalToolchainToolPrototypePatch unmarshals an instance of ToolchainToolPrototypePatch from the specified map of raw messages.

Types

type CdToolchainV2

type CdToolchainV2 struct {
	Service *core.BaseService
}

CdToolchainV2 : This swagger document describes the options and endpoints of the Toolchain API.<br><br> All calls require an <strong>Authorization</strong> HTTP header to be set with a bearer token, which can be generated using the <a href="https://cloud.ibm.com/apidocs/iam-identity-token-api">Identity and Access Management (IAM) API</a>.<br><br>Note that all resources must have a corresponding <b>resource_group_id</b> to use the API, resources within a Cloud Foundry organization cannot be accessed or modified using the API.

API Version: 2.0.0

func NewCdToolchainV2

func NewCdToolchainV2(options *CdToolchainV2Options) (service *CdToolchainV2, err error)

NewCdToolchainV2 : constructs an instance of CdToolchainV2 with passed in options.

func NewCdToolchainV2UsingExternalConfig

func NewCdToolchainV2UsingExternalConfig(options *CdToolchainV2Options) (cdToolchain *CdToolchainV2, err error)

NewCdToolchainV2UsingExternalConfig : constructs an instance of CdToolchainV2 with passed in options and external configuration.

func (*CdToolchainV2) Clone

func (cdToolchain *CdToolchainV2) Clone() *CdToolchainV2

Clone makes a copy of "cdToolchain" suitable for processing requests.

func (*CdToolchainV2) CreateTool added in v0.0.3

func (cdToolchain *CdToolchainV2) CreateTool(createToolOptions *CreateToolOptions) (result *ToolchainToolPost, response *core.DetailedResponse, err error)

CreateTool : Create a tool Provisions a new tool based off the provided parameters in the body and binds it to the specified toolchain.

func (*CdToolchainV2) CreateToolWithContext added in v0.0.3

func (cdToolchain *CdToolchainV2) CreateToolWithContext(ctx context.Context, createToolOptions *CreateToolOptions) (result *ToolchainToolPost, response *core.DetailedResponse, err error)

CreateToolWithContext is an alternate form of the CreateTool method which supports a Context parameter

func (*CdToolchainV2) CreateToolchain

func (cdToolchain *CdToolchainV2) CreateToolchain(createToolchainOptions *CreateToolchainOptions) (result *ToolchainPost, response *core.DetailedResponse, err error)

CreateToolchain : Create a toolchain Creates a new toolchain based off the provided parameters in the body.

func (*CdToolchainV2) CreateToolchainEvent added in v1.4.0

func (cdToolchain *CdToolchainV2) CreateToolchainEvent(createToolchainEventOptions *CreateToolchainEventOptions) (result *ToolchainEventPost, response *core.DetailedResponse, err error)

CreateToolchainEvent : Create a toolchain event Creates and sends a custom event to Event Notifications. This requires an Event Notification tool. This method is BETA and subject to change.

func (*CdToolchainV2) CreateToolchainEventWithContext added in v1.4.0

func (cdToolchain *CdToolchainV2) CreateToolchainEventWithContext(ctx context.Context, createToolchainEventOptions *CreateToolchainEventOptions) (result *ToolchainEventPost, response *core.DetailedResponse, err error)

CreateToolchainEventWithContext is an alternate form of the CreateToolchainEvent method which supports a Context parameter

func (*CdToolchainV2) CreateToolchainWithContext

func (cdToolchain *CdToolchainV2) CreateToolchainWithContext(ctx context.Context, createToolchainOptions *CreateToolchainOptions) (result *ToolchainPost, response *core.DetailedResponse, err error)

CreateToolchainWithContext is an alternate form of the CreateToolchain method which supports a Context parameter

func (*CdToolchainV2) DeleteTool added in v0.0.3

func (cdToolchain *CdToolchainV2) DeleteTool(deleteToolOptions *DeleteToolOptions) (response *core.DetailedResponse, err error)

DeleteTool : Delete a tool Delete the tool with the specified ID.

func (*CdToolchainV2) DeleteToolWithContext added in v0.0.3

func (cdToolchain *CdToolchainV2) DeleteToolWithContext(ctx context.Context, deleteToolOptions *DeleteToolOptions) (response *core.DetailedResponse, err error)

DeleteToolWithContext is an alternate form of the DeleteTool method which supports a Context parameter

func (*CdToolchainV2) DeleteToolchain

func (cdToolchain *CdToolchainV2) DeleteToolchain(deleteToolchainOptions *DeleteToolchainOptions) (response *core.DetailedResponse, err error)

DeleteToolchain : Delete a toolchain Delete the toolchain with the specified ID.

func (*CdToolchainV2) DeleteToolchainWithContext

func (cdToolchain *CdToolchainV2) DeleteToolchainWithContext(ctx context.Context, deleteToolchainOptions *DeleteToolchainOptions) (response *core.DetailedResponse, err error)

DeleteToolchainWithContext is an alternate form of the DeleteToolchain method which supports a Context parameter

func (*CdToolchainV2) DisableRetries

func (cdToolchain *CdToolchainV2) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*CdToolchainV2) EnableRetries

func (cdToolchain *CdToolchainV2) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*CdToolchainV2) GetEnableGzipCompression

func (cdToolchain *CdToolchainV2) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*CdToolchainV2) GetServiceURL

func (cdToolchain *CdToolchainV2) GetServiceURL() string

GetServiceURL returns the service URL

func (*CdToolchainV2) GetToolByID added in v0.0.3

func (cdToolchain *CdToolchainV2) GetToolByID(getToolByIDOptions *GetToolByIDOptions) (result *ToolchainTool, response *core.DetailedResponse, err error)

GetToolByID : Get a tool Returns a tool that is bound to the provided toolchain.

func (*CdToolchainV2) GetToolByIDWithContext added in v0.0.3

func (cdToolchain *CdToolchainV2) GetToolByIDWithContext(ctx context.Context, getToolByIDOptions *GetToolByIDOptions) (result *ToolchainTool, response *core.DetailedResponse, err error)

GetToolByIDWithContext is an alternate form of the GetToolByID method which supports a Context parameter

func (*CdToolchainV2) GetToolchainByID

func (cdToolchain *CdToolchainV2) GetToolchainByID(getToolchainByIDOptions *GetToolchainByIDOptions) (result *Toolchain, response *core.DetailedResponse, err error)

GetToolchainByID : Get a toolchain Returns data for a single toolchain identified by its ID.

func (*CdToolchainV2) GetToolchainByIDWithContext

func (cdToolchain *CdToolchainV2) GetToolchainByIDWithContext(ctx context.Context, getToolchainByIDOptions *GetToolchainByIDOptions) (result *Toolchain, response *core.DetailedResponse, err error)

GetToolchainByIDWithContext is an alternate form of the GetToolchainByID method which supports a Context parameter

func (*CdToolchainV2) ListToolchains

func (cdToolchain *CdToolchainV2) ListToolchains(listToolchainsOptions *ListToolchainsOptions) (result *ToolchainCollection, response *core.DetailedResponse, err error)

ListToolchains : Get a list of toolchains Returns a list of toolchains that the caller is authorized to access and that meets the provided query parameters.

func (*CdToolchainV2) ListToolchainsWithContext

func (cdToolchain *CdToolchainV2) ListToolchainsWithContext(ctx context.Context, listToolchainsOptions *ListToolchainsOptions) (result *ToolchainCollection, response *core.DetailedResponse, err error)

ListToolchainsWithContext is an alternate form of the ListToolchains method which supports a Context parameter

func (*CdToolchainV2) ListTools added in v0.0.3

func (cdToolchain *CdToolchainV2) ListTools(listToolsOptions *ListToolsOptions) (result *ToolchainToolCollection, response *core.DetailedResponse, err error)

ListTools : Get a list of tools bound to a toolchain Returns a list of tools bound to a toolchain that the caller is authorized to access and that meet the provided query parameters.

func (*CdToolchainV2) ListToolsWithContext added in v0.0.3

func (cdToolchain *CdToolchainV2) ListToolsWithContext(ctx context.Context, listToolsOptions *ListToolsOptions) (result *ToolchainToolCollection, response *core.DetailedResponse, err error)

ListToolsWithContext is an alternate form of the ListTools method which supports a Context parameter

func (*CdToolchainV2) NewCreateToolOptions added in v0.0.3

func (*CdToolchainV2) NewCreateToolOptions(toolchainID string, toolTypeID string) *CreateToolOptions

NewCreateToolOptions : Instantiate CreateToolOptions

func (*CdToolchainV2) NewCreateToolchainEventOptions added in v1.4.0

func (*CdToolchainV2) NewCreateToolchainEventOptions(toolchainID string, title string, description string, contentType string) *CreateToolchainEventOptions

NewCreateToolchainEventOptions : Instantiate CreateToolchainEventOptions

func (*CdToolchainV2) NewCreateToolchainOptions

func (*CdToolchainV2) NewCreateToolchainOptions(name string, resourceGroupID string) *CreateToolchainOptions

NewCreateToolchainOptions : Instantiate CreateToolchainOptions

func (*CdToolchainV2) NewDeleteToolOptions added in v0.0.3

func (*CdToolchainV2) NewDeleteToolOptions(toolchainID string, toolID string) *DeleteToolOptions

NewDeleteToolOptions : Instantiate DeleteToolOptions

func (*CdToolchainV2) NewDeleteToolchainOptions

func (*CdToolchainV2) NewDeleteToolchainOptions(toolchainID string) *DeleteToolchainOptions

NewDeleteToolchainOptions : Instantiate DeleteToolchainOptions

func (*CdToolchainV2) NewGetToolByIDOptions added in v0.0.3

func (*CdToolchainV2) NewGetToolByIDOptions(toolchainID string, toolID string) *GetToolByIDOptions

NewGetToolByIDOptions : Instantiate GetToolByIDOptions

func (*CdToolchainV2) NewGetToolchainByIDOptions

func (*CdToolchainV2) NewGetToolchainByIDOptions(toolchainID string) *GetToolchainByIDOptions

NewGetToolchainByIDOptions : Instantiate GetToolchainByIDOptions

func (*CdToolchainV2) NewListToolchainsOptions

func (*CdToolchainV2) NewListToolchainsOptions(resourceGroupID string) *ListToolchainsOptions

NewListToolchainsOptions : Instantiate ListToolchainsOptions

func (*CdToolchainV2) NewListToolsOptions added in v0.0.3

func (*CdToolchainV2) NewListToolsOptions(toolchainID string) *ListToolsOptions

NewListToolsOptions : Instantiate ListToolsOptions

func (*CdToolchainV2) NewToolchainEventPrototypeDataApplicationJSON added in v1.4.0

func (*CdToolchainV2) NewToolchainEventPrototypeDataApplicationJSON(content map[string]interface{}) (_model *ToolchainEventPrototypeDataApplicationJSON, err error)

NewToolchainEventPrototypeDataApplicationJSON : Instantiate ToolchainEventPrototypeDataApplicationJSON (Generic Model Constructor)

func (*CdToolchainV2) NewToolchainsPager added in v0.1.2

func (cdToolchain *CdToolchainV2) NewToolchainsPager(options *ListToolchainsOptions) (pager *ToolchainsPager, err error)

NewToolchainsPager returns a new ToolchainsPager instance.

func (*CdToolchainV2) NewToolsPager added in v0.1.2

func (cdToolchain *CdToolchainV2) NewToolsPager(options *ListToolsOptions) (pager *ToolsPager, err error)

NewToolsPager returns a new ToolsPager instance.

func (*CdToolchainV2) NewUpdateToolOptions added in v0.0.3

func (*CdToolchainV2) NewUpdateToolOptions(toolchainID string, toolID string, toolchainToolPrototypePatch map[string]interface{}) *UpdateToolOptions

NewUpdateToolOptions : Instantiate UpdateToolOptions

func (*CdToolchainV2) NewUpdateToolchainOptions

func (*CdToolchainV2) NewUpdateToolchainOptions(toolchainID string, toolchainPrototypePatch map[string]interface{}) *UpdateToolchainOptions

NewUpdateToolchainOptions : Instantiate UpdateToolchainOptions

func (*CdToolchainV2) SetDefaultHeaders

func (cdToolchain *CdToolchainV2) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*CdToolchainV2) SetEnableGzipCompression

func (cdToolchain *CdToolchainV2) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*CdToolchainV2) SetServiceURL

func (cdToolchain *CdToolchainV2) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*CdToolchainV2) UpdateTool added in v0.0.3

func (cdToolchain *CdToolchainV2) UpdateTool(updateToolOptions *UpdateToolOptions) (result *ToolchainToolPatch, response *core.DetailedResponse, err error)

UpdateTool : Update a tool Update the tool with the specified ID.

func (*CdToolchainV2) UpdateToolWithContext added in v0.0.3

func (cdToolchain *CdToolchainV2) UpdateToolWithContext(ctx context.Context, updateToolOptions *UpdateToolOptions) (result *ToolchainToolPatch, response *core.DetailedResponse, err error)

UpdateToolWithContext is an alternate form of the UpdateTool method which supports a Context parameter

func (*CdToolchainV2) UpdateToolchain

func (cdToolchain *CdToolchainV2) UpdateToolchain(updateToolchainOptions *UpdateToolchainOptions) (result *ToolchainPatch, response *core.DetailedResponse, err error)

UpdateToolchain : Update a toolchain Update the toolchain with the specified ID.

func (*CdToolchainV2) UpdateToolchainWithContext

func (cdToolchain *CdToolchainV2) UpdateToolchainWithContext(ctx context.Context, updateToolchainOptions *UpdateToolchainOptions) (result *ToolchainPatch, response *core.DetailedResponse, err error)

UpdateToolchainWithContext is an alternate form of the UpdateToolchain method which supports a Context parameter

type CdToolchainV2Options

type CdToolchainV2Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator
}

CdToolchainV2Options : Service options

type CreateToolOptions added in v0.0.3

type CreateToolOptions struct {
	// ID of the toolchain to bind the tool to.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// The unique short name of the tool that should be provisioned. A table of `tool_type_id` values corresponding to each
	// tool integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id" validate:"required"`

	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateToolOptions : The CreateTool options.

func (*CreateToolOptions) SetHeaders added in v0.0.3

func (options *CreateToolOptions) SetHeaders(param map[string]string) *CreateToolOptions

SetHeaders : Allow user to set Headers

func (*CreateToolOptions) SetName added in v0.0.3

func (_options *CreateToolOptions) SetName(name string) *CreateToolOptions

SetName : Allow user to set Name

func (*CreateToolOptions) SetParameters added in v0.0.3

func (_options *CreateToolOptions) SetParameters(parameters map[string]interface{}) *CreateToolOptions

SetParameters : Allow user to set Parameters

func (*CreateToolOptions) SetToolTypeID added in v0.0.3

func (_options *CreateToolOptions) SetToolTypeID(toolTypeID string) *CreateToolOptions

SetToolTypeID : Allow user to set ToolTypeID

func (*CreateToolOptions) SetToolchainID added in v0.0.3

func (_options *CreateToolOptions) SetToolchainID(toolchainID string) *CreateToolOptions

SetToolchainID : Allow user to set ToolchainID

type CreateToolchainEventOptions added in v1.4.0

type CreateToolchainEventOptions struct {
	// ID of the toolchain to send events from.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// Event title.
	Title *string `json:"title" validate:"required"`

	// Describes the event.
	Description *string `json:"description" validate:"required"`

	// The content type of the attached data. Supported values are `text/plain`, `application/json`, and `none`.
	ContentType *string `json:"content_type" validate:"required"`

	// Additional data to be added with the event. The format must correspond to the value of `content_type`.
	Data *ToolchainEventPrototypeData `json:"data,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateToolchainEventOptions : The CreateToolchainEvent options.

func (*CreateToolchainEventOptions) SetContentType added in v1.4.0

func (_options *CreateToolchainEventOptions) SetContentType(contentType string) *CreateToolchainEventOptions

SetContentType : Allow user to set ContentType

func (*CreateToolchainEventOptions) SetData added in v1.4.0

SetData : Allow user to set Data

func (*CreateToolchainEventOptions) SetDescription added in v1.4.0

func (_options *CreateToolchainEventOptions) SetDescription(description string) *CreateToolchainEventOptions

SetDescription : Allow user to set Description

func (*CreateToolchainEventOptions) SetHeaders added in v1.4.0

func (options *CreateToolchainEventOptions) SetHeaders(param map[string]string) *CreateToolchainEventOptions

SetHeaders : Allow user to set Headers

func (*CreateToolchainEventOptions) SetTitle added in v1.4.0

SetTitle : Allow user to set Title

func (*CreateToolchainEventOptions) SetToolchainID added in v1.4.0

func (_options *CreateToolchainEventOptions) SetToolchainID(toolchainID string) *CreateToolchainEventOptions

SetToolchainID : Allow user to set ToolchainID

type CreateToolchainOptions

type CreateToolchainOptions struct {
	// Toolchain name.
	Name *string `json:"name" validate:"required"`

	// Resource group where toolchain will be created.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Describes the toolchain.
	Description *string `json:"description,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateToolchainOptions : The CreateToolchain options.

func (*CreateToolchainOptions) SetDescription

func (_options *CreateToolchainOptions) SetDescription(description string) *CreateToolchainOptions

SetDescription : Allow user to set Description

func (*CreateToolchainOptions) SetHeaders

func (options *CreateToolchainOptions) SetHeaders(param map[string]string) *CreateToolchainOptions

SetHeaders : Allow user to set Headers

func (*CreateToolchainOptions) SetName

func (_options *CreateToolchainOptions) SetName(name string) *CreateToolchainOptions

SetName : Allow user to set Name

func (*CreateToolchainOptions) SetResourceGroupID

func (_options *CreateToolchainOptions) SetResourceGroupID(resourceGroupID string) *CreateToolchainOptions

SetResourceGroupID : Allow user to set ResourceGroupID

type DeleteToolOptions added in v0.0.3

type DeleteToolOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// ID of the tool bound to the toolchain.
	ToolID *string `json:"tool_id" validate:"required,ne="`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteToolOptions : The DeleteTool options.

func (*DeleteToolOptions) SetHeaders added in v0.0.3

func (options *DeleteToolOptions) SetHeaders(param map[string]string) *DeleteToolOptions

SetHeaders : Allow user to set Headers

func (*DeleteToolOptions) SetToolID added in v0.0.3

func (_options *DeleteToolOptions) SetToolID(toolID string) *DeleteToolOptions

SetToolID : Allow user to set ToolID

func (*DeleteToolOptions) SetToolchainID added in v0.0.3

func (_options *DeleteToolOptions) SetToolchainID(toolchainID string) *DeleteToolOptions

SetToolchainID : Allow user to set ToolchainID

type DeleteToolchainOptions

type DeleteToolchainOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteToolchainOptions : The DeleteToolchain options.

func (*DeleteToolchainOptions) SetHeaders

func (options *DeleteToolchainOptions) SetHeaders(param map[string]string) *DeleteToolchainOptions

SetHeaders : Allow user to set Headers

func (*DeleteToolchainOptions) SetToolchainID

func (_options *DeleteToolchainOptions) SetToolchainID(toolchainID string) *DeleteToolchainOptions

SetToolchainID : Allow user to set ToolchainID

type GetToolByIDOptions added in v0.0.3

type GetToolByIDOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// ID of the tool bound to the toolchain.
	ToolID *string `json:"tool_id" validate:"required,ne="`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetToolByIDOptions : The GetToolByID options.

func (*GetToolByIDOptions) SetHeaders added in v0.0.3

func (options *GetToolByIDOptions) SetHeaders(param map[string]string) *GetToolByIDOptions

SetHeaders : Allow user to set Headers

func (*GetToolByIDOptions) SetToolID added in v0.0.3

func (_options *GetToolByIDOptions) SetToolID(toolID string) *GetToolByIDOptions

SetToolID : Allow user to set ToolID

func (*GetToolByIDOptions) SetToolchainID added in v0.0.3

func (_options *GetToolByIDOptions) SetToolchainID(toolchainID string) *GetToolByIDOptions

SetToolchainID : Allow user to set ToolchainID

type GetToolchainByIDOptions

type GetToolchainByIDOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetToolchainByIDOptions : The GetToolchainByID options.

func (*GetToolchainByIDOptions) SetHeaders

func (options *GetToolchainByIDOptions) SetHeaders(param map[string]string) *GetToolchainByIDOptions

SetHeaders : Allow user to set Headers

func (*GetToolchainByIDOptions) SetToolchainID

func (_options *GetToolchainByIDOptions) SetToolchainID(toolchainID string) *GetToolchainByIDOptions

SetToolchainID : Allow user to set ToolchainID

type ListToolchainsOptions

type ListToolchainsOptions struct {
	// The resource group ID where the toolchains exist.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Limit the number of results.
	Limit *int64 `json:"limit,omitempty"`

	// Pagination token.
	Start *string `json:"start,omitempty"`

	// Exact name of toolchain to look up. This parameter is case sensitive.
	Name *string `json:"name,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListToolchainsOptions : The ListToolchains options.

func (*ListToolchainsOptions) SetHeaders

func (options *ListToolchainsOptions) SetHeaders(param map[string]string) *ListToolchainsOptions

SetHeaders : Allow user to set Headers

func (*ListToolchainsOptions) SetLimit

func (_options *ListToolchainsOptions) SetLimit(limit int64) *ListToolchainsOptions

SetLimit : Allow user to set Limit

func (*ListToolchainsOptions) SetName added in v1.2.0

func (_options *ListToolchainsOptions) SetName(name string) *ListToolchainsOptions

SetName : Allow user to set Name

func (*ListToolchainsOptions) SetResourceGroupID

func (_options *ListToolchainsOptions) SetResourceGroupID(resourceGroupID string) *ListToolchainsOptions

SetResourceGroupID : Allow user to set ResourceGroupID

func (*ListToolchainsOptions) SetStart added in v0.1.2

func (_options *ListToolchainsOptions) SetStart(start string) *ListToolchainsOptions

SetStart : Allow user to set Start

type ListToolsOptions added in v0.0.3

type ListToolsOptions struct {
	// ID of the toolchain that tools are bound to.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// Limit the number of results.
	Limit *int64 `json:"limit,omitempty"`

	// Pagination token.
	Start *string `json:"start,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListToolsOptions : The ListTools options.

func (*ListToolsOptions) SetHeaders added in v0.0.3

func (options *ListToolsOptions) SetHeaders(param map[string]string) *ListToolsOptions

SetHeaders : Allow user to set Headers

func (*ListToolsOptions) SetLimit added in v0.0.3

func (_options *ListToolsOptions) SetLimit(limit int64) *ListToolsOptions

SetLimit : Allow user to set Limit

func (*ListToolsOptions) SetStart added in v0.1.2

func (_options *ListToolsOptions) SetStart(start string) *ListToolsOptions

SetStart : Allow user to set Start

func (*ListToolsOptions) SetToolchainID added in v0.0.3

func (_options *ListToolsOptions) SetToolchainID(toolchainID string) *ListToolsOptions

SetToolchainID : Allow user to set ToolchainID

type ToolModel added in v0.1.2

type ToolModel struct {
	// Tool ID.
	ID *string `json:"id" validate:"required"`

	// Resource group where the tool is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Tool CRN.
	CRN *string `json:"crn" validate:"required"`

	// The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can
	// be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id" validate:"required"`

	// ID of toolchain which the tool is bound to.
	ToolchainID *string `json:"toolchain_id" validate:"required"`

	// CRN of toolchain which the tool is bound to.
	ToolchainCRN *string `json:"toolchain_crn" validate:"required"`

	// URI representing the tool.
	Href *string `json:"href" validate:"required"`

	// Information on URIs to access this resource through the UI or API.
	Referent *ToolModelReferent `json:"referent" validate:"required"`

	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// Latest tool update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters" validate:"required"`

	// Current configuration state of the tool.
	State *string `json:"state" validate:"required"`
}

ToolModel : Model describing tool resource.

type ToolModelReferent added in v0.1.2

type ToolModelReferent struct {
	// URI representing this resource through the UI.
	UIHref *string `json:"ui_href,omitempty"`

	// URI representing this resource through an API.
	APIHref *string `json:"api_href,omitempty"`
}

ToolModelReferent : Information on URIs to access this resource through the UI or API.

type Toolchain

type Toolchain struct {
	// Toolchain ID.
	ID *string `json:"id" validate:"required"`

	// Toolchain name.
	Name *string `json:"name" validate:"required"`

	// Describes the toolchain.
	Description *string `json:"description" validate:"required"`

	// Account ID where toolchain can be found.
	AccountID *string `json:"account_id" validate:"required"`

	// Toolchain region.
	Location *string `json:"location" validate:"required"`

	// Resource group where the toolchain is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Toolchain CRN.
	CRN *string `json:"crn" validate:"required"`

	// URI that can be used to retrieve toolchain.
	Href *string `json:"href" validate:"required"`

	// URL of a user-facing user interface for this toolchain.
	UIHref *string `json:"ui_href" validate:"required"`

	// Toolchain creation timestamp.
	CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"`

	// Latest toolchain update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Identity that created the toolchain.
	CreatedBy *string `json:"created_by" validate:"required"`
}

Toolchain : Response structure for GET toolchains.

type ToolchainCollection added in v0.1.2

type ToolchainCollection struct {
	// Total number of toolchains found in collection.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// Maximum number of toolchains returned from collection.
	Limit *int64 `json:"limit" validate:"required"`

	// Information about retrieving first toolchain results from the collection.
	First *ToolchainCollectionFirst `json:"first" validate:"required"`

	// Information about retrieving previous toolchain results from the collection.
	Previous *ToolchainCollectionPrevious `json:"previous,omitempty"`

	// Information about retrieving next toolchain results from the collection.
	Next *ToolchainCollectionNext `json:"next,omitempty"`

	// Information about retrieving last toolchain results from the collection.
	Last *ToolchainCollectionLast `json:"last" validate:"required"`

	// Toolchain results returned from the collection.
	Toolchains []ToolchainModel `json:"toolchains,omitempty"`
}

ToolchainCollection : Response structure for GET toolchains.

func (*ToolchainCollection) GetNextStart added in v0.1.2

func (resp *ToolchainCollection) GetNextStart() (*string, error)

Retrieve the value to be passed to a request to access the next page of results

type ToolchainCollectionFirst added in v0.1.2

type ToolchainCollectionFirst struct {
	// URI that can be used to get first results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainCollectionFirst : Information about retrieving first toolchain results from the collection.

type ToolchainCollectionLast added in v0.1.2

type ToolchainCollectionLast struct {
	// Cursor that can be set as the 'start' query parameter to get the last set of toolchain collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get last results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainCollectionLast : Information about retrieving last toolchain results from the collection.

type ToolchainCollectionNext added in v0.1.2

type ToolchainCollectionNext struct {
	// Cursor that can be set as the 'start' query parameter to get the next set of toolchain collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get next results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainCollectionNext : Information about retrieving next toolchain results from the collection.

type ToolchainCollectionPrevious added in v0.1.2

type ToolchainCollectionPrevious struct {
	// Cursor that can be set as the 'start' query parameter to get the previous set of toolchain collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get previous results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainCollectionPrevious : Information about retrieving previous toolchain results from the collection.

type ToolchainEventPost added in v1.4.0

type ToolchainEventPost struct {
	// Event ID.
	ID *string `json:"id" validate:"required"`
}

ToolchainEventPost : Response structure for POST toolchain event.

type ToolchainEventPrototypeData added in v1.4.0

type ToolchainEventPrototypeData struct {
	// Contains JSON data to be added with the event. `content_type` must be set to `application/json`.
	ApplicationJSON *ToolchainEventPrototypeDataApplicationJSON `json:"application_json,omitempty"`

	// Contains text data to be added with the event. `content_type` must be set to `text/plain`.
	TextPlain *string `json:"text_plain,omitempty"`
}

ToolchainEventPrototypeData : Additional data to be added with the event. The format must correspond to the value of `content_type`.

type ToolchainEventPrototypeDataApplicationJSON added in v1.4.0

type ToolchainEventPrototypeDataApplicationJSON struct {
	// JSON-formatted key-value pairs representing any additional information to be included with the event.
	Content map[string]interface{} `json:"content" validate:"required"`
}

ToolchainEventPrototypeDataApplicationJSON : Contains JSON data to be added with the event. `content_type` must be set to `application/json`.

type ToolchainModel added in v0.1.2

type ToolchainModel struct {
	// Toolchain ID.
	ID *string `json:"id" validate:"required"`

	// Toolchain name.
	Name *string `json:"name" validate:"required"`

	// Describes the toolchain.
	Description *string `json:"description" validate:"required"`

	// Account ID where toolchain can be found.
	AccountID *string `json:"account_id" validate:"required"`

	// Toolchain region.
	Location *string `json:"location" validate:"required"`

	// Resource group where the toolchain is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Toolchain CRN.
	CRN *string `json:"crn" validate:"required"`

	// URI that can be used to retrieve toolchain.
	Href *string `json:"href" validate:"required"`

	// URL of a user-facing user interface for this toolchain.
	UIHref *string `json:"ui_href" validate:"required"`

	// Toolchain creation timestamp.
	CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"`

	// Latest toolchain update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Identity that created the toolchain.
	CreatedBy *string `json:"created_by" validate:"required"`
}

ToolchainModel : Model describing toolchain resource.

type ToolchainPatch added in v0.1.2

type ToolchainPatch struct {
	// Toolchain ID.
	ID *string `json:"id" validate:"required"`

	// Toolchain name.
	Name *string `json:"name" validate:"required"`

	// Describes the toolchain.
	Description *string `json:"description" validate:"required"`

	// Account ID where toolchain can be found.
	AccountID *string `json:"account_id" validate:"required"`

	// Toolchain region.
	Location *string `json:"location" validate:"required"`

	// Resource group where the toolchain is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Toolchain CRN.
	CRN *string `json:"crn" validate:"required"`

	// URI that can be used to retrieve toolchain.
	Href *string `json:"href" validate:"required"`

	// URL of a user-facing user interface for this toolchain.
	UIHref *string `json:"ui_href" validate:"required"`

	// Toolchain creation timestamp.
	CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"`

	// Latest toolchain update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Identity that created the toolchain.
	CreatedBy *string `json:"created_by" validate:"required"`
}

ToolchainPatch : Response structure for PATCH toolchain.

type ToolchainPost added in v0.1.2

type ToolchainPost struct {
	// Toolchain ID.
	ID *string `json:"id" validate:"required"`

	// Toolchain name.
	Name *string `json:"name" validate:"required"`

	// Describes the toolchain.
	Description *string `json:"description" validate:"required"`

	// Account ID where toolchain can be found.
	AccountID *string `json:"account_id" validate:"required"`

	// Toolchain region.
	Location *string `json:"location" validate:"required"`

	// Resource group where the toolchain is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Toolchain CRN.
	CRN *string `json:"crn" validate:"required"`

	// URI that can be used to retrieve toolchain.
	Href *string `json:"href" validate:"required"`

	// URL of a user-facing user interface for this toolchain.
	UIHref *string `json:"ui_href" validate:"required"`

	// Toolchain creation timestamp.
	CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"`

	// Latest toolchain update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Identity that created the toolchain.
	CreatedBy *string `json:"created_by" validate:"required"`
}

ToolchainPost : Response structure for POST toolchain.

type ToolchainPrototypePatch added in v0.1.2

type ToolchainPrototypePatch struct {
	// The name of the toolchain.
	Name *string `json:"name,omitempty"`

	// An optional description.
	Description *string `json:"description,omitempty"`
}

ToolchainPrototypePatch : Body structure for the update toolchain PATCH request.

func (*ToolchainPrototypePatch) AsPatch added in v0.1.2

func (toolchainPrototypePatch *ToolchainPrototypePatch) AsPatch() (_patch map[string]interface{}, err error)

AsPatch returns a generic map representation of the ToolchainPrototypePatch

type ToolchainTool added in v0.1.2

type ToolchainTool struct {
	// Tool ID.
	ID *string `json:"id" validate:"required"`

	// Resource group where the tool is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Tool CRN.
	CRN *string `json:"crn" validate:"required"`

	// The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can
	// be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id" validate:"required"`

	// ID of toolchain which the tool is bound to.
	ToolchainID *string `json:"toolchain_id" validate:"required"`

	// CRN of toolchain which the tool is bound to.
	ToolchainCRN *string `json:"toolchain_crn" validate:"required"`

	// URI representing the tool.
	Href *string `json:"href" validate:"required"`

	// Information on URIs to access this resource through the UI or API.
	Referent *ToolModelReferent `json:"referent" validate:"required"`

	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// Latest tool update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters" validate:"required"`

	// Current configuration state of the tool.
	State *string `json:"state" validate:"required"`
}

ToolchainTool : Response structure for GET tool.

type ToolchainToolCollection added in v0.1.2

type ToolchainToolCollection struct {
	// Maximum number of tools returned from collection.
	Limit *int64 `json:"limit" validate:"required"`

	// Total number of tools found in collection.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// Information about retrieving first tool results from the collection.
	First *ToolchainToolCollectionFirst `json:"first" validate:"required"`

	// Information about retrieving previous tool results from the collection.
	Previous *ToolchainToolCollectionPrevious `json:"previous,omitempty"`

	// Information about retrieving next tool results from the collection.
	Next *ToolchainToolCollectionNext `json:"next,omitempty"`

	// Information about retrieving last tool results from the collection.
	Last *ToolchainToolCollectionLast `json:"last" validate:"required"`

	// Tool results returned from the collection.
	Tools []ToolModel `json:"tools" validate:"required"`
}

ToolchainToolCollection : Response structure for GET tools.

func (*ToolchainToolCollection) GetNextStart added in v0.1.2

func (resp *ToolchainToolCollection) GetNextStart() (*string, error)

Retrieve the value to be passed to a request to access the next page of results

type ToolchainToolCollectionFirst added in v0.1.2

type ToolchainToolCollectionFirst struct {
	// URI that can be used to get first results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainToolCollectionFirst : Information about retrieving first tool results from the collection.

type ToolchainToolCollectionLast added in v0.1.2

type ToolchainToolCollectionLast struct {
	// Cursor that can be used to get the last set of tool collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get last results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainToolCollectionLast : Information about retrieving last tool results from the collection.

type ToolchainToolCollectionNext added in v0.1.2

type ToolchainToolCollectionNext struct {
	// Cursor that can be used to get the next set of tool collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get next results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainToolCollectionNext : Information about retrieving next tool results from the collection.

type ToolchainToolCollectionPrevious added in v0.1.2

type ToolchainToolCollectionPrevious struct {
	// Cursor that can be used to get the previous set of tool collections.
	Start *string `json:"start,omitempty"`

	// URI that can be used to get previous results from the collection.
	Href *string `json:"href" validate:"required"`
}

ToolchainToolCollectionPrevious : Information about retrieving previous tool results from the collection.

type ToolchainToolPatch added in v0.1.2

type ToolchainToolPatch struct {
	// Tool ID.
	ID *string `json:"id" validate:"required"`

	// Resource group where the tool is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Tool CRN.
	CRN *string `json:"crn" validate:"required"`

	// The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can
	// be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id" validate:"required"`

	// ID of toolchain which the tool is bound to.
	ToolchainID *string `json:"toolchain_id" validate:"required"`

	// CRN of toolchain which the tool is bound to.
	ToolchainCRN *string `json:"toolchain_crn" validate:"required"`

	// URI representing the tool.
	Href *string `json:"href" validate:"required"`

	// Information on URIs to access this resource through the UI or API.
	Referent *ToolModelReferent `json:"referent" validate:"required"`

	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// Latest tool update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters" validate:"required"`

	// Current configuration state of the tool.
	State *string `json:"state" validate:"required"`
}

ToolchainToolPatch : Response structure for PATCH tool.

type ToolchainToolPost added in v0.1.2

type ToolchainToolPost struct {
	// Tool ID.
	ID *string `json:"id" validate:"required"`

	// Resource group where the tool is located.
	ResourceGroupID *string `json:"resource_group_id" validate:"required"`

	// Tool CRN.
	CRN *string `json:"crn" validate:"required"`

	// The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can
	// be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id" validate:"required"`

	// ID of toolchain which the tool is bound to.
	ToolchainID *string `json:"toolchain_id" validate:"required"`

	// CRN of toolchain which the tool is bound to.
	ToolchainCRN *string `json:"toolchain_crn" validate:"required"`

	// URI representing the tool.
	Href *string `json:"href" validate:"required"`

	// Information on URIs to access this resource through the UI or API.
	Referent *ToolModelReferent `json:"referent" validate:"required"`

	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// Latest tool update timestamp.
	UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters" validate:"required"`

	// Current configuration state of the tool.
	State *string `json:"state" validate:"required"`
}

ToolchainToolPost : POST tool response body.

type ToolchainToolPrototypePatch added in v0.1.2

type ToolchainToolPrototypePatch struct {
	// Name of the tool.
	Name *string `json:"name,omitempty"`

	// The unique short name of the tool that should be provisioned or updated. A table of `tool_type_id` values
	// corresponding to each tool integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	ToolTypeID *string `json:"tool_type_id,omitempty"`

	// Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool
	// integration can be found in the <a
	// href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool
	// integrations page</a>.
	Parameters map[string]interface{} `json:"parameters,omitempty"`
}

ToolchainToolPrototypePatch : Details on the new tool.

func (*ToolchainToolPrototypePatch) AsPatch added in v0.1.2

func (toolchainToolPrototypePatch *ToolchainToolPrototypePatch) AsPatch() (_patch map[string]interface{}, err error)

AsPatch returns a generic map representation of the ToolchainToolPrototypePatch

type ToolchainsPager added in v0.1.2

type ToolchainsPager struct {
	// contains filtered or unexported fields
}

ToolchainsPager can be used to simplify the use of the "ListToolchains" method.

func (*ToolchainsPager) GetAll added in v0.1.2

func (pager *ToolchainsPager) GetAll() (allItems []ToolchainModel, err error)

GetAll invokes GetAllWithContext() using context.Background() as the Context parameter.

func (*ToolchainsPager) GetAllWithContext added in v0.1.2

func (pager *ToolchainsPager) GetAllWithContext(ctx context.Context) (allItems []ToolchainModel, err error)

GetAllWithContext returns all results by invoking GetNextWithContext() repeatedly until all pages of results have been retrieved.

func (*ToolchainsPager) GetNext added in v0.1.2

func (pager *ToolchainsPager) GetNext() (page []ToolchainModel, err error)

GetNext invokes GetNextWithContext() using context.Background() as the Context parameter.

func (*ToolchainsPager) GetNextWithContext added in v0.1.2

func (pager *ToolchainsPager) GetNextWithContext(ctx context.Context) (page []ToolchainModel, err error)

GetNextWithContext returns the next page of results using the specified Context.

func (*ToolchainsPager) HasNext added in v0.1.2

func (pager *ToolchainsPager) HasNext() bool

HasNext returns true if there are potentially more results to be retrieved.

type ToolsPager added in v0.1.2

type ToolsPager struct {
	// contains filtered or unexported fields
}

ToolsPager can be used to simplify the use of the "ListTools" method.

func (*ToolsPager) GetAll added in v0.1.2

func (pager *ToolsPager) GetAll() (allItems []ToolModel, err error)

GetAll invokes GetAllWithContext() using context.Background() as the Context parameter.

func (*ToolsPager) GetAllWithContext added in v0.1.2

func (pager *ToolsPager) GetAllWithContext(ctx context.Context) (allItems []ToolModel, err error)

GetAllWithContext returns all results by invoking GetNextWithContext() repeatedly until all pages of results have been retrieved.

func (*ToolsPager) GetNext added in v0.1.2

func (pager *ToolsPager) GetNext() (page []ToolModel, err error)

GetNext invokes GetNextWithContext() using context.Background() as the Context parameter.

func (*ToolsPager) GetNextWithContext added in v0.1.2

func (pager *ToolsPager) GetNextWithContext(ctx context.Context) (page []ToolModel, err error)

GetNextWithContext returns the next page of results using the specified Context.

func (*ToolsPager) HasNext added in v0.1.2

func (pager *ToolsPager) HasNext() bool

HasNext returns true if there are potentially more results to be retrieved.

type UpdateToolOptions added in v0.0.3

type UpdateToolOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// ID of the tool bound to the toolchain.
	ToolID *string `json:"tool_id" validate:"required,ne="`

	// JSON Merge-Patch content for update_tool.
	ToolchainToolPrototypePatch map[string]interface{} `json:"ToolchainToolPrototype_patch" validate:"required"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateToolOptions : The UpdateTool options.

func (*UpdateToolOptions) SetHeaders added in v0.0.3

func (options *UpdateToolOptions) SetHeaders(param map[string]string) *UpdateToolOptions

SetHeaders : Allow user to set Headers

func (*UpdateToolOptions) SetToolID added in v0.0.3

func (_options *UpdateToolOptions) SetToolID(toolID string) *UpdateToolOptions

SetToolID : Allow user to set ToolID

func (*UpdateToolOptions) SetToolchainID added in v0.0.3

func (_options *UpdateToolOptions) SetToolchainID(toolchainID string) *UpdateToolOptions

SetToolchainID : Allow user to set ToolchainID

func (*UpdateToolOptions) SetToolchainToolPrototypePatch added in v0.1.2

func (_options *UpdateToolOptions) SetToolchainToolPrototypePatch(toolchainToolPrototypePatch map[string]interface{}) *UpdateToolOptions

SetToolchainToolPrototypePatch : Allow user to set ToolchainToolPrototypePatch

type UpdateToolchainOptions

type UpdateToolchainOptions struct {
	// ID of the toolchain.
	ToolchainID *string `json:"toolchain_id" validate:"required,ne="`

	// JSON Merge-Patch content for update_toolchain.
	ToolchainPrototypePatch map[string]interface{} `json:"ToolchainPrototype_patch" validate:"required"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateToolchainOptions : The UpdateToolchain options.

func (*UpdateToolchainOptions) SetHeaders

func (options *UpdateToolchainOptions) SetHeaders(param map[string]string) *UpdateToolchainOptions

SetHeaders : Allow user to set Headers

func (*UpdateToolchainOptions) SetToolchainID

func (_options *UpdateToolchainOptions) SetToolchainID(toolchainID string) *UpdateToolchainOptions

SetToolchainID : Allow user to set ToolchainID

func (*UpdateToolchainOptions) SetToolchainPrototypePatch added in v0.1.2

func (_options *UpdateToolchainOptions) SetToolchainPrototypePatch(toolchainPrototypePatch map[string]interface{}) *UpdateToolchainOptions

SetToolchainPrototypePatch : Allow user to set ToolchainPrototypePatch

Jump to

Keyboard shortcuts

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