juju: github.com/juju/juju/provider/azure/internal/azureresources Index | Files

package resources

import "github.com/juju/juju/provider/azure/internal/azureresources"

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.


Package Files


type ResourcesClient Uses

type ResourcesClient struct {

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:


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

func (ResourcesClient) CreateOrUpdateByID Uses

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 Uses

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.

Package resources imports 6 packages (graph) and is imported by 3 packages. Updated 2019-01-18. Refresh now. Tools for package owners.