sqlpoolsschemas

package
v0.20240815.1003113 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsschemas Documentation

The sqlpoolsschemas SDK allows for interaction with the Azure Resource Manager Service synapse (API Version 2021-06-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsschemas"

Client Initialization

client := sqlpoolsschemas.NewSqlPoolsSchemasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsSchemasClient.SqlPoolSchemasList

ctx := context.TODO()
id := sqlpoolsschemas.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

// alternatively `client.SqlPoolSchemasList(ctx, id, sqlpoolsschemas.DefaultSqlPoolSchemasListOperationOptions())` can be used to do batched pagination
items, err := client.SqlPoolSchemasListComplete(ctx, id, sqlpoolsschemas.DefaultSqlPoolSchemasListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SqlPoolsSchemasClient.SqlPoolVulnerabilityAssessmentScansList

ctx := context.TODO()
id := sqlpoolsschemas.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

// alternatively `client.SqlPoolVulnerabilityAssessmentScansList(ctx, id)` can be used to do batched pagination
items, err := client.SqlPoolVulnerabilityAssessmentScansListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SqlPoolsSchemasClient.SqlPoolVulnerabilityAssessmentsList

ctx := context.TODO()
id := sqlpoolsschemas.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

// alternatively `client.SqlPoolVulnerabilityAssessmentsList(ctx, id)` can be used to do batched pagination
items, err := client.SqlPoolVulnerabilityAssessmentsListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForVulnerabilityAssessmentScanState

func PossibleValuesForVulnerabilityAssessmentScanState() []string

func PossibleValuesForVulnerabilityAssessmentScanTriggerType

func PossibleValuesForVulnerabilityAssessmentScanTriggerType() []string

func ValidateSqlPoolID

func ValidateSqlPoolID(input interface{}, key string) (warnings []string, errors []error)

ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID

Types

type Resource

type Resource struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type ResourceOperationPredicate

type ResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ResourceOperationPredicate) Matches

func (p ResourceOperationPredicate) Matches(input Resource) bool

type SqlPoolId

type SqlPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
}

SqlPoolId is a struct representing the Resource ID for a Sql Pool

func NewSqlPoolID

func NewSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string) SqlPoolId

NewSqlPoolID returns a new SqlPoolId struct

func ParseSqlPoolID

func ParseSqlPoolID(input string) (*SqlPoolId, error)

ParseSqlPoolID parses 'input' into a SqlPoolId

func ParseSqlPoolIDInsensitively

func ParseSqlPoolIDInsensitively(input string) (*SqlPoolId, error)

ParseSqlPoolIDInsensitively parses 'input' case-insensitively into a SqlPoolId note: this method should only be used for API response data and not user input

func (*SqlPoolId) FromParseResult

func (id *SqlPoolId) FromParseResult(input resourceids.ParseResult) error

func (SqlPoolId) ID

func (id SqlPoolId) ID() string

ID returns the formatted Sql Pool ID

func (SqlPoolId) Segments

func (id SqlPoolId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Sql Pool ID

func (SqlPoolId) String

func (id SqlPoolId) String() string

String returns a human-readable description of this Sql Pool ID

type SqlPoolSchemasListCompleteResult

type SqlPoolSchemasListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Resource
}

type SqlPoolSchemasListCustomPager added in v0.20240628.1153531

type SqlPoolSchemasListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *SqlPoolSchemasListCustomPager) NextPageLink() *odata.Link

type SqlPoolSchemasListOperationOptions

type SqlPoolSchemasListOperationOptions struct {
	Filter *string
}

func DefaultSqlPoolSchemasListOperationOptions

func DefaultSqlPoolSchemasListOperationOptions() SqlPoolSchemasListOperationOptions

func (SqlPoolSchemasListOperationOptions) ToHeaders

func (SqlPoolSchemasListOperationOptions) ToOData

func (SqlPoolSchemasListOperationOptions) ToQuery

type SqlPoolSchemasListOperationResponse

type SqlPoolSchemasListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Resource
}

type SqlPoolVulnerabilityAssessment

type SqlPoolVulnerabilityAssessment struct {
	Id         *string                                   `json:"id,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties *SqlPoolVulnerabilityAssessmentProperties `json:"properties,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type SqlPoolVulnerabilityAssessmentOperationPredicate

type SqlPoolVulnerabilityAssessmentOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SqlPoolVulnerabilityAssessmentOperationPredicate) Matches

type SqlPoolVulnerabilityAssessmentProperties

type SqlPoolVulnerabilityAssessmentProperties struct {
	RecurringScans          *VulnerabilityAssessmentRecurringScansProperties `json:"recurringScans,omitempty"`
	StorageAccountAccessKey *string                                          `json:"storageAccountAccessKey,omitempty"`
	StorageContainerPath    *string                                          `json:"storageContainerPath,omitempty"`
	StorageContainerSasKey  *string                                          `json:"storageContainerSasKey,omitempty"`
}

type SqlPoolVulnerabilityAssessmentScansListCompleteResult

type SqlPoolVulnerabilityAssessmentScansListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VulnerabilityAssessmentScanRecord
}

type SqlPoolVulnerabilityAssessmentScansListCustomPager added in v0.20240628.1153531

type SqlPoolVulnerabilityAssessmentScansListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SqlPoolVulnerabilityAssessmentScansListOperationResponse

type SqlPoolVulnerabilityAssessmentScansListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VulnerabilityAssessmentScanRecord
}

type SqlPoolVulnerabilityAssessmentsListCompleteResult

type SqlPoolVulnerabilityAssessmentsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlPoolVulnerabilityAssessment
}

type SqlPoolVulnerabilityAssessmentsListCustomPager added in v0.20240628.1153531

type SqlPoolVulnerabilityAssessmentsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SqlPoolVulnerabilityAssessmentsListOperationResponse

type SqlPoolVulnerabilityAssessmentsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlPoolVulnerabilityAssessment
}

type SqlPoolsSchemasClient

type SqlPoolsSchemasClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsSchemasClientWithBaseURI

func NewSqlPoolsSchemasClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsSchemasClient, error)

func (SqlPoolsSchemasClient) SqlPoolSchemasList

SqlPoolSchemasList ...

func (SqlPoolsSchemasClient) SqlPoolSchemasListComplete

SqlPoolSchemasListComplete retrieves all the results into a single object

func (SqlPoolsSchemasClient) SqlPoolSchemasListCompleteMatchingPredicate

func (c SqlPoolsSchemasClient) SqlPoolSchemasListCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, options SqlPoolSchemasListOperationOptions, predicate ResourceOperationPredicate) (result SqlPoolSchemasListCompleteResult, err error)

SqlPoolSchemasListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansList

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansList(ctx context.Context, id SqlPoolId) (result SqlPoolVulnerabilityAssessmentScansListOperationResponse, err error)

SqlPoolVulnerabilityAssessmentScansList ...

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansListComplete

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansListComplete(ctx context.Context, id SqlPoolId) (SqlPoolVulnerabilityAssessmentScansListCompleteResult, error)

SqlPoolVulnerabilityAssessmentScansListComplete retrieves all the results into a single object

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansListCompleteMatchingPredicate

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansListCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate VulnerabilityAssessmentScanRecordOperationPredicate) (result SqlPoolVulnerabilityAssessmentScansListCompleteResult, err error)

SqlPoolVulnerabilityAssessmentScansListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsList

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsList(ctx context.Context, id SqlPoolId) (result SqlPoolVulnerabilityAssessmentsListOperationResponse, err error)

SqlPoolVulnerabilityAssessmentsList ...

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsListComplete

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsListComplete(ctx context.Context, id SqlPoolId) (SqlPoolVulnerabilityAssessmentsListCompleteResult, error)

SqlPoolVulnerabilityAssessmentsListComplete retrieves all the results into a single object

