azure_database

package
v2.16.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEINVALID captures enum value "DISCOVER_AZURE_DATABASE_TYPE_INVALID"
	AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEINVALID string = "DISCOVER_AZURE_DATABASE_TYPE_INVALID"

	// AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEMYSQL captures enum value "DISCOVER_AZURE_DATABASE_TYPE_MYSQL"
	AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEMYSQL string = "DISCOVER_AZURE_DATABASE_TYPE_MYSQL"

	// AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEPOSTGRESQL captures enum value "DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL"
	AddAzureDatabaseBodyTypeDISCOVERAZUREDATABASETYPEPOSTGRESQL string = "DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL"
)
View Source
const (

	// AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEINVALID captures enum value "DISCOVER_AZURE_DATABASE_TYPE_INVALID"
	AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEINVALID string = "DISCOVER_AZURE_DATABASE_TYPE_INVALID"

	// AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEMYSQL captures enum value "DISCOVER_AZURE_DATABASE_TYPE_MYSQL"
	AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEMYSQL string = "DISCOVER_AZURE_DATABASE_TYPE_MYSQL"

	// AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEPOSTGRESQL captures enum value "DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL"
	AzureDatabaseInstanceItems0TypeDISCOVERAZUREDATABASETYPEPOSTGRESQL string = "DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAzureDatabaseBody

type AddAzureDatabaseBody struct {

	// Azure database location.
	Region string `json:"region,omitempty"`

	// Azure database availability zone.
	Az string `json:"az,omitempty"`

	// Azure database instance ID.
	InstanceID string `json:"instance_id,omitempty"`

	// Represents a purchasable Stock Keeping Unit (SKU) under a product.
	// https://docs.microsoft.com/en-us/partner-center/develop/product-resources#sku.
	NodeModel string `json:"node_model,omitempty"`

	// Address used to connect to it.
	Address string `json:"address,omitempty"`

	// Access port.
	Port int64 `json:"port,omitempty"`

	// Unique across all Nodes user-defined name. Defaults to Azure Database instance ID.
	NodeName string `json:"node_name,omitempty"`

	// Unique across all Services user-defined name. Defaults to Azure Database instance ID.
	ServiceName string `json:"service_name,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Username for scraping metrics.
	Username string `json:"username,omitempty"`

	// Password for scraping metrics.
	Password string `json:"password,omitempty"`

	// Azure client ID.
	AzureClientID string `json:"azure_client_id,omitempty"`

	// Azure client secret.
	AzureClientSecret string `json:"azure_client_secret,omitempty"`

	// Azure tanant ID.
	AzureTenantID string `json:"azure_tenant_id,omitempty"`

	// Azure subscription ID.
	AzureSubscriptionID string `json:"azure_subscription_id,omitempty"`

	// Azure resource group.
	AzureResourceGroup string `json:"azure_resource_group,omitempty"`

	// If true, adds azure_database_exporter.
	AzureDatabaseExporter bool `json:"azure_database_exporter,omitempty"`

	// If true, adds qan-mysql-perfschema-agent or qan-postgresql-pgstatements-agent.
	QAN bool `json:"qan,omitempty"`

	// Custom user-assigned labels for Node and Service.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Skip connection check.
	SkipConnectionCheck bool `json:"skip_connection_check,omitempty"`

	// Use TLS for database connections.
	TLS bool `json:"tls,omitempty"`

	// Skip TLS certificate and hostname validation.
	TLSSkipVerify bool `json:"tls_skip_verify,omitempty"`

	// Disable query examples.
	DisableQueryExamples bool `json:"disable_query_examples,omitempty"`

	// Tablestats group collectors will be disabled if there are more than that number of tables.
	// If zero, server's default value is used.
	// Use negative value to disable them.
	TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"`

	// DiscoverAzureDatabaseType describes supported Azure Database instance engines.
	//
	//  - DISCOVER_AZURE_DATABASE_TYPE_MYSQL: MySQL type: microsoft.dbformysql or MariaDB type: microsoft.dbformariadb
	//  - DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL: PostgreSQL type: microsoft.dbformysql
	// Enum: [DISCOVER_AZURE_DATABASE_TYPE_INVALID DISCOVER_AZURE_DATABASE_TYPE_MYSQL DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL]
	Type *string `json:"type,omitempty"`
}

AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody

func (*AddAzureDatabaseBody) MarshalBinary

func (o *AddAzureDatabaseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddAzureDatabaseBody) UnmarshalBinary

func (o *AddAzureDatabaseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddAzureDatabaseBody) Validate

func (o *AddAzureDatabaseBody) Validate(formats strfmt.Registry) error

Validate validates this add azure database body

type AddAzureDatabaseDefault

type AddAzureDatabaseDefault struct {
	Payload *AddAzureDatabaseDefaultBody
	// contains filtered or unexported fields
}

AddAzureDatabaseDefault handles this case with default header values.

An unexpected error response.

func NewAddAzureDatabaseDefault

func NewAddAzureDatabaseDefault(code int) *AddAzureDatabaseDefault

NewAddAzureDatabaseDefault creates a AddAzureDatabaseDefault with default headers values

func (*AddAzureDatabaseDefault) Code

func (o *AddAzureDatabaseDefault) Code() int

Code gets the status code for the add azure database default response

func (*AddAzureDatabaseDefault) Error

func (o *AddAzureDatabaseDefault) Error() string

func (*AddAzureDatabaseDefault) GetPayload

type AddAzureDatabaseDefaultBody

type AddAzureDatabaseDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody

func (*AddAzureDatabaseDefaultBody) MarshalBinary

func (o *AddAzureDatabaseDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddAzureDatabaseDefaultBody) UnmarshalBinary

func (o *AddAzureDatabaseDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddAzureDatabaseDefaultBody) Validate

func (o *AddAzureDatabaseDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add azure database default body

type AddAzureDatabaseOK

type AddAzureDatabaseOK struct {
	Payload interface{}
}

AddAzureDatabaseOK handles this case with default header values.

A successful response.

func NewAddAzureDatabaseOK

func NewAddAzureDatabaseOK() *AddAzureDatabaseOK

NewAddAzureDatabaseOK creates a AddAzureDatabaseOK with default headers values

func (*AddAzureDatabaseOK) Error

func (o *AddAzureDatabaseOK) Error() string

func (*AddAzureDatabaseOK) GetPayload

func (o *AddAzureDatabaseOK) GetPayload() interface{}

type AddAzureDatabaseParams

type AddAzureDatabaseParams struct {

	/*Body*/
	Body AddAzureDatabaseBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddAzureDatabaseParams contains all the parameters to send to the API endpoint for the add azure database operation typically these are written to a http.Request

func NewAddAzureDatabaseParams

func NewAddAzureDatabaseParams() *AddAzureDatabaseParams

NewAddAzureDatabaseParams creates a new AddAzureDatabaseParams object with the default values initialized.

func NewAddAzureDatabaseParamsWithContext

func NewAddAzureDatabaseParamsWithContext(ctx context.Context) *AddAzureDatabaseParams

NewAddAzureDatabaseParamsWithContext creates a new AddAzureDatabaseParams object with the default values initialized, and the ability to set a context for a request

func NewAddAzureDatabaseParamsWithHTTPClient

func NewAddAzureDatabaseParamsWithHTTPClient(client *http.Client) *AddAzureDatabaseParams

NewAddAzureDatabaseParamsWithHTTPClient creates a new AddAzureDatabaseParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddAzureDatabaseParamsWithTimeout

func NewAddAzureDatabaseParamsWithTimeout(timeout time.Duration) *AddAzureDatabaseParams

NewAddAzureDatabaseParamsWithTimeout creates a new AddAzureDatabaseParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddAzureDatabaseParams) SetBody

SetBody adds the body to the add azure database params

func (*AddAzureDatabaseParams) SetContext

func (o *AddAzureDatabaseParams) SetContext(ctx context.Context)

SetContext adds the context to the add azure database params

func (*AddAzureDatabaseParams) SetHTTPClient

func (o *AddAzureDatabaseParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add azure database params

func (*AddAzureDatabaseParams) SetTimeout

func (o *AddAzureDatabaseParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add azure database params

func (*AddAzureDatabaseParams) WithBody

WithBody adds the body to the add azure database params

func (*AddAzureDatabaseParams) WithContext

WithContext adds the context to the add azure database params

func (*AddAzureDatabaseParams) WithHTTPClient

func (o *AddAzureDatabaseParams) WithHTTPClient(client *http.Client) *AddAzureDatabaseParams

WithHTTPClient adds the HTTPClient to the add azure database params

func (*AddAzureDatabaseParams) WithTimeout

WithTimeout adds the timeout to the add azure database params

func (*AddAzureDatabaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddAzureDatabaseReader

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

AddAzureDatabaseReader is a Reader for the AddAzureDatabase structure.

func (*AddAzureDatabaseReader) ReadResponse

func (o *AddAzureDatabaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type AzureDatabaseInstanceItems0

type AzureDatabaseInstanceItems0 struct {

	// Azure database instance ID.
	InstanceID string `json:"instance_id,omitempty"`

	// Azure database location.
	Region string `json:"region,omitempty"`

	// Azure database server name.
	ServiceName string `json:"service_name,omitempty"`

	// Database username.
	Username string `json:"username,omitempty"`

	// Address used to connect to it.
	Address string `json:"address,omitempty"`

	// Azure Resource group.
	AzureResourceGroup string `json:"azure_resource_group,omitempty"`

	// Environment tag.
	Environment string `json:"environment,omitempty"`

	// DiscoverAzureDatabaseType describes supported Azure Database instance engines.
	//
	//  - DISCOVER_AZURE_DATABASE_TYPE_MYSQL: MySQL type: microsoft.dbformysql or MariaDB type: microsoft.dbformariadb
	//  - DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL: PostgreSQL type: microsoft.dbformysql
	// Enum: [DISCOVER_AZURE_DATABASE_TYPE_INVALID DISCOVER_AZURE_DATABASE_TYPE_MYSQL DISCOVER_AZURE_DATABASE_TYPE_POSTGRESQL]
	Type *string `json:"type,omitempty"`

	// Azure database availability zone.
	Az string `json:"az,omitempty"`

	// Represents a purchasable Stock Keeping Unit (SKU) under a product.
	// https://docs.microsoft.com/en-us/partner-center/develop/product-resources#sku.
	NodeModel string `json:"node_model,omitempty"`
}

AzureDatabaseInstanceItems0 DiscoverAzureDatabaseInstance models an unique Azure Database instance for the list of instances returned by Discovery. swagger:model AzureDatabaseInstanceItems0

func (*AzureDatabaseInstanceItems0) MarshalBinary

func (o *AzureDatabaseInstanceItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AzureDatabaseInstanceItems0) UnmarshalBinary

func (o *AzureDatabaseInstanceItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AzureDatabaseInstanceItems0) Validate

func (o *AzureDatabaseInstanceItems0) Validate(formats strfmt.Registry) error

Validate validates this azure database instance items0

type Client

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

Client for azure database API

func (*Client) AddAzureDatabase

func (a *Client) AddAzureDatabase(params *AddAzureDatabaseParams) (*AddAzureDatabaseOK, error)

AddAzureDatabase adds azure database adds azure database instance

func (*Client) DiscoverAzureDatabase

func (a *Client) DiscoverAzureDatabase(params *DiscoverAzureDatabaseParams) (*DiscoverAzureDatabaseOK, error)

DiscoverAzureDatabase discovers azure database discovers azure database for my SQL maria DB and postgre SQL server instances

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AddAzureDatabase(params *AddAzureDatabaseParams) (*AddAzureDatabaseOK, error)

	DiscoverAzureDatabase(params *DiscoverAzureDatabaseParams) (*DiscoverAzureDatabaseOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new azure database API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type DiscoverAzureDatabaseBody

type DiscoverAzureDatabaseBody struct {

	// Azure client ID.
	AzureClientID string `json:"azure_client_id,omitempty"`

	// Azure client secret.
	AzureClientSecret string `json:"azure_client_secret,omitempty"`

	// Azure tanant ID.
	AzureTenantID string `json:"azure_tenant_id,omitempty"`

	// Azure subscription ID.
	AzureSubscriptionID string `json:"azure_subscription_id,omitempty"`
}

DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases request. swagger:model DiscoverAzureDatabaseBody

func (*DiscoverAzureDatabaseBody) MarshalBinary

func (o *DiscoverAzureDatabaseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoverAzureDatabaseBody) UnmarshalBinary

func (o *DiscoverAzureDatabaseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoverAzureDatabaseBody) Validate

func (o *DiscoverAzureDatabaseBody) Validate(formats strfmt.Registry) error

Validate validates this discover azure database body

type DiscoverAzureDatabaseDefault

type DiscoverAzureDatabaseDefault struct {
	Payload *DiscoverAzureDatabaseDefaultBody
	// contains filtered or unexported fields
}

DiscoverAzureDatabaseDefault handles this case with default header values.

An unexpected error response.

func NewDiscoverAzureDatabaseDefault

func NewDiscoverAzureDatabaseDefault(code int) *DiscoverAzureDatabaseDefault

NewDiscoverAzureDatabaseDefault creates a DiscoverAzureDatabaseDefault with default headers values

func (*DiscoverAzureDatabaseDefault) Code

Code gets the status code for the discover azure database default response

func (*DiscoverAzureDatabaseDefault) Error

func (*DiscoverAzureDatabaseDefault) GetPayload

type DiscoverAzureDatabaseDefaultBody

type DiscoverAzureDatabaseDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody

func (*DiscoverAzureDatabaseDefaultBody) MarshalBinary

func (o *DiscoverAzureDatabaseDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoverAzureDatabaseDefaultBody) UnmarshalBinary

func (o *DiscoverAzureDatabaseDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoverAzureDatabaseDefaultBody) Validate

Validate validates this discover azure database default body

type DiscoverAzureDatabaseOK

type DiscoverAzureDatabaseOK struct {
	Payload *DiscoverAzureDatabaseOKBody
}

DiscoverAzureDatabaseOK handles this case with default header values.

A successful response.

func NewDiscoverAzureDatabaseOK

func NewDiscoverAzureDatabaseOK() *DiscoverAzureDatabaseOK

NewDiscoverAzureDatabaseOK creates a DiscoverAzureDatabaseOK with default headers values

func (*DiscoverAzureDatabaseOK) Error

func (o *DiscoverAzureDatabaseOK) Error() string

func (*DiscoverAzureDatabaseOK) GetPayload

type DiscoverAzureDatabaseOKBody

type DiscoverAzureDatabaseOKBody struct {

	// azure database instance
	AzureDatabaseInstance []*AzureDatabaseInstanceItems0 `json:"azure_database_instance"`
}

DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databases response. swagger:model DiscoverAzureDatabaseOKBody

func (*DiscoverAzureDatabaseOKBody) MarshalBinary

func (o *DiscoverAzureDatabaseOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoverAzureDatabaseOKBody) UnmarshalBinary

func (o *DiscoverAzureDatabaseOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoverAzureDatabaseOKBody) Validate

func (o *DiscoverAzureDatabaseOKBody) Validate(formats strfmt.Registry) error

Validate validates this discover azure database OK body

type DiscoverAzureDatabaseParams

type DiscoverAzureDatabaseParams struct {

	/*Body*/
	Body DiscoverAzureDatabaseBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DiscoverAzureDatabaseParams contains all the parameters to send to the API endpoint for the discover azure database operation typically these are written to a http.Request

func NewDiscoverAzureDatabaseParams

func NewDiscoverAzureDatabaseParams() *DiscoverAzureDatabaseParams

NewDiscoverAzureDatabaseParams creates a new DiscoverAzureDatabaseParams object with the default values initialized.

func NewDiscoverAzureDatabaseParamsWithContext

func NewDiscoverAzureDatabaseParamsWithContext(ctx context.Context) *DiscoverAzureDatabaseParams

NewDiscoverAzureDatabaseParamsWithContext creates a new DiscoverAzureDatabaseParams object with the default values initialized, and the ability to set a context for a request

func NewDiscoverAzureDatabaseParamsWithHTTPClient

func NewDiscoverAzureDatabaseParamsWithHTTPClient(client *http.Client) *DiscoverAzureDatabaseParams

NewDiscoverAzureDatabaseParamsWithHTTPClient creates a new DiscoverAzureDatabaseParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDiscoverAzureDatabaseParamsWithTimeout

func NewDiscoverAzureDatabaseParamsWithTimeout(timeout time.Duration) *DiscoverAzureDatabaseParams

NewDiscoverAzureDatabaseParamsWithTimeout creates a new DiscoverAzureDatabaseParams object with the default values initialized, and the ability to set a timeout on a request

func (*DiscoverAzureDatabaseParams) SetBody

SetBody adds the body to the discover azure database params

func (*DiscoverAzureDatabaseParams) SetContext

func (o *DiscoverAzureDatabaseParams) SetContext(ctx context.Context)

SetContext adds the context to the discover azure database params

func (*DiscoverAzureDatabaseParams) SetHTTPClient

func (o *DiscoverAzureDatabaseParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the discover azure database params

func (*DiscoverAzureDatabaseParams) SetTimeout

func (o *DiscoverAzureDatabaseParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the discover azure database params

func (*DiscoverAzureDatabaseParams) WithBody

WithBody adds the body to the discover azure database params

func (*DiscoverAzureDatabaseParams) WithContext

WithContext adds the context to the discover azure database params

func (*DiscoverAzureDatabaseParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the discover azure database params

func (*DiscoverAzureDatabaseParams) WithTimeout

WithTimeout adds the timeout to the discover azure database params

func (*DiscoverAzureDatabaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DiscoverAzureDatabaseReader

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

DiscoverAzureDatabaseReader is a Reader for the DiscoverAzureDatabase structure.

func (*DiscoverAzureDatabaseReader) ReadResponse

func (o *DiscoverAzureDatabaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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