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
- type Label
- type RegionViewsAddResourcesRequest
- type RegionViewsAddresourcesCall
- type RegionViewsDeleteCall
- type RegionViewsGetCall
- type RegionViewsInsertCall
- type RegionViewsInsertResponse
- type RegionViewsListCall
- func (c *RegionViewsListCall) Do() (*RegionViewsListResponse, error)
- func (c *RegionViewsListCall) Fields(s ...googleapi.Field) *RegionViewsListCall
- func (c *RegionViewsListCall) MaxResults(maxResults int64) *RegionViewsListCall
- func (c *RegionViewsListCall) PageToken(pageToken string) *RegionViewsListCall
- type RegionViewsListResourcesResponse
- type RegionViewsListResponse
- type RegionViewsListresourcesCall
- func (c *RegionViewsListresourcesCall) Do() (*RegionViewsListResourcesResponse, error)
- func (c *RegionViewsListresourcesCall) Fields(s ...googleapi.Field) *RegionViewsListresourcesCall
- func (c *RegionViewsListresourcesCall) MaxResults(maxResults int64) *RegionViewsListresourcesCall
- func (c *RegionViewsListresourcesCall) PageToken(pageToken string) *RegionViewsListresourcesCall
- type RegionViewsRemoveResourcesRequest
- type RegionViewsRemoveresourcesCall
- type RegionViewsService
- func (r *RegionViewsService) Addresources(projectName string, region string, resourceViewName string, ...) *RegionViewsAddresourcesCall
- func (r *RegionViewsService) Delete(projectName string, region string, resourceViewName string) *RegionViewsDeleteCall
- func (r *RegionViewsService) Get(projectName string, region string, resourceViewName string) *RegionViewsGetCall
- func (r *RegionViewsService) Insert(projectName string, region string, resourceview *ResourceView) *RegionViewsInsertCall
- func (r *RegionViewsService) List(projectName string, region string) *RegionViewsListCall
- func (r *RegionViewsService) Listresources(projectName string, region string, resourceViewName string) *RegionViewsListresourcesCall
- func (r *RegionViewsService) Removeresources(projectName string, region string, resourceViewName string, ...) *RegionViewsRemoveresourcesCall
- type ResourceView
- type Service
- type ZoneViewsAddResourcesRequest
- type ZoneViewsAddresourcesCall
- type ZoneViewsDeleteCall
- type ZoneViewsGetCall
- type ZoneViewsInsertCall
- type ZoneViewsInsertResponse
- type ZoneViewsListCall
- type ZoneViewsListResourcesResponse
- type ZoneViewsListResponse
- type ZoneViewsListresourcesCall
- func (c *ZoneViewsListresourcesCall) Do() (*ZoneViewsListResourcesResponse, error)
- func (c *ZoneViewsListresourcesCall) Fields(s ...googleapi.Field) *ZoneViewsListresourcesCall
- func (c *ZoneViewsListresourcesCall) MaxResults(maxResults int64) *ZoneViewsListresourcesCall
- func (c *ZoneViewsListresourcesCall) PageToken(pageToken string) *ZoneViewsListresourcesCall
- type ZoneViewsRemoveResourcesRequest
- type ZoneViewsRemoveresourcesCall
- type ZoneViewsService
- func (r *ZoneViewsService) Addresources(projectName string, zone string, resourceViewName string, ...) *ZoneViewsAddresourcesCall
- func (r *ZoneViewsService) Delete(projectName string, zone string, resourceViewName string) *ZoneViewsDeleteCall
- func (r *ZoneViewsService) Get(projectName string, zone string, resourceViewName string) *ZoneViewsGetCall
- func (r *ZoneViewsService) Insert(projectName string, zone string, resourceview *ResourceView) *ZoneViewsInsertCall
- func (r *ZoneViewsService) List(projectName string, zone string) *ZoneViewsListCall
- func (r *ZoneViewsService) Listresources(projectName string, zone string, resourceViewName string) *ZoneViewsListresourcesCall
- func (r *ZoneViewsService) Removeresources(projectName string, zone string, resourceViewName string, ...) *ZoneViewsRemoveresourcesCall
Constants ¶
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 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 (c *RegionViewsAddresourcesCall) Do() error
func (*RegionViewsAddresourcesCall) Fields ¶
func (c *RegionViewsAddresourcesCall) Fields(s ...googleapi.Field) *RegionViewsAddresourcesCall
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 ¶
func (c *RegionViewsDeleteCall) Fields(s ...googleapi.Field) *RegionViewsDeleteCall
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 (c *RegionViewsGetCall) Do() (*ResourceView, error)
func (*RegionViewsGetCall) Fields ¶
func (c *RegionViewsGetCall) Fields(s ...googleapi.Field) *RegionViewsGetCall
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 (c *RegionViewsInsertCall) Do() (*RegionViewsInsertResponse, error)
func (*RegionViewsInsertCall) Fields ¶
func (c *RegionViewsInsertCall) Fields(s ...googleapi.Field) *RegionViewsInsertCall
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 (c *RegionViewsListCall) Do() (*RegionViewsListResponse, error)
func (*RegionViewsListCall) Fields ¶
func (c *RegionViewsListCall) Fields(s ...googleapi.Field) *RegionViewsListCall
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 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 (c *RegionViewsListresourcesCall) Do() (*RegionViewsListResourcesResponse, error)
func (*RegionViewsListresourcesCall) Fields ¶
func (c *RegionViewsListresourcesCall) Fields(s ...googleapi.Field) *RegionViewsListresourcesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionViewsListresourcesCall) MaxResults ¶
func (c *RegionViewsListresourcesCall) MaxResults(maxResults int64) *RegionViewsListresourcesCall
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 ¶
func (c *RegionViewsListresourcesCall) PageToken(pageToken string) *RegionViewsListresourcesCall
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 (c *RegionViewsRemoveresourcesCall) Do() error
func (*RegionViewsRemoveresourcesCall) Fields ¶
func (c *RegionViewsRemoveresourcesCall) Fields(s ...googleapi.Field) *RegionViewsRemoveresourcesCall
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 }
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 (c *ZoneViewsAddresourcesCall) Do() error
func (*ZoneViewsAddresourcesCall) Fields ¶
func (c *ZoneViewsAddresourcesCall) Fields(s ...googleapi.Field) *ZoneViewsAddresourcesCall
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 ¶
func (c *ZoneViewsDeleteCall) Fields(s ...googleapi.Field) *ZoneViewsDeleteCall
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 ¶
func (c *ZoneViewsGetCall) Fields(s ...googleapi.Field) *ZoneViewsGetCall
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 (c *ZoneViewsInsertCall) Do() (*ZoneViewsInsertResponse, error)
func (*ZoneViewsInsertCall) Fields ¶
func (c *ZoneViewsInsertCall) Fields(s ...googleapi.Field) *ZoneViewsInsertCall
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 (c *ZoneViewsListCall) Do() (*ZoneViewsListResponse, error)
func (*ZoneViewsListCall) Fields ¶
func (c *ZoneViewsListCall) Fields(s ...googleapi.Field) *ZoneViewsListCall
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 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 (c *ZoneViewsListresourcesCall) Do() (*ZoneViewsListResourcesResponse, error)
func (*ZoneViewsListresourcesCall) Fields ¶
func (c *ZoneViewsListresourcesCall) Fields(s ...googleapi.Field) *ZoneViewsListresourcesCall
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 ¶
func (c *ZoneViewsListresourcesCall) PageToken(pageToken string) *ZoneViewsListresourcesCall
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 (c *ZoneViewsRemoveresourcesCall) Do() error
func (*ZoneViewsRemoveresourcesCall) Fields ¶
func (c *ZoneViewsRemoveresourcesCall) Fields(s ...googleapi.Field) *ZoneViewsRemoveresourcesCall
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.