resourceviews

package
v0.0.0-...-6b9f808 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: BSD-3-Clause Imports: 13 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 your data across Google Cloud Platform services
	CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"

	// 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"`

	// ForceSendFields is a list of field names (e.g. "Key") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Key") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Label: The Label to be applied to the resource views.

func (*Label) MarshalJSON

func (s *Label) MarshalJSON() ([]byte, error)

type RegionViewsAddResourcesRequest

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

	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resources") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RegionViewsAddResourcesRequest: The request to add resources to the resource view.

func (*RegionViewsAddResourcesRequest) MarshalJSON

func (s *RegionViewsAddResourcesRequest) MarshalJSON() ([]byte, error)

type RegionViewsAddresourcesCall

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

func (*RegionViewsAddresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsAddresourcesCall) Do

Do executes the "resourceviews.regionViews.addresources" call.

func (*RegionViewsAddresourcesCall) Fields

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

func (*RegionViewsAddresourcesCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RegionViewsDeleteCall

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

func (*RegionViewsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsDeleteCall) Do

Do executes the "resourceviews.regionViews.delete" call.

func (*RegionViewsDeleteCall) Fields

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

func (*RegionViewsDeleteCall) Header

func (c *RegionViewsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RegionViewsGetCall

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

func (*RegionViewsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsGetCall) Do

Do executes the "resourceviews.regionViews.get" call. Exactly one of *ResourceView or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ResourceView.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RegionViewsGetCall) Fields

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

func (*RegionViewsGetCall) Header

func (c *RegionViewsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RegionViewsGetCall) IfNoneMatch

func (c *RegionViewsGetCall) IfNoneMatch(entityTag string) *RegionViewsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type RegionViewsInsertCall

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

func (*RegionViewsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsInsertCall) Do

Do executes the "resourceviews.regionViews.insert" call. Exactly one of *RegionViewsInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionViewsInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RegionViewsInsertCall) Fields

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

func (*RegionViewsInsertCall) Header

func (c *RegionViewsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RegionViewsInsertResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resource") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RegionViewsInsertResponse: The response to a resource view insert request.

func (*RegionViewsInsertResponse) MarshalJSON

func (s *RegionViewsInsertResponse) MarshalJSON() ([]byte, error)

type RegionViewsListCall

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

func (*RegionViewsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsListCall) Do

Do executes the "resourceviews.regionViews.list" call. Exactly one of *RegionViewsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionViewsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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) Header

func (c *RegionViewsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RegionViewsListCall) IfNoneMatch

func (c *RegionViewsListCall) IfNoneMatch(entityTag string) *RegionViewsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

func (*RegionViewsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Members") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Members") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RegionViewsListResourcesResponse: The response to the list resource request.

func (*RegionViewsListResourcesResponse) MarshalJSON

func (s *RegionViewsListResourcesResponse) MarshalJSON() ([]byte, error)

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "NextPageToken") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RegionViewsListResponse: The response to the list resource view request.

func (*RegionViewsListResponse) MarshalJSON

func (s *RegionViewsListResponse) MarshalJSON() ([]byte, error)

type RegionViewsListresourcesCall

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

func (*RegionViewsListresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsListresourcesCall) Do

Do executes the "resourceviews.regionViews.listresources" call. Exactly one of *RegionViewsListResourcesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionViewsListResourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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.

