ibmcloudlogsroutingv0

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Package ibmcloudlogsroutingv0 : Operations and models for the IBMCloudLogsRoutingV0 service

Index

Constants

View Source
const DefaultServiceName = "ibm_cloud_logs_routing"

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

View Source
const DefaultServiceURL = "https://management.eu-gb.logs-router.cloud.ibm.com/v1"

DefaultServiceURL is the default URL to make service requests to.

View Source
const IBM_API_Version = "2024-06-15"
View Source
const ParameterizedServiceURL = "https://management.{region}.logs-router.cloud.ibm.com/v1"
View Source
const (
	TargetTypeLogDnaTypeLogdnaConst = "logdna"
)

Constants associated with the TargetTypeLogDna.Type property. Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.

View Source
const (
	TargetTypeLogsTypeLogsConst = "logs"
)

Constants associated with the TargetTypeLogs.Type property. Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.

View Source
const (
	TargetTypeTypeLogdnaConst = "logdna"
)

Constants associated with the TargetType.Type property. Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.

Variables

This section is empty.

Functions

func ConstructServiceURL

func ConstructServiceURL(providedUrlVariables map[string]string) (string, error)

ConstructServiceURL constructs a service URL from the parameterized URL.

func GetServiceURLForRegion

func GetServiceURLForRegion(region string) (string, error)

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

func UnmarshalTargetParametersTypeLogDna

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

UnmarshalTargetParametersTypeLogDna unmarshals an instance of TargetParametersTypeLogDna from the specified map of raw messages.

func UnmarshalTargetParametersTypeLogDnaPrototype

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

UnmarshalTargetParametersTypeLogDnaPrototype unmarshals an instance of TargetParametersTypeLogDnaPrototype from the specified map of raw messages.

func UnmarshalTargetParametersTypeLogs

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

UnmarshalTargetParametersTypeLogs unmarshals an instance of TargetParametersTypeLogs from the specified map of raw messages.

func UnmarshalTargetParametersTypeLogsPrototype

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

UnmarshalTargetParametersTypeLogsPrototype unmarshals an instance of TargetParametersTypeLogsPrototype from the specified map of raw messages.

func UnmarshalTargetType

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

UnmarshalTargetType unmarshals an instance of TargetType from the specified map of raw messages.

func UnmarshalTargetTypeCheckLogdna added in v1.0.8

func UnmarshalTargetTypeCheckLogdna(m TargetTypePrototypeIntf) (err error, logdna bool)

UnmarshalTargetTypeCollection unmarshals an instance of TargetTypeCollection from the specified map of raw messages.

func UnmarshalTargetTypeCollection

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

UnmarshalTargetTypeCollection unmarshals an instance of TargetTypeCollection from the specified map of raw messages.

func UnmarshalTargetTypeCollectionCheckLogdna added in v1.0.8

func UnmarshalTargetTypeCollectionCheckLogdna(m []TargetTypePrototypeIntf) (err error, logdna bool)

UnmarshalTargetTypeCollection unmarshals an instance of TargetTypeCollection from the specified map of raw messages.

func UnmarshalTargetTypeLogDna

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

UnmarshalTargetTypeLogDna unmarshals an instance of TargetTypeLogDna from the specified map of raw messages.

func UnmarshalTargetTypeLogs

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

UnmarshalTargetTypeLogs unmarshals an instance of TargetTypeLogs from the specified map of raw messages.

func UnmarshalTargetTypePatch

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

UnmarshalTargetTypePatch unmarshals an instance of TargetTypePatch from the specified map of raw messages.

func UnmarshalTargetTypePatchLogDna

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

UnmarshalTargetTypePatchLogDna unmarshals an instance of TargetTypePatchLogDna from the specified map of raw messages.

func UnmarshalTargetTypePatchLogs

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

UnmarshalTargetTypePatchLogs unmarshals an instance of TargetTypePatchLogs from the specified map of raw messages.

func UnmarshalTargetTypePrototype

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

UnmarshalTargetTypePrototype unmarshals an instance of TargetTypePrototype from the specified map of raw messages.

func UnmarshalTargetTypePrototypeTargetTypeLogDnaPrototype

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

UnmarshalTargetTypePrototypeTargetTypeLogDnaPrototype unmarshals an instance of TargetTypePrototypeTargetTypeLogDnaPrototype from the specified map of raw messages.

func UnmarshalTargetTypePrototypeTargetTypeLogsPrototype

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

UnmarshalTargetTypePrototypeTargetTypeLogsPrototype unmarshals an instance of TargetTypePrototypeTargetTypeLogsPrototype from the specified map of raw messages.

func UnmarshalTenant

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

UnmarshalTenant unmarshals an instance of Tenant from the specified map of raw messages.

func UnmarshalTenantCollection

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

UnmarshalTenantCollection unmarshals an instance of TenantCollection from the specified map of raw messages.

func UnmarshalTenantPatch

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

UnmarshalTenantPatch unmarshals an instance of TenantPatch from the specified map of raw messages.

func UnmarshalWriteStatus added in v1.0.8

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

UnmarshalWriteStatus unmarshals an instance of WriteStatus from the specified map of raw messages.

Types

type CreateTargetOptions