func (SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsListCompleteMatchingPredicate

func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsListCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate SqlPoolVulnerabilityAssessmentOperationPredicate) (result SqlPoolVulnerabilityAssessmentsListCompleteResult, err error)

SqlPoolVulnerabilityAssessmentsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type VulnerabilityAssessmentRecurringScansProperties

type VulnerabilityAssessmentRecurringScansProperties struct {
	EmailSubscriptionAdmins *bool     `json:"emailSubscriptionAdmins,omitempty"`
	Emails                  *[]string `json:"emails,omitempty"`
	IsEnabled               *bool     `json:"isEnabled,omitempty"`
}

type VulnerabilityAssessmentScanError

type VulnerabilityAssessmentScanError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type VulnerabilityAssessmentScanRecord

type VulnerabilityAssessmentScanRecord struct {
	Id         *string                                      `json:"id,omitempty"`
	Name       *string                                      `json:"name,omitempty"`
	Properties *VulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"`
	Type       *string                                      `json:"type,omitempty"`
}

type VulnerabilityAssessmentScanRecordOperationPredicate

type VulnerabilityAssessmentScanRecordOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (VulnerabilityAssessmentScanRecordOperationPredicate) Matches

type VulnerabilityAssessmentScanRecordProperties

type VulnerabilityAssessmentScanRecordProperties struct {
	EndTime                      *string                                 `json:"endTime,omitempty"`
	Errors                       *[]VulnerabilityAssessmentScanError     `json:"errors,omitempty"`
	NumberOfFailedSecurityChecks *int64                                  `json:"numberOfFailedSecurityChecks,omitempty"`
	ScanId                       *string                                 `json:"scanId,omitempty"`
	StartTime                    *string                                 `json:"startTime,omitempty"`
	State                        *VulnerabilityAssessmentScanState       `json:"state,omitempty"`
	StorageContainerPath         *string                                 `json:"storageContainerPath,omitempty"`
	TriggerType                  *VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"`
}

func (*VulnerabilityAssessmentScanRecordProperties) GetEndTimeAsTime

func (o *VulnerabilityAssessmentScanRecordProperties) GetEndTimeAsTime() (*time.Time, error)

func (*VulnerabilityAssessmentScanRecordProperties) GetStartTimeAsTime

func (o *VulnerabilityAssessmentScanRecordProperties) GetStartTimeAsTime() (*time.Time, error)

func (*VulnerabilityAssessmentScanRecordProperties) SetEndTimeAsTime

func (o *VulnerabilityAssessmentScanRecordProperties) SetEndTimeAsTime(input time.Time)

func (*VulnerabilityAssessmentScanRecordProperties) SetStartTimeAsTime

func (o *VulnerabilityAssessmentScanRecordProperties) SetStartTimeAsTime(input time.Time)

type VulnerabilityAssessmentScanState

type VulnerabilityAssessmentScanState string
const (
	VulnerabilityAssessmentScanStateFailed      VulnerabilityAssessmentScanState = "Failed"
	VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun"
	VulnerabilityAssessmentScanStateInProgress  VulnerabilityAssessmentScanState = "InProgress"
	VulnerabilityAssessmentScanStatePassed      VulnerabilityAssessmentScanState = "Passed"
)

func (*VulnerabilityAssessmentScanState) UnmarshalJSON

func (s *VulnerabilityAssessmentScanState) UnmarshalJSON(bytes []byte) error

type VulnerabilityAssessmentScanTriggerType

type VulnerabilityAssessmentScanTriggerType string
const (
	VulnerabilityAssessmentScanTriggerTypeOnDemand  VulnerabilityAssessmentScanTriggerType = "OnDemand"
	VulnerabilityAssessmentScanTriggerTypeRecurring VulnerabilityAssessmentScanTriggerType = "Recurring"
)

func (*VulnerabilityAssessmentScanTriggerType) UnmarshalJSON

func (s *VulnerabilityAssessmentScanTriggerType) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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