resourceviews

package
v0.0.0-...-c37129a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package resourceviews provides access to the Resource Views API.

See https://developers.google.com/compute/

Usage example:

import "google.golang.org/api/resourceviews/v1beta1"
...
resourceviewsService, err := resourceviews.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your data across Google Cloud Platform services
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

	// View and manage your Google Compute Engine resources
	ComputeScope = "https://www.googleapis.com/auth/compute"

	// View your Google Compute Engine resources
	ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly"

	// View and manage your Google Cloud Platform management resources and
	// deployment status information
	NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman"

	// View your Google Cloud Platform management resources and deployment
	// status information
	NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	// Key: Key of the label.
	Key string `json:"key,omitempty"`

	// Value: Value of the label.
	Value string `json:"value,omitempty"`
}

type RegionViewsAddResourcesRequest

type RegionViewsAddResourcesRequest struct {
	// Resources: The list of resources to be added.
	Resources []string `json:"resources,omitempty"`
}

type RegionViewsAddresourcesCall

type RegionViewsAddresourcesCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsAddresourcesCall) Do

func (*RegionViewsAddresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RegionViewsDeleteCall

type RegionViewsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsDeleteCall) Do

func (c *RegionViewsDeleteCall) Do() error

func (*RegionViewsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RegionViewsGetCall

type RegionViewsGetCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsGetCall) Do

func (*RegionViewsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RegionViewsInsertCall

type RegionViewsInsertCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsInsertCall) Do

func (*RegionViewsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RegionViewsInsertResponse

type RegionViewsInsertResponse struct {
	// Resource: The resource view object inserted.
	Resource *ResourceView `json:"resource,omitempty"`
}

type RegionViewsListCall

type RegionViewsListCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsListCall) Do

func (*RegionViewsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RegionViewsListCall) MaxResults

func (c *RegionViewsListCall) MaxResults(maxResults int64) *RegionViewsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

func (*RegionViewsListCall) PageToken

func (c *RegionViewsListCall) PageToken(pageToken string) *RegionViewsListCall

PageToken sets the optional parameter "pageToken": Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

type RegionViewsListResourcesResponse

type RegionViewsListResourcesResponse struct {
	// Members: The resources in the view.
	Members []string `json:"members,omitempty"`

	// NextPageToken: A token used for pagination.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type RegionViewsListResponse

type RegionViewsListResponse struct {
	// NextPageToken: A token used for pagination.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ResourceViews: The list of resource views that meet the criteria.
	ResourceViews []*ResourceView `json:"resourceViews,omitempty"`
}

type RegionViewsListresourcesCall

type RegionViewsListresourcesCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsListresourcesCall) Do

