host_based

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package host_based contains Host Based Security functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	SOKind              string `json:"sokind" required:"true"`
	TenantID            string `json:"tenant_id" required:"true"`
	Locale              string `json:"locale,omitempty"`
	ServiceOrderService string `json:"service_order_service" required:"true"`
	MaxAgentValue       int    `json:"max_agent_value" required:"true"`
	MailAddress         string `json:"mailaddress" required:"true"`
	DSMLang             string `json:"dsm_lang" required:"true"`
	TimeZone            string `json:"time_zone" required:"true"`
}

CreateOpts represents parameters used to create a Host based security.

func (CreateOpts) ToHostBasedCreateMap

func (opts CreateOpts) ToHostBasedCreateMap() (map[string]interface{}, error)

ToHostBasedCreateMap formats a CreateOpts into a create request.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToHostBasedCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder allows extensions to add additional parameters to the Create request.

type CreateResult

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

CreateResult represents the result of a create operation. Call its Extract method to interpret it as a Host Based Security.

func Create

func Create(client *eclcloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

Create creates a new Host based security.

func (CreateResult) Extract

func (r CreateResult) Extract() (*HostBasedOrder, error)

Extract is a function that accepts a result and extracts a Host Based Security resource.

func (CreateResult) ExtractInto

func (r CreateResult) ExtractInto(v interface{}) error

Extract interprets any commonResult as a Host Based Security if possible.

type DeleteOpts

type DeleteOpts struct {
	SOKind      string `json:"sokind" required:"true"`
	TenantID    string `json:"tenant_id" required:"true"`
	Locale      string `json:"locale,omitempty"`
	MailAddress string `json:"mailaddress" required:"true"`
}

DeleteOpts represents parameters used to cancel Host Based Security.

func (DeleteOpts) ToHostBasedDeleteMap

func (opts DeleteOpts) ToHostBasedDeleteMap() (map[string]interface{}, error)

ToHostBasedDeleteMap formats a DeleteOpts into a delete request.

type DeleteOptsBuilder

type DeleteOptsBuilder interface {
	ToHostBasedDeleteMap() (map[string]interface{}, error)
}

DeleteOptsBuilder allows extensions to add additional parameters to the Delete request.

type DeleteResult

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

DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.

func Delete

func Delete(client *eclcloud.ServiceClient, opts DeleteOptsBuilder) (r DeleteResult)

Delete deletes a device.

func (DeleteResult) Extract

func (r DeleteResult) Extract() (*HostBasedOrder, error)

Extract is a function that accepts a result and extracts a Host Based Security resource.

func (DeleteResult) ExtractInto

func (r DeleteResult) ExtractInto(v interface{}) error

Extract interprets any commonResult as a Host Based Security if possible.

type GetOpts

type GetOpts struct {
	TenantID string `q:"tenant_id"`
}

GetOpts represents result of host based security API response.

func (GetOpts) ToServiceOrderQuery

func (opts GetOpts) ToServiceOrderQuery() (string, error)

ToServiceOrderQuery formats a GetOpts into a query string.

type GetOptsBuilder

type GetOptsBuilder interface {
	ToServiceOrderQuery() (string, error)
}

GetOptsBuilder allows extensions to add additional parameters to the order progress API request

type GetResult

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

GetResult represents the result of a get operation. Call its Extract method to interpret it as a Host Based Security.

func Get

func Get(client *eclcloud.ServiceClient, opts GetOptsBuilder) (r GetResult)

Get retrieves details of an order progress, by SoId.

func (GetResult) Extract

func (r GetResult) Extract() (*HostBasedSecurity, error)

Extract is a function that accepts a result and extracts a Host Based Security resource.

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

ExtractInto interprets any commonResult as a Host Based Security if possible.

type HostBasedOrder

type HostBasedOrder struct {
	ID      string `json:"soId"`
	Code    string `json:"code"`
	Message string `json:"message"`
	Status  int    `json:"status"`
}

HostBasedOrder represents a Host Based Security's each order.

type HostBasedSecurity

type HostBasedSecurity struct {
	Code                string      `json:"code"`
	Message             string      `json:"message"`
	Region              string      `json:"region"`
	TenantName          string      `json:"tenant_name"`
	TenantDescription   string      `json:"tenant_description"`
	ContractID          string      `json:"contract_id"`
	ServiceOrderService string      `json:"service_order_service"`
	MaxAgentValue       interface{} `json:"max_agent_value"`
	TimeZone            string      `json:"time_zone"`
	CustomerName        string      `json:"customer_name"`
	MailAddress         string      `json:"mailaddress"`
	DSMLang             string      `json:"dsm_lang"`
	TenantFlg           bool        `json:"tenant_flg"`
	Status              int         `json:"status"`
}

HostBasedSecurity represents a Host Based Security's each order.

type UpdateOpts

type UpdateOpts struct {
	SOKind      string `json:"sokind" required:"true"`
	TenantID    string `json:"tenant_id" required:"true"`
	Locale      string `json:"locale,omitempty"`
	MailAddress string `json:"mailaddress" required:"true"`
	// Set this in case of Type M1 Change
	ServiceOrderService *string `json:"service_order_service,omitempty"`
	// Set this in case of Type M2 Change
	MaxAgentValue *int `json:"max_agent_value,omitempty"`
}

UpdateOpts represents parameters to update a Host Based Security.

func (UpdateOpts) ToHostBasedUpdateMap

func (opts UpdateOpts) ToHostBasedUpdateMap() (map[string]interface{}, error)

ToHostBasedUpdateMap formats a UpdateOpts into an update request.

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToHostBasedUpdateMap() (map[string]interface{}, error)
}

UpdateOptsBuilder allows extensions to add additional parameters to the Update request.

type UpdateResult

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

UpdateResult represents the result of an update operation. Call its Extract method to interpret it as a Host Based Security.

func Update

func Update(client *eclcloud.ServiceClient, opts UpdateOptsBuilder) (r UpdateResult)

Update modifies the attributes of a Host Based Security.

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*HostBasedOrder, error)

Extract is a function that accepts a result and extracts a Host Based Security resource.

func (UpdateResult) ExtractInto

func (r UpdateResult) ExtractInto(v interface{}) error

Extract interprets any commonResult as a Host Based Security if possible.

Directories

Path Synopsis
Package testing contains host based security unittests
Package testing contains host based security unittests

Jump to

Keyboard shortcuts

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