logfiles

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/logfiles Documentation

The logfiles SDK allows for interaction with Azure Resource Manager postgresql (API Version 2024-08-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/postgresql/2024-08-01/logfiles"

Client Initialization

client := logfiles.NewLogFilesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LogFilesClient.ListByServer

ctx := context.TODO()
id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName")

// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination
items, err := client.ListByServerComplete(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 ValidateFlexibleServerID

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

ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID

Types

type FlexibleServerId

type FlexibleServerId struct {
	SubscriptionId     string
	ResourceGroupName  string
	FlexibleServerName string
}

FlexibleServerId is a struct representing the Resource ID for a Flexible Server

func NewFlexibleServerID

func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId

NewFlexibleServerID returns a new FlexibleServerId struct

func ParseFlexibleServerID

func ParseFlexibleServerID(input string) (*FlexibleServerId, error)

ParseFlexibleServerID parses 'input' into a FlexibleServerId

func ParseFlexibleServerIDInsensitively

func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error)

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

func (*FlexibleServerId) FromParseResult

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

func (FlexibleServerId) ID

func (id FlexibleServerId) ID() string

ID returns the formatted Flexible Server ID

func (FlexibleServerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID

func (FlexibleServerId) String

func (id FlexibleServerId) String() string

String returns a human-readable description of this Flexible Server ID

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LogFile
}

type ListByServerCustomPager

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

type ListByServerOperationResponse

type ListByServerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LogFile
}

type LogFile

type LogFile struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *LogFileProperties     `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type LogFileOperationPredicate

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

func (LogFileOperationPredicate) Matches

func (p LogFileOperationPredicate) Matches(input LogFile) bool

type LogFileProperties

type LogFileProperties struct {
	CreatedTime      *string `json:"createdTime,omitempty"`
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
	SizeInKb         *int64  `json:"sizeInKb,omitempty"`
	Type             *string `json:"type,omitempty"`
	Url              *string `json:"url,omitempty"`
}

func (*LogFileProperties) GetCreatedTimeAsTime

func (o *LogFileProperties) GetCreatedTimeAsTime() (*time.Time, error)

func (*LogFileProperties) GetLastModifiedTimeAsTime

func (o *LogFileProperties) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*LogFileProperties) SetCreatedTimeAsTime

func (o *LogFileProperties) SetCreatedTimeAsTime(input time.Time)

func (*LogFileProperties) SetLastModifiedTimeAsTime

func (o *LogFileProperties) SetLastModifiedTimeAsTime(input time.Time)

type LogFilesClient

type LogFilesClient struct {
	Client *resourcemanager.Client
}

func NewLogFilesClientWithBaseURI

func NewLogFilesClientWithBaseURI(sdkApi sdkEnv.Api) (*LogFilesClient, error)

func (LogFilesClient) ListByServer

func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error)

ListByServer ...

func (LogFilesClient) ListByServerComplete

ListByServerComplete retrieves all the results into a single object

func (LogFilesClient) ListByServerCompleteMatchingPredicate

func (c LogFilesClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate LogFileOperationPredicate) (result ListByServerCompleteResult, err error)

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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