type CreateTargetOptions struct {
	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// Include this optional field if you want to create a target for a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// log-sink endpoint and authentication.
	TargetTypePrototype TargetTypePrototypeIntf `json:"TargetTypePrototype" validate:"required"`

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

CreateTargetOptions : The CreateTarget options.

func (*CreateTargetOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*CreateTargetOptions) SetIBMAPIVersion

func (_options *CreateTargetOptions) SetIBMAPIVersion(ibmAPIVersion string) *CreateTargetOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*CreateTargetOptions) SetRegion added in v1.0.4

func (_options *CreateTargetOptions) SetRegion(region string) *CreateTargetOptions

SetRegion : Allow user to set Region

func (*CreateTargetOptions) SetTargetTypePrototype

func (_options *CreateTargetOptions) SetTargetTypePrototype(targetTypePrototype TargetTypePrototypeIntf) *CreateTargetOptions

SetTargetTypePrototype : Allow user to set TargetTypePrototype

func (*CreateTargetOptions) SetTenantID

func (_options *CreateTargetOptions) SetTenantID(tenantID *strfmt.UUID) *CreateTargetOptions

SetTenantID : Allow user to set TenantID

type CreateTenantOptions

type CreateTenantOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// The name for this tenant. The name must be regionally unique across all tenants in the account.
	Name *string `json:"name" validate:"required"`

	// Include this optional field if you want to create a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// List of targets.<br>Two targets must not be of the same type. Supported target types are <b>logdna</b> (IBM Log
	// Analysis) and <b>logs</b> (IBM Cloud Logs).
	Targets []TargetTypePrototypeIntf `json:"targets" validate:"required"`

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

CreateTenantOptions : The CreateTenant options.

func (*CreateTenantOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*CreateTenantOptions) SetIBMAPIVersion

func (_options *CreateTenantOptions) SetIBMAPIVersion(ibmAPIVersion string) *CreateTenantOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*CreateTenantOptions) SetName

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

SetName : Allow user to set Name

func (*CreateTenantOptions) SetRegion added in v1.0.4

func (_options *CreateTenantOptions) SetRegion(region string) *CreateTenantOptions

SetRegion : Allow user to set region

func (*CreateTenantOptions) SetTargets

func (_options *CreateTenantOptions) SetTargets(targets []TargetTypePrototypeIntf) *CreateTenantOptions

SetTargets : Allow user to set Targets

type DeleteTargetOptions

type DeleteTargetOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Include this optional field if you want to delete a target for a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// The instance ID of the tenant target.
	TargetID *strfmt.UUID `json:"target_id" validate:"required"`

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

DeleteTargetOptions : The DeleteTarget options.

func (*DeleteTargetOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*DeleteTargetOptions) SetIBMAPIVersion

func (_options *DeleteTargetOptions) SetIBMAPIVersion(ibmAPIVersion string) *DeleteTargetOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*DeleteTargetOptions) SetRegion added in v1.0.4

func (_options *DeleteTargetOptions) SetRegion(region string) *DeleteTargetOptions

SetRegion : Allow user to set Region

func (*DeleteTargetOptions) SetTargetID

func (_options *DeleteTargetOptions) SetTargetID(targetID *strfmt.UUID) *DeleteTargetOptions

SetTargetID : Allow user to set TargetID

func (*DeleteTargetOptions) SetTenantID

func (_options *DeleteTargetOptions) SetTenantID(tenantID *strfmt.UUID) *DeleteTargetOptions

SetTenantID : Allow user to set TenantID

type DeleteTenantOptions

type DeleteTenantOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Include this optional field if you want to delete a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

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

DeleteTenantOptions : The DeleteTenant options.

func (*DeleteTenantOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*DeleteTenantOptions) SetIBMAPIVersion

func (_options *DeleteTenantOptions) SetIBMAPIVersion(ibmAPIVersion string) *DeleteTenantOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*DeleteTenantOptions) SetRegion added in v1.0.4

func (_options *DeleteTenantOptions) SetRegion(region string) *DeleteTenantOptions

SetRegion : Allow user to set region

func (*DeleteTenantOptions) SetTenantID

func (_options *DeleteTenantOptions) SetTenantID(tenantID *strfmt.UUID) *DeleteTenantOptions

SetTenantID : Allow user to set TenantID

type GetTenantDetailOptions

type GetTenantDetailOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// Include this optional field if you want to read a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

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

GetTenantDetailOptions : The GetTenantDetail options.

func (*GetTenantDetailOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*GetTenantDetailOptions) SetIBMAPIVersion

func (_options *GetTenantDetailOptions) SetIBMAPIVersion(ibmAPIVersion string) *GetTenantDetailOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*GetTenantDetailOptions) SetRegion added in v1.0.4

func (_options *GetTenantDetailOptions) SetRegion(region string) *GetTenantDetailOptions

SetRegion : Allow user to set Region

func (*GetTenantDetailOptions) SetTenantID

func (_options *GetTenantDetailOptions) SetTenantID(tenantID *strfmt.UUID) *GetTenantDetailOptions

SetTenantID : Allow user to set TenantID

type GetTenantTargetDetailsOptions

type GetTenantTargetDetailsOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Include this optional field if you want to read a target for a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// The instance ID of the tenant target.
	TargetID *strfmt.UUID `json:"target_id" validate:"required"`

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

