Documentation ¶
Index ¶
- func ValidateFileID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProjectID(input interface{}, key string) (warnings []string, errors []error)
- type FileId
- type FileResourceClient
- func (c FileResourceClient) FilesDelete(ctx context.Context, id FileId) (result FilesDeleteOperationResponse, err error)
- func (c FileResourceClient) FilesGet(ctx context.Context, id FileId) (result FilesGetOperationResponse, err error)
- func (c FileResourceClient) FilesList(ctx context.Context, id ProjectId) (result FilesListOperationResponse, err error)
- func (c FileResourceClient) FilesListComplete(ctx context.Context, id ProjectId) (FilesListCompleteResult, error)
- func (c FileResourceClient) FilesListCompleteMatchingPredicate(ctx context.Context, id ProjectId, predicate ProjectFileOperationPredicate) (result FilesListCompleteResult, err error)
- func (c FileResourceClient) FilesRead(ctx context.Context, id FileId) (result FilesReadOperationResponse, err error)
- func (c FileResourceClient) FilesReadWrite(ctx context.Context, id FileId) (result FilesReadWriteOperationResponse, err error)
- func (c FileResourceClient) FilesUpdate(ctx context.Context, id FileId, input ProjectFile) (result FilesUpdateOperationResponse, err error)
- type FileStorageInfo
- type FilesDeleteOperationResponse
- type FilesGetOperationResponse
- type FilesListCompleteResult
- type FilesListOperationResponse
- type FilesReadOperationResponse
- type FilesReadWriteOperationResponse
- type FilesUpdateOperationResponse
- type ProjectFile
- type ProjectFileOperationPredicate
- type ProjectFileProperties
- type ProjectId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFileID ¶
ValidateFileID checks that 'input' can be parsed as a File ID
func ValidateProjectID ¶
ValidateProjectID checks that 'input' can be parsed as a Project ID
Types ¶
type FileId ¶
type FileId struct { SubscriptionId string ResourceGroupName string ServiceName string ProjectName string FileName string }
FileId is a struct representing the Resource ID for a File
func NewFileID ¶
func NewFileID(subscriptionId string, resourceGroupName string, serviceName string, projectName string, fileName string) FileId
NewFileID returns a new FileId struct
func ParseFileID ¶
ParseFileID parses 'input' into a FileId
func ParseFileIDInsensitively ¶
ParseFileIDInsensitively parses 'input' case-insensitively into a FileId note: this method should only be used for API response data and not user input
func (FileId) Segments ¶
func (id FileId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this File ID
type FileResourceClient ¶
type FileResourceClient struct {
Client *resourcemanager.Client
}
func NewFileResourceClientWithBaseURI ¶
func NewFileResourceClientWithBaseURI(api environments.Api) (*FileResourceClient, error)
func (FileResourceClient) FilesDelete ¶
func (c FileResourceClient) FilesDelete(ctx context.Context, id FileId) (result FilesDeleteOperationResponse, err error)
FilesDelete ...
func (FileResourceClient) FilesGet ¶
func (c FileResourceClient) FilesGet(ctx context.Context, id FileId) (result FilesGetOperationResponse, err error)
FilesGet ...
func (FileResourceClient) FilesList ¶
func (c FileResourceClient) FilesList(ctx context.Context, id ProjectId) (result FilesListOperationResponse, err error)
FilesList ...
func (FileResourceClient) FilesListComplete ¶
func (c FileResourceClient) FilesListComplete(ctx context.Context, id ProjectId) (FilesListCompleteResult, error)
FilesListComplete retrieves all the results into a single object
func (FileResourceClient) FilesListCompleteMatchingPredicate ¶
func (c FileResourceClient) FilesListCompleteMatchingPredicate(ctx context.Context, id ProjectId, predicate ProjectFileOperationPredicate) (result FilesListCompleteResult, err error)
FilesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (FileResourceClient) FilesRead ¶
func (c FileResourceClient) FilesRead(ctx context.Context, id FileId) (result FilesReadOperationResponse, err error)
FilesRead ...
func (FileResourceClient) FilesReadWrite ¶
func (c FileResourceClient) FilesReadWrite(ctx context.Context, id FileId) (result FilesReadWriteOperationResponse, err error)
FilesReadWrite ...
func (FileResourceClient) FilesUpdate ¶
func (c FileResourceClient) FilesUpdate(ctx context.Context, id FileId, input ProjectFile) (result FilesUpdateOperationResponse, err error)
FilesUpdate ...
type FileStorageInfo ¶
type FilesGetOperationResponse ¶
type FilesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectFile }
type FilesListCompleteResult ¶
type FilesListCompleteResult struct {
Items []ProjectFile
}
type FilesListOperationResponse ¶
type FilesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ProjectFile }
type FilesReadOperationResponse ¶
type FilesReadOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *FileStorageInfo }
type FilesReadWriteOperationResponse ¶
type FilesReadWriteOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *FileStorageInfo }
type FilesUpdateOperationResponse ¶
type FilesUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectFile }
type ProjectFile ¶
type ProjectFile struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ProjectFileProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ProjectFileOperationPredicate ¶
func (ProjectFileOperationPredicate) Matches ¶
func (p ProjectFileOperationPredicate) Matches(input ProjectFile) bool
type ProjectFileProperties ¶
type ProjectFileProperties struct { Extension *string `json:"extension,omitempty"` FilePath *string `json:"filePath,omitempty"` LastModified *string `json:"lastModified,omitempty"` MediaType *string `json:"mediaType,omitempty"` Size *int64 `json:"size,omitempty"` }
func (*ProjectFileProperties) GetLastModifiedAsTime ¶
func (o *ProjectFileProperties) GetLastModifiedAsTime() (*time.Time, error)
func (*ProjectFileProperties) SetLastModifiedAsTime ¶
func (o *ProjectFileProperties) SetLastModifiedAsTime(input time.Time)
type ProjectId ¶
type ProjectId struct { SubscriptionId string ResourceGroupName string ServiceName string ProjectName string }
ProjectId is a struct representing the Resource ID for a Project
func NewProjectID ¶
func NewProjectID(subscriptionId string, resourceGroupName string, serviceName string, projectName string) ProjectId
NewProjectID returns a new ProjectId struct
func ParseProjectID ¶
ParseProjectID parses 'input' into a ProjectId
func ParseProjectIDInsensitively ¶
ParseProjectIDInsensitively parses 'input' case-insensitively into a ProjectId note: this method should only be used for API response data and not user input
func (ProjectId) Segments ¶
func (id ProjectId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Project ID