resources

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file is based on code from Azure/azure-sdk-for-go, which is Copyright Microsoft Corporation. See the LICENSE file in this directory for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourcesClient

type ResourcesClient struct {
	*resources.Client
}

ResourcesClient wraps resources.Client, providing methods for dealing with generic resources.

NOTE(axw) this wrapper is necessary only to work around an issue in the generated Client, which hard-codes the API version:

https://github.com/Azure/azure-sdk-for-go/issues/741

When this issue has been resolved, we should drop this code and use the SDK's client directly.

func (ResourcesClient) CreateOrUpdateByID

func (client ResourcesClient) CreateOrUpdateByID(ctx context.Context, resourceID string, parameters resources.GenericResource, apiVersion string) (result resources.CreateOrUpdateByIDFuture, err error)

CreateOrUpdateByID creates a resource.

See: resources.Client.CreateOrUpdateByID.

func (ResourcesClient) GetByID

func (client ResourcesClient) GetByID(ctx context.Context, resourceID, apiVersion string) (result resources.GenericResource, err error)

GetByID gets a resource by ID.

See: resources.Client.GetByID.

Jump to

Keyboard shortcuts

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