GetTenantTargetDetailsOptions : The GetTenantTargetDetails options.

func (*GetTenantTargetDetailsOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*GetTenantTargetDetailsOptions) SetIBMAPIVersion

func (_options *GetTenantTargetDetailsOptions) SetIBMAPIVersion(ibmAPIVersion string) *GetTenantTargetDetailsOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*GetTenantTargetDetailsOptions) SetRegion added in v1.0.5

SetRegion : Allow user to set Region

func (*GetTenantTargetDetailsOptions) SetTargetID

func (_options *GetTenantTargetDetailsOptions) SetTargetID(targetID *strfmt.UUID) *GetTenantTargetDetailsOptions

SetTargetID : Allow user to set TargetID

func (*GetTenantTargetDetailsOptions) SetTenantID

func (_options *GetTenantTargetDetailsOptions) SetTenantID(tenantID *strfmt.UUID) *GetTenantTargetDetailsOptions

SetTenantID : Allow user to set TenantID

type IBMCloudLogsRoutingV0

type IBMCloudLogsRoutingV0 struct {
	Service *core.BaseService
}

IBMCloudLogsRoutingV0 : IBM Cloud Logs Routing is an IBM cloud platform service to collect log-events of your VPC and deliver them to the configured log-sink.

API Version: 0.0.1 See: http://cloud.ibm.com

func NewIBMCloudLogsRoutingV0

func NewIBMCloudLogsRoutingV0(options *IBMCloudLogsRoutingV0Options) (service *IBMCloudLogsRoutingV0, err error)

NewIBMCloudLogsRoutingV0 : constructs an instance of IBMCloudLogsRoutingV0 with passed in options.

func NewIBMCloudLogsRoutingV0UsingExternalConfig

func NewIBMCloudLogsRoutingV0UsingExternalConfig(options *IBMCloudLogsRoutingV0Options) (ibmCloudLogsRouting *IBMCloudLogsRoutingV0, err error)

NewIBMCloudLogsRoutingV0UsingExternalConfig : constructs an instance of IBMCloudLogsRoutingV0 with passed in options and external configuration.

func (*IBMCloudLogsRoutingV0) Clone

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) Clone() *IBMCloudLogsRoutingV0

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

func (*IBMCloudLogsRoutingV0) CreateTarget

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTarget(createTargetOptions *CreateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

CreateTarget : Create a target Create a new target for a tenant.<br><b>Note:</b> The tenant must not already have a target of the specified type. Supported target types are <b>logdna</b> (IBM Log Analysis) and <b>logs</b> (IBM Cloud Logs).

func (*IBMCloudLogsRoutingV0) CreateTargetWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTargetWithContext(ctx context.Context, createTargetOptions *CreateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

CreateTargetWithContext is an alternate form of the CreateTarget method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) CreateTargetWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTargetWithContextEndpoint(ctx context.Context, createTargetOptions *CreateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) CreateTenant

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTenant(createTenantOptions *CreateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

CreateTenant : Create (onboard) a tenant Create (onboard) a tenant.

func (*IBMCloudLogsRoutingV0) CreateTenantWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTenantWithContext(ctx context.Context, createTenantOptions *CreateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

CreateTenantWithContext is an alternate form of the CreateTenant method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) CreateTenantWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) CreateTenantWithContextEndpoint(ctx context.Context, createTenantOptions *CreateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) DeleteTarget

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTarget(deleteTargetOptions *DeleteTargetOptions) (response *core.DetailedResponse, err error)

DeleteTarget : Delete a target Delete a target.<br><b>Note:</b> The last target is not allowed to be deleted.

func (*IBMCloudLogsRoutingV0) DeleteTargetWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTargetWithContext(ctx context.Context, deleteTargetOptions *DeleteTargetOptions) (response *core.DetailedResponse, err error)

DeleteTargetWithContext is an alternate form of the DeleteTarget method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) DeleteTargetWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTargetWithContextEndpoint(ctx context.Context, deleteTargetOptions *DeleteTargetOptions) (response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) DeleteTenant

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTenant(deleteTenantOptions *DeleteTenantOptions) (response *core.DetailedResponse, err error)

DeleteTenant : Delete (offboard) a tenant Delete (offboard) a tenant.

func (*IBMCloudLogsRoutingV0) DeleteTenantWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTenantWithContext(ctx context.Context, deleteTenantOptions *DeleteTenantOptions) (response *core.DetailedResponse, err error)

DeleteTenantWithContext is an alternate form of the DeleteTenant method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) DeleteTenantWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DeleteTenantWithContextEndpoint(ctx context.Context, deleteTenantOptions *DeleteTenantOptions) (response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) DisableRetries

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) DisableRetries()

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

func (*IBMCloudLogsRoutingV0) EnableRetries

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) 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 (*IBMCloudLogsRoutingV0) GetEnableGzipCompression

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*IBMCloudLogsRoutingV0) GetServiceURL

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetServiceURL() string

GetServiceURL returns the service URL

func (*IBMCloudLogsRoutingV0) GetTenantDetail

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantDetail(getTenantDetailOptions *GetTenantDetailOptions) (result *Tenant, response *core.DetailedResponse, err error)

GetTenantDetail : Retrieve a tenant Retrieve a tenant.