func (*RegionViewsListresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RegionViewsListresourcesCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

func (*RegionViewsListresourcesCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

type RegionViewsRemoveResourcesRequest

type RegionViewsRemoveResourcesRequest struct {
	// Resources: The list of resources to be removed.
	Resources []string `json:"resources,omitempty"`
}

type RegionViewsRemoveresourcesCall

type RegionViewsRemoveresourcesCall struct {
	// contains filtered or unexported fields
}

func (*RegionViewsRemoveresourcesCall) Do

func (*RegionViewsRemoveresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RegionViewsService

type RegionViewsService struct {
	// contains filtered or unexported fields
}

func NewRegionViewsService

func NewRegionViewsService(s *Service) *RegionViewsService

func (*RegionViewsService) Addresources

func (r *RegionViewsService) Addresources(projectName string, region string, resourceViewName string, regionviewsaddresourcesrequest *RegionViewsAddResourcesRequest) *RegionViewsAddresourcesCall

Addresources: Add resources to the view.

func (*RegionViewsService) Delete

func (r *RegionViewsService) Delete(projectName string, region string, resourceViewName string) *RegionViewsDeleteCall

Delete: Delete a resource view.

func (*RegionViewsService) Get

func (r *RegionViewsService) Get(projectName string, region string, resourceViewName string) *RegionViewsGetCall

Get: Get the information of a resource view.

func (*RegionViewsService) Insert

func (r *RegionViewsService) Insert(projectName string, region string, resourceview *ResourceView) *RegionViewsInsertCall

Insert: Create a resource view.

func (*RegionViewsService) List

func (r *RegionViewsService) List(projectName string, region string) *RegionViewsListCall

List: List resource views.

func (*RegionViewsService) Listresources

func (r *RegionViewsService) Listresources(projectName string, region string, resourceViewName string) *RegionViewsListresourcesCall

Listresources: List the resources in the view.

func (*RegionViewsService) Removeresources

func (r *RegionViewsService) Removeresources(projectName string, region string, resourceViewName string, regionviewsremoveresourcesrequest *RegionViewsRemoveResourcesRequest) *RegionViewsRemoveresourcesCall

Removeresources: Remove resources from the view.

type ResourceView

type ResourceView struct {
	// CreationTime: The creation time of the resource view.
	CreationTime string `json:"creationTime,omitempty"`

	// Description: The detailed description of the resource view.
	Description string `json:"description,omitempty"`

	// Id: [Output Only] The ID of the resource view.
	Id string `json:"id,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Labels: The labels for events.
	Labels []*Label `json:"labels,omitempty"`

	// LastModified: The last modified time of the view. Not supported yet.
	LastModified string `json:"lastModified,omitempty"`

	// Members: A list of all resources in the resource view.
	Members []string `json:"members,omitempty"`

	// Name: The name of the resource view.
	Name string `json:"name,omitempty"`

	// NumMembers: The total number of resources in the resource view.
	NumMembers int64 `json:"numMembers,omitempty"`

	// SelfLink: [Output Only] A self-link to the resource view.
	SelfLink string `json:"selfLink,omitempty"`
}

type Service

type Service struct {
	BasePath string // API endpoint base URL

	RegionViews *RegionViewsService

	ZoneViews *ZoneViewsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type ZoneViewsAddResourcesRequest

type ZoneViewsAddResourcesRequest struct {
	// Resources: The list of resources to be added.
	Resources []string `json:"resources,omitempty"`
}

type ZoneViewsAddresourcesCall

type ZoneViewsAddresourcesCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsAddresourcesCall) Do

func (*ZoneViewsAddresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ZoneViewsDeleteCall

type ZoneViewsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsDeleteCall) Do

func (c *ZoneViewsDeleteCall) Do() error

func (*ZoneViewsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ZoneViewsGetCall

type ZoneViewsGetCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsGetCall) Do

func (c *ZoneViewsGetCall) Do() (*ResourceView, error)

func (*ZoneViewsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ZoneViewsInsertCall

type ZoneViewsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsInsertCall) Do

func (*ZoneViewsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ZoneViewsInsertResponse

type ZoneViewsInsertResponse struct {
	// Resource: The resource view object that has been inserted.
	Resource *ResourceView `json:"resource,omitempty"`
}

type ZoneViewsListCall

type ZoneViewsListCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsListCall) Do

func (*ZoneViewsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ZoneViewsListCall) MaxResults

func (c *ZoneViewsListCall) MaxResults(maxResults int64) *ZoneViewsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

func (*ZoneViewsListCall) PageToken

func (c *ZoneViewsListCall) PageToken(pageToken string) *ZoneViewsListCall

PageToken sets the optional parameter "pageToken": Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

type ZoneViewsListResourcesResponse

type ZoneViewsListResourcesResponse struct {
	// Members: The full URL of resources in the view.
	Members []string `json:"members,omitempty"`

	// NextPageToken: A token used for pagination.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type ZoneViewsListResponse

type ZoneViewsListResponse struct {
	// NextPageToken: A token used for pagination.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ResourceViews: The result that contains all resource views that meet
	// the criteria.
	ResourceViews []*ResourceView `json:"resourceViews,omitempty"`
}

type ZoneViewsListresourcesCall

type ZoneViewsListresourcesCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsListresourcesCall) Do

func (*ZoneViewsListresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ZoneViewsListresourcesCall) MaxResults

func (c *ZoneViewsListresourcesCall) MaxResults(maxResults int64) *ZoneViewsListresourcesCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

func (*ZoneViewsListresourcesCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

type ZoneViewsRemoveResourcesRequest

type ZoneViewsRemoveResourcesRequest struct {
	// Resources: The list of resources to be removed.
	Resources []string `json:"resources,omitempty"`
}

type ZoneViewsRemoveresourcesCall

type ZoneViewsRemoveresourcesCall struct {
	// contains filtered or unexported fields
}

func (*ZoneViewsRemoveresourcesCall) Do

func (*ZoneViewsRemoveresourcesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ZoneViewsService

type ZoneViewsService struct {
	// contains filtered or unexported fields
}

func NewZoneViewsService

func NewZoneViewsService(s *Service) *ZoneViewsService

func (*ZoneViewsService) Addresources

func (r *ZoneViewsService) Addresources(projectName string, zone string, resourceViewName string, zoneviewsaddresourcesrequest *ZoneViewsAddResourcesRequest) *ZoneViewsAddresourcesCall

Addresources: Add resources to the view.

func (*ZoneViewsService) Delete

func (r *ZoneViewsService) Delete(projectName string, zone string, resourceViewName string) *ZoneViewsDeleteCall

Delete: Delete a resource view.

func (*ZoneViewsService) Get

func (r *ZoneViewsService) Get(projectName string, zone string, resourceViewName string) *ZoneViewsGetCall

Get: Get the information of a zonal resource view.

func (*ZoneViewsService) Insert

func (r *ZoneViewsService) Insert(projectName string, zone string, resourceview *ResourceView) *ZoneViewsInsertCall

Insert: Create a resource view.

func (*ZoneViewsService) List

func (r *ZoneViewsService) List(projectName string, zone string) *ZoneViewsListCall

List: List resource views.

func (*ZoneViewsService) Listresources

func (r *ZoneViewsService) Listresources(projectName string, zone string, resourceViewName string) *ZoneViewsListresourcesCall

Listresources: List the resources of the resource view.

func (*ZoneViewsService) Removeresources

func (r *ZoneViewsService) Removeresources(projectName string, zone string, resourceViewName string, zoneviewsremoveresourcesrequest *ZoneViewsRemoveResourcesRequest) *ZoneViewsRemoveresourcesCall

Removeresources: Remove resources from the view.

Jump to

Keyboard shortcuts

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