func (*RegionViewsListresourcesCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type RegionViewsRemoveResourcesRequest

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

	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resources") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

RegionViewsRemoveResourcesRequest: The request to remove resources from the resource view.

func (*RegionViewsRemoveResourcesRequest) MarshalJSON

func (s *RegionViewsRemoveResourcesRequest) MarshalJSON() ([]byte, error)

type RegionViewsRemoveresourcesCall

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

func (*RegionViewsRemoveresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RegionViewsRemoveresourcesCall) Do

Do executes the "resourceviews.regionViews.removeresources" call.

func (*RegionViewsRemoveresourcesCall) Fields

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

func (*RegionViewsRemoveresourcesCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CreationTime") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CreationTime") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ResourceView: The resource view object.

func (*ResourceView) MarshalJSON

func (s *ResourceView) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	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"`

	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resources") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ZoneViewsAddResourcesRequest: The request to add resources to the resource view.

func (*ZoneViewsAddResourcesRequest) MarshalJSON

func (s *ZoneViewsAddResourcesRequest) MarshalJSON() ([]byte, error)

type ZoneViewsAddresourcesCall

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

func (*ZoneViewsAddresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsAddresourcesCall) Do

Do executes the "resourceviews.zoneViews.addresources" call.

func (*ZoneViewsAddresourcesCall) Fields

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

func (*ZoneViewsAddresourcesCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ZoneViewsDeleteCall

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

func (*ZoneViewsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsDeleteCall) Do

Do executes the "resourceviews.zoneViews.delete" call.

func (*ZoneViewsDeleteCall) Fields

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

func (*ZoneViewsDeleteCall) Header

func (c *ZoneViewsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ZoneViewsGetCall

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

func (*ZoneViewsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsGetCall) Do

Do executes the "resourceviews.zoneViews.get" call. Exactly one of *ResourceView or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ResourceView.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ZoneViewsGetCall) Fields

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

func (*ZoneViewsGetCall) Header

func (c *ZoneViewsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ZoneViewsGetCall) IfNoneMatch

func (c *ZoneViewsGetCall) IfNoneMatch(entityTag string) *ZoneViewsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ZoneViewsInsertCall

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

func (*ZoneViewsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsInsertCall) Do

Do executes the "resourceviews.zoneViews.insert" call. Exactly one of *ZoneViewsInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ZoneViewsInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ZoneViewsInsertCall) Fields

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

func (*ZoneViewsInsertCall) Header

func (c *ZoneViewsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ZoneViewsInsertResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resource") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ZoneViewsInsertResponse: The response to an insert request.

func (*ZoneViewsInsertResponse) MarshalJSON

func (s *ZoneViewsInsertResponse) MarshalJSON() ([]byte, error)

type ZoneViewsListCall

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

func (*ZoneViewsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsListCall) Do

Do executes the "resourceviews.zoneViews.list" call. Exactly one of *ZoneViewsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ZoneViewsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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) Header

func (c *ZoneViewsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ZoneViewsListCall) IfNoneMatch

func (c *ZoneViewsListCall) IfNoneMatch(entityTag string) *ZoneViewsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

func (*ZoneViewsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Members") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Members") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ZoneViewsListResourcesResponse: The response to a list resource request.

func (*ZoneViewsListResourcesResponse) MarshalJSON

func (s *ZoneViewsListResourcesResponse) MarshalJSON() ([]byte, error)

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "NextPageToken") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ZoneViewsListResponse: The response to a list request.

func (*ZoneViewsListResponse) MarshalJSON

func (s *ZoneViewsListResponse) MarshalJSON() ([]byte, error)

type ZoneViewsListresourcesCall

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

func (*ZoneViewsListresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsListresourcesCall) Do

Do executes the "resourceviews.zoneViews.listresources" call. Exactly one of *ZoneViewsListResourcesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ZoneViewsListResourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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.

func (*ZoneViewsListresourcesCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ZoneViewsRemoveResourcesRequest

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

	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Resources") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ZoneViewsRemoveResourcesRequest: The request to remove resources from the resource view.

func (*ZoneViewsRemoveResourcesRequest) MarshalJSON

func (s *ZoneViewsRemoveResourcesRequest) MarshalJSON() ([]byte, error)

type ZoneViewsRemoveresourcesCall

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

func (*ZoneViewsRemoveresourcesCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ZoneViewsRemoveresourcesCall) Do

Do executes the "resourceviews.zoneViews.removeresources" call.

func (*ZoneViewsRemoveresourcesCall) Fields

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

func (*ZoneViewsRemoveresourcesCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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