func (*IBMCloudLogsRoutingV0) GetTenantDetailWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantDetailWithContext(ctx context.Context, getTenantDetailOptions *GetTenantDetailOptions) (result *Tenant, response *core.DetailedResponse, err error)

GetTenantDetailWithContext is an alternate form of the GetTenantDetail method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) GetTenantDetailWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantDetailWithContextEndpoint(ctx context.Context, getTenantDetailOptions *GetTenantDetailOptions) (result *Tenant, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) GetTenantTargetDetails

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantTargetDetails(getTenantTargetDetailsOptions *GetTenantTargetDetailsOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

GetTenantTargetDetails : Retrieve a target Retrieve a target.

func (*IBMCloudLogsRoutingV0) GetTenantTargetDetailsWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantTargetDetailsWithContext(ctx context.Context, getTenantTargetDetailsOptions *GetTenantTargetDetailsOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

GetTenantTargetDetailsWithContext is an alternate form of the GetTenantTargetDetails method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) GetTenantTargetDetailsWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) GetTenantTargetDetailsWithContextEndpoint(ctx context.Context, getTenantTargetDetailsOptions *GetTenantTargetDetailsOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) ListTenantTargets

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenantTargets(listTenantTargetsOptions *ListTenantTargetsOptions) (result *TargetTypeCollection, response *core.DetailedResponse, err error)

ListTenantTargets : List targets for a tenant List targets for a tenant.

func (*IBMCloudLogsRoutingV0) ListTenantTargetsWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenantTargetsWithContext(ctx context.Context, listTenantTargetsOptions *ListTenantTargetsOptions) (result *TargetTypeCollection, response *core.DetailedResponse, err error)

ListTenantTargetsWithContext is an alternate form of the ListTenantTargets method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) ListTenantTargetsWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenantTargetsWithContextEndpoint(ctx context.Context, listTenantTargetsOptions *ListTenantTargetsOptions) (result *TargetTypeCollection, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) ListTenants

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenants(listTenantsOptions *ListTenantsOptions) (result *TenantCollection, response *core.DetailedResponse, err error)

ListTenants : List tenants List tenants.

func (*IBMCloudLogsRoutingV0) ListTenantsWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenantsWithContext(ctx context.Context, listTenantsOptions *ListTenantsOptions) (result *TenantCollection, response *core.DetailedResponse, err error)

ListTenantsWithContext is an alternate form of the ListTenants method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) ListTenantsWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) ListTenantsWithContextEndpoint(ctx context.Context, listTenantsOptions *ListTenantsOptions) (result *TenantCollection, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) NewCreateTargetOptions

func (*IBMCloudLogsRoutingV0) NewCreateTargetOptions(tenantID *strfmt.UUID, ibmAPIVersion string, region string, targetTypePrototype TargetTypePrototypeIntf) *CreateTargetOptions

NewCreateTargetOptions : Instantiate CreateTargetOptions

func (*IBMCloudLogsRoutingV0) NewCreateTenantOptions

func (*IBMCloudLogsRoutingV0) NewCreateTenantOptions(ibmAPIVersion string, name string, region string, targets []TargetTypePrototypeIntf) *CreateTenantOptions

NewCreateTenantOptions : Instantiate CreateTenantOptions

func (*IBMCloudLogsRoutingV0) NewDeleteTargetOptions

func (*IBMCloudLogsRoutingV0) NewDeleteTargetOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID, targetID *strfmt.UUID) *DeleteTargetOptions

NewDeleteTargetOptions : Instantiate DeleteTargetOptions

func (*IBMCloudLogsRoutingV0) NewDeleteTenantOptions

func (*IBMCloudLogsRoutingV0) NewDeleteTenantOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID) *DeleteTenantOptions

NewDeleteTenantOptions : Instantiate DeleteTenantOptions

func (*IBMCloudLogsRoutingV0) NewGetTenantDetailOptions

func (*IBMCloudLogsRoutingV0) NewGetTenantDetailOptions(ibmAPIVersion string, tenantID *strfmt.UUID, region string) *GetTenantDetailOptions

NewGetTenantDetailOptions : Instantiate GetTenantDetailOptions

func (*IBMCloudLogsRoutingV0) NewGetTenantTargetDetailsOptions

func (*IBMCloudLogsRoutingV0) NewGetTenantTargetDetailsOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID, targetID *strfmt.UUID) *GetTenantTargetDetailsOptions

NewGetTenantTargetDetailsOptions : Instantiate GetTenantTargetDetailsOptions

func (*IBMCloudLogsRoutingV0) NewListTenantTargetsOptions

func (*IBMCloudLogsRoutingV0) NewListTenantTargetsOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID) *ListTenantTargetsOptions

NewListTenantTargetsOptions : Instantiate ListTenantTargetsOptions

func (*IBMCloudLogsRoutingV0) NewListTenantsOptions

func (*IBMCloudLogsRoutingV0) NewListTenantsOptions(ibmAPIVersion string, region string) *ListTenantsOptions

NewListTenantsOptions : Instantiate ListTenantsOptions

func (*IBMCloudLogsRoutingV0) NewTargetParametersTypeLogDnaPrototype

func (*IBMCloudLogsRoutingV0) NewTargetParametersTypeLogDnaPrototype(host string, port int64) (_model *TargetParametersTypeLogDnaPrototype, err error)

NewTargetParametersTypeLogDnaPrototype : Instantiate TargetParametersTypeLogDnaPrototype (Generic Model Constructor)

func (*IBMCloudLogsRoutingV0) NewTargetParametersTypeLogsPrototype

func (*IBMCloudLogsRoutingV0) NewTargetParametersTypeLogsPrototype(host string, port int64) (_model *TargetParametersTypeLogsPrototype, err error)

NewTargetParametersTypeLogsPrototype : Instantiate TargetParametersTypeLogsPrototype (Generic Model Constructor)

func (*IBMCloudLogsRoutingV0) NewTargetTypePrototypeTargetTypeLogDnaPrototype

func (*IBMCloudLogsRoutingV0) NewTargetTypePrototypeTargetTypeLogDnaPrototype(logSinkCRN string, name string) (_model *TargetTypePrototypeTargetTypeLogDnaPrototype, err error)

NewTargetTypePrototypeTargetTypeLogDnaPrototype : Instantiate TargetTypePrototypeTargetTypeLogDnaPrototype (Generic Model Constructor)

func (*IBMCloudLogsRoutingV0) NewTargetTypePrototypeTargetTypeLogsPrototype

func (*IBMCloudLogsRoutingV0) NewTargetTypePrototypeTargetTypeLogsPrototype(logSinkCRN string, name string) (_model *TargetTypePrototypeTargetTypeLogsPrototype, err error)

NewTargetTypePrototypeTargetTypeLogsPrototype : Instantiate TargetTypePrototypeTargetTypeLogsPrototype (Generic Model Constructor)

func (*IBMCloudLogsRoutingV0) NewUpdateTargetOptions

func (*IBMCloudLogsRoutingV0) NewUpdateTargetOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID, targetID *strfmt.UUID, ifMatch string, targetTypePatch map[string]interface{}) *UpdateTargetOptions

NewUpdateTargetOptions : Instantiate UpdateTargetOptions

func (*IBMCloudLogsRoutingV0) NewUpdateTenantOptions

func (*IBMCloudLogsRoutingV0) NewUpdateTenantOptions(ibmAPIVersion string, region string, tenantID *strfmt.UUID, ifMatch string, tenantPatch map[string]interface{}) *UpdateTenantOptions

NewUpdateTenantOptions : Instantiate UpdateTenantOptions

func (*IBMCloudLogsRoutingV0) SetDefaultHeaders

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*IBMCloudLogsRoutingV0) SetEnableGzipCompression

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*IBMCloudLogsRoutingV0) SetServiceRegion added in v1.0.4

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) SetServiceRegion(region string) error

SetServiceRegion sets the service region

func (*IBMCloudLogsRoutingV0) SetServiceURL

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*IBMCloudLogsRoutingV0) UpdateLogsTargetWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateLogsTargetWithContext(ctx context.Context, updateTargetOptions *UpdateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

UpdateTargetWithContext is an alternate form of the UpdateTarget method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) UpdateLogsTargetWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateLogsTargetWithContextEndpoint(ctx context.Context, updateTargetOptions *UpdateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) UpdateTarget

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTarget(updateTargetOptions *UpdateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

UpdateTarget : Update a target Update a target.<br><b>Note:</b>A change of the target type is only supported for tenants with a single target.

func (*IBMCloudLogsRoutingV0) UpdateTargetWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTargetWithContext(ctx context.Context, updateTargetOptions *UpdateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

UpdateTargetWithContext is an alternate form of the UpdateTarget method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) UpdateTargetWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTargetWithContextEndpoint(ctx context.Context, updateTargetOptions *UpdateTargetOptions) (result TargetTypeIntf, response *core.DetailedResponse, err error)

func (*IBMCloudLogsRoutingV0) UpdateTenant

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTenant(updateTenantOptions *UpdateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

UpdateTenant : Update a tenant Update a tenant.

func (*IBMCloudLogsRoutingV0) UpdateTenantWithContext

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTenantWithContext(ctx context.Context, updateTenantOptions *UpdateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

UpdateTenantWithContext is an alternate form of the UpdateTenant method which supports a Context parameter

func (*IBMCloudLogsRoutingV0) UpdateTenantWithContextEndpoint added in v1.0.6

func (ibmCloudLogsRouting *IBMCloudLogsRoutingV0) UpdateTenantWithContextEndpoint(ctx context.Context, updateTenantOptions *UpdateTenantOptions) (result *Tenant, response *core.DetailedResponse, err error)

type IBMCloudLogsRoutingV0Options

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

IBMCloudLogsRoutingV0Options : Service options

type ListTenantTargetsOptions

type ListTenantTargetsOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// Include this optional field if you want to list the targets tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// Optional: Name of the tenant target.
	Name *string `json:"name,omitempty"`

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

ListTenantTargetsOptions : The ListTenantTargets options.

func (*ListTenantTargetsOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*ListTenantTargetsOptions) SetIBMAPIVersion

func (_options *ListTenantTargetsOptions) SetIBMAPIVersion(ibmAPIVersion string) *ListTenantTargetsOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*ListTenantTargetsOptions) SetName

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

SetName : Allow user to set Name

func (*ListTenantTargetsOptions) SetRegion added in v1.0.4

func (_options *ListTenantTargetsOptions) SetRegion(region string) *ListTenantTargetsOptions

SetRegion : Allow user to set Region

func (*ListTenantTargetsOptions) SetTenantID

func (_options *ListTenantTargetsOptions) SetTenantID(tenantID *strfmt.UUID) *ListTenantTargetsOptions

SetTenantID : Allow user to set TenantID

type ListTenantsOptions

type ListTenantsOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Optional: The name of a tenant.
	Name *string `json:"name,omitempty"`

	// Include this optional field if you want to list the tenants in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

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

ListTenantsOptions : The ListTenants options.

func (*ListTenantsOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*ListTenantsOptions) SetIBMAPIVersion

func (_options *ListTenantsOptions) SetIBMAPIVersion(ibmAPIVersion string) *ListTenantsOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*ListTenantsOptions) SetName

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

SetName : Allow user to set Name

func (*ListTenantsOptions) SetRegion added in v1.0.4

func (_options *ListTenantsOptions) SetRegion(region string) *ListTenantsOptions

SetRegion : Allow user to set Region

type TargetParametersTypeLogDna

type TargetParametersTypeLogDna struct {
	// Host name of the log-sink.
	Host *string `json:"host" validate:"required"`

	// Network port of the log-sink.
	Port *int64 `json:"port" validate:"required"`
}

TargetParametersTypeLogDna : List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).

type TargetParametersTypeLogDnaPrototype

type TargetParametersTypeLogDnaPrototype struct {
	// Host name of the log-sink.
	Host *string `json:"host" validate:"required"`

	// Network port of the log-sink.
	Port *int64 `json:"port" validate:"required"`
}

TargetParametersTypeLogDnaPrototype : List of properties to create or update a log-sink of type <b>logdna</b> (IBM Log Analysis).

type TargetParametersTypeLogs

type TargetParametersTypeLogs struct {
	// Host name of the log-sink.
	Host *string `json:"host" validate:"required"`

	// Network port of the log-sink.
	Port *int64 `json:"port" validate:"required"`
}

TargetParametersTypeLogs : List of properties returned from a successful list operation for a log-sink of type <b>logs</b> (IBM Cloud Logs).

type TargetParametersTypeLogsPrototype

type TargetParametersTypeLogsPrototype struct {
	// Host name of the log-sink.
	Host *string `json:"host" validate:"required"`

	// Network port of the log-sink.
	Port *int64 `json:"port" validate:"required"`
}

TargetParametersTypeLogsPrototype : List of properties to create or update a log-sink of type <b>logs</b> (IBM Cloud Logs).

type TargetType

type TargetType struct {
	// Unique ID of the target.
	ID *strfmt.UUID `json:"id,omitempty"`

	// Cloud resource name of the log-sink target instance.
	LogSinkCRN *string `json:"log_sink_crn,omitempty"`

	// The name for this tenant target. The name is unique across all targets for this tenant.
	Name *string `json:"name,omitempty"`

	// Resource version identifier.
	Etag *string `json:"etag,omitempty"`

	// Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.
	Type *string `json:"type,omitempty"`

	// Time stamp the target was originally created.
	CreatedAt *string `json:"created_at,omitempty"`

	// Time stamp the target was last updated.
	UpdatedAt *string `json:"updated_at,omitempty"`

	// List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
	Parameters *TargetParametersTypeLogDna `json:"parameters,omitempty"`
}

TargetType : Parameter set describing a particular type of target. Models which "extend" this model: - TargetTypeLogDna - TargetTypeLogs

type TargetTypeCollection

type TargetTypeCollection struct {
	// List of target of a tenant.
	Targets []TargetTypeIntf `json:"targets,omitempty"`
}

TargetTypeCollection : Response body from a successful list targets operation.

type TargetTypeIntf

type TargetTypeIntf interface {
	// contains filtered or unexported methods
}

type TargetTypeLogDna

type TargetTypeLogDna struct {
	// Unique ID of the target.
	ID *strfmt.UUID `json:"id" validate:"required"`

	// Cloud resource name of the log-sink target instance.
	LogSinkCRN *string `json:"log_sink_crn" validate:"required"`

	// The name for this tenant target. The name is unique across all targets for this tenant.
	Name *string `json:"name" validate:"required"`

	// Resource version identifier.
	Etag *string `json:"etag" validate:"required"`

	// Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.
	Type *string `json:"type" validate:"required"`

	// Time stamp the target was originally created.
	CreatedAt *string `json:"created_at" validate:"required"`

	// Time stamp the target was last updated.
	UpdatedAt *string `json:"updated_at" validate:"required"`

	// List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
	Parameters *TargetParametersTypeLogDna `json:"parameters,omitempty"`
}

TargetTypeLogDna : Full target description. This model "extends" TargetType

type TargetTypeLogs

type TargetTypeLogs struct {
	// Unique ID of the target.
	ID *strfmt.UUID `json:"id" validate:"required"`

	// Cloud resource name of the log-sink target instance.
	LogSinkCRN *string `json:"log_sink_crn" validate:"required"`

	// The name for this tenant target. The name is unique across all targets for this tenant.
	Name *string `json:"name" validate:"required"`

	// Resource version identifier.
	Etag *string `json:"etag" validate:"required"`

	// Type of log-sink. Identical to the <code>service-name</code> segment of <code>log_sink_crn</code>.
	Type *string `json:"type" validate:"required"`

	// Time stamp the target was originally created.
	CreatedAt *string `json:"created_at" validate:"required"`

	// Time stamp the target was last updated.
	UpdatedAt *string `json:"updated_at" validate:"required"`

	// List of properties returned from a successful list operation for a log-sink of type <b>logs</b> (IBM Cloud Logs).
	Parameters *TargetParametersTypeLogs `json:"parameters,omitempty"`
}

TargetTypeLogs : Full target description. This model "extends" TargetType

type TargetTypePatch

type TargetTypePatch struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sinks are:<br><ul><li>IBM Log Analysis
	// (logdna)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn,omitempty"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name,omitempty"`

	// List of properties to create or update a log-sink of type <b>logdna</b> (IBM Log Analysis).
	Parameters *TargetParametersTypeLogDnaPrototype `json:"parameters,omitempty"`
}

TargetTypePatch : Parameter set describing a particular type of target. Models which "extend" this model: - TargetTypePatchLogDna - TargetTypePatchLogs

func (*TargetTypePatch) AsPatch

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

AsPatch returns a generic map representation of the TargetTypePatch

type TargetTypePatchIntf

type TargetTypePatchIntf interface {
	// contains filtered or unexported methods
}

type TargetTypePatchLogDna

type TargetTypePatchLogDna struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sinks are:<br><ul><li>IBM Log Analysis
	// (logdna)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn,omitempty"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name,omitempty"`

	// List of properties to create or update a log-sink of type <b>logdna</b> (IBM Log Analysis).
	Parameters *TargetParametersTypeLogDnaPrototype `json:"parameters,omitempty"`
}

TargetTypePatchLogDna : The request body used when updating the target of a tenant. At least one other value is required. This model "extends" TargetTypePatch

func (*TargetTypePatchLogDna) AsPatch

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

AsPatch returns a generic map representation of the TargetTypePatchLogDna

type TargetTypePatchLogs

type TargetTypePatchLogs struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sinks are:<br><ul><li><b>logs</b> (IBM Cloud
	// Logs)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn,omitempty"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name,omitempty"`

	// List of properties to create or update a log-sink of type <b>logs</b> (IBM Cloud Logs).
	Parameters *TargetParametersTypeLogsPrototype `json:"parameters,omitempty"`
}

TargetTypePatchLogs : The request body used when updating the target of a tenant. At least one other value is required. This model "extends" TargetTypePatch

func (*TargetTypePatchLogs) AsPatch

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

AsPatch returns a generic map representation of the TargetTypePatchLogs

type TargetTypePrototype

type TargetTypePrototype struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sink is:<br><ul><li><b>logdna</b> (IBM Log
	// Analysis)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn,omitempty"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name,omitempty"`

	// List of properties to create or update a log-sink of type <b>logdna</b> (IBM Log Analysis).
	Parameters *TargetParametersTypeLogDnaPrototype `json:"parameters,omitempty"`
}

TargetTypePrototype : Parameter set describing a particular type of target. Models which "extend" this model: - TargetTypePrototypeTargetTypeLogDnaPrototype - TargetTypePrototypeTargetTypeLogsPrototype

type TargetTypePrototypeIntf

type TargetTypePrototypeIntf interface {
	// contains filtered or unexported methods
}

type TargetTypePrototypeTargetTypeLogDnaPrototype

type TargetTypePrototypeTargetTypeLogDnaPrototype struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sink is:<br><ul><li><b>logdna</b> (IBM Log
	// Analysis)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn" validate:"required"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name" validate:"required"`

	// List of properties to create or update a log-sink of type <b>logdna</b> (IBM Log Analysis).
	Parameters *TargetParametersTypeLogDnaPrototype `json:"parameters,omitempty"`
}

TargetTypePrototypeTargetTypeLogDnaPrototype : Full target description. This model "extends" TargetTypePrototype

type TargetTypePrototypeTargetTypeLogsPrototype

type TargetTypePrototypeTargetTypeLogsPrototype struct {
	// Cloud resource name of the log-sink target instance.<br>Supported log-sink is:<br><ul><li><b>logs</b> (IBM Cloud
	// Logs)</li></ul>.
	LogSinkCRN *string `json:"log_sink_crn" validate:"required"`

	// The name for this tenant target. The name must be unique across all targets for this tenant.
	Name *string `json:"name" validate:"required"`

	// List of properties to create or update a log-sink of type <b>logs</b> (IBM Cloud Logs).
	Parameters *TargetParametersTypeLogsPrototype `json:"parameters,omitempty"`
}

TargetTypePrototypeTargetTypeLogsPrototype : Full target description. This model "extends" TargetTypePrototype

type Tenant

type Tenant struct {
	// Unique ID of the tenant.
	ID *strfmt.UUID `json:"id" validate:"required"`

	// Time stamp the tenant was originally created.
	CreatedAt *string `json:"created_at" validate:"required"`

	// Time stamp the tenant was last updated.
	UpdatedAt *string `json:"updated_at" validate:"required"`

	// Cloud resource name of the tenant.
	CRN *string `json:"crn" validate:"required"`

	// The name for this tenant. The name is regionally unique across all tenants in the account.
	Name *string `json:"name" validate:"required"`

	// Resource version identifier.
	Etag *string `json:"etag" validate:"required"`

	// List of targets.
	Targets []TargetTypeIntf `json:"targets" validate:"required"`

	// The status of the write attempt to the target with the provided endpoint parameters.
	WriteStatus *WriteStatus `json:"write_status" validate:"required"`
}

Tenant : Full tenant description.

type TenantCollection

type TenantCollection struct {
	// List of tenants in the account.
	Tenants []Tenant `json:"tenants,omitempty"`
}

TenantCollection : Response body from a successful list tenants operation.

type TenantPatch

type TenantPatch struct {
	// The name for this tenant. The name must be regionally unique across all tenants in the account.
	Name *string `json:"name,omitempty"`
}

TenantPatch : The request body used when updating a tenant.

func (*TenantPatch) AsPatch

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

AsPatch returns a generic map representation of the TenantPatch

type UpdateTargetOptions

type UpdateTargetOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Include this optional field if you want to update a target for a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// The instance ID of the tenant target.
	TargetID *strfmt.UUID `json:"target_id" validate:"required"`

	// ETag provided by GET, POST or PATCH.
	IfMatch *string `json:"If-Match" validate:"required"`

	// Updates a target of a tenant.
	TargetTypePatch map[string]interface{} `json:"TargetTypePatch" validate:"required"`

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

UpdateTargetOptions : The UpdateTarget options.

func (*UpdateTargetOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*UpdateTargetOptions) SetIBMAPIVersion

func (_options *UpdateTargetOptions) SetIBMAPIVersion(ibmAPIVersion string) *UpdateTargetOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*UpdateTargetOptions) SetIfMatch

func (_options *UpdateTargetOptions) SetIfMatch(ifMatch string) *UpdateTargetOptions

SetIfMatch : Allow user to set IfMatch

func (*UpdateTargetOptions) SetRegion added in v1.0.4

func (_options *UpdateTargetOptions) SetRegion(region string) *UpdateTargetOptions

SetRegion : Allow user to set Region

func (*UpdateTargetOptions) SetTargetID

func (_options *UpdateTargetOptions) SetTargetID(targetID *strfmt.UUID) *UpdateTargetOptions

SetTargetID : Allow user to set TargetID

func (*UpdateTargetOptions) SetTargetTypePatch

func (_options *UpdateTargetOptions) SetTargetTypePatch(targetTypePatch map[string]interface{}) *UpdateTargetOptions

SetTargetTypePatch : Allow user to set TargetTypePatch

func (*UpdateTargetOptions) SetTenantID

func (_options *UpdateTargetOptions) SetTenantID(tenantID *strfmt.UUID) *UpdateTargetOptions

SetTenantID : Allow user to set TenantID

type UpdateTenantOptions

type UpdateTenantOptions struct {
	// Requests the version of the API as of a date in the format YYYY-MM-DD. Any date up to the current date can be
	// provided. Specify the current date to request the latest version.
	IBMAPIVersion *string `json:"IBM-API-Version" validate:"-"`

	// Include this optional field if you want to update a tenant in a different region other than the one you are connected.
	Region *string `json:"region,omitempty"`

	// The instance ID of the tenant.
	TenantID *strfmt.UUID `json:"tenant_id" validate:"required"`

	// ETag provided by GET, POST or PATCH.
	IfMatch *string `json:"If-Match" validate:"required"`

	// Update of a tenant.
	TenantPatch map[string]interface{} `json:"Tenant_patch" validate:"required"`

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

UpdateTenantOptions : The UpdateTenant options.

func (*UpdateTenantOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*UpdateTenantOptions) SetIBMAPIVersion

func (_options *UpdateTenantOptions) SetIBMAPIVersion(ibmAPIVersion string) *UpdateTenantOptions

SetIBMAPIVersion : Allow user to set IBMAPIVersion

func (*UpdateTenantOptions) SetIfMatch

func (_options *UpdateTenantOptions) SetIfMatch(ifMatch string) *UpdateTenantOptions

SetIfMatch : Allow user to set IfMatch

func (*UpdateTenantOptions) SetRegion added in v1.0.4

func (_options *UpdateTenantOptions) SetRegion(region string) *UpdateTenantOptions

SetRegion : Allow user to set Region

func (*UpdateTenantOptions) SetTenantID

func (_options *UpdateTenantOptions) SetTenantID(tenantID *strfmt.UUID) *UpdateTenantOptions

SetTenantID : Allow user to set TenantID

func (*UpdateTenantOptions) SetTenantPatch

func (_options *UpdateTenantOptions) SetTenantPatch(tenantPatch map[string]interface{}) *UpdateTenantOptions

SetTenantPatch : Allow user to set TenantPatch

type WriteStatus added in v1.0.8

type WriteStatus struct {
	// The status such as failed or success.
	Status *string `json:"status" validate:"required"`

	// Detailed description of the cause of the failure.
	ReasonForLastFailure *string `json:"reason_for_last_failure,omitempty"`

	// The timestamp of the failure.
	LastFailure *strfmt.DateTime `json:"last_failure,omitempty"`
}

WriteStatus : The status of the write attempt to the target with the provided endpoint parameters.

Jump to

Keyboard shortcuts

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