Package resourceviews
Overview ▹
Index ▹
Constants
OAuth2 scopes used by this API.
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" )
type Label ¶
Label: The Label to be applied to the resource views.
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:"-"` }
func (*Label) MarshalJSON ¶
func (s *Label) MarshalJSON() ([]byte, error)
type ListResourceResponseItem ¶
ListResourceResponseItem: The list response item that contains the resource and end points information.
type ListResourceResponseItem struct { // Endpoints: The list of service end points on the resource. Endpoints map[string][]int64 `json:"endpoints,omitempty"` // Resource: The full URL of the resource. Resource string `json:"resource,omitempty"` // ForceSendFields is a list of field names (e.g. "Endpoints") 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. "Endpoints") 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:"-"` }
func (*ListResourceResponseItem) MarshalJSON ¶
func (s *ListResourceResponseItem) MarshalJSON() ([]byte, error)
type Operation ¶
Operation: An operation resource, used to manage asynchronous API requests.
type Operation struct { // ClientOperationId: [Output only] An optional identifier specified by // the client when the mutation was initiated. Must be unique for all // operation resources in the project. ClientOperationId string `json:"clientOperationId,omitempty"` // CreationTimestamp: [Output Only] The time that this operation was // requested, in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // EndTime: [Output Only] The time that this operation was completed, in // RFC3339 text format. EndTime string `json:"endTime,omitempty"` // Error: [Output Only] If errors occurred during processing of this // operation, this field will be populated. Error *OperationError `json:"error,omitempty"` // HttpErrorMessage: [Output only] If operation fails, the HTTP error // message returned. HttpErrorMessage string `json:"httpErrorMessage,omitempty"` // HttpErrorStatusCode: [Output only] If operation fails, the HTTP error // status code returned. HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` // Id: [Output Only] Unique identifier for the resource, generated by // the server. Id uint64 `json:"id,omitempty,string"` // InsertTime: [Output Only] The time that this operation was requested, // in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` // Kind: [Output only] Type of the resource. Kind string `json:"kind,omitempty"` // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` // OperationType: [Output only] Type of the operation. Operations // include insert, update, and delete. OperationType string `json:"operationType,omitempty"` // Progress: [Output only] An optional progress indicator that ranges // from 0 to 100. There is no requirement that this be linear or support // any granularity of operations. This should not be used to guess at // when the operation will be complete. This number should be // monotonically increasing as the operation progresses. Progress int64 `json:"progress,omitempty"` // Region: [Output Only] URL of the region where the operation resides. // Only available when performing regional operations. Region string `json:"region,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. SelfLink string `json:"selfLink,omitempty"` // StartTime: [Output Only] The time that this operation was started by // the server, in RFC3339 text format. StartTime string `json:"startTime,omitempty"` // Status: [Output Only] Status of the operation. Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the // current status of the operation. StatusMessage string `json:"statusMessage,omitempty"` // TargetId: [Output Only] Unique target ID which identifies a // particular incarnation of the target. TargetId uint64 `json:"targetId,omitempty,string"` // TargetLink: [Output only] URL of the resource the operation is // mutating. TargetLink string `json:"targetLink,omitempty"` // User: [Output Only] User who requested the operation, for example: // user@example.com. User string `json:"user,omitempty"` // Warnings: [Output Only] If there are issues with this operation, a // warning is returned. Warnings []*OperationWarnings `json:"warnings,omitempty"` // Zone: [Output Only] URL of the zone where the operation resides. Only // available when performing per-zone operations. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClientOperationId") // 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. "ClientOperationId") 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:"-"` }
func (*Operation) MarshalJSON ¶
func (s *Operation) MarshalJSON() ([]byte, error)
type OperationError ¶
OperationError: [Output Only] If errors occurred during processing of this operation, this field will be populated.
type OperationError struct { // Errors: [Output Only] The array of errors encountered while // processing this operation. Errors []*OperationErrorErrors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"` }
func (*OperationError) MarshalJSON ¶
func (s *OperationError) MarshalJSON() ([]byte, error)
type OperationErrorErrors ¶
type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` // Location: [Output Only] Indicates the field in the request which // caused the error. This property is optional. Location string `json:"location,omitempty"` // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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:"-"` }
func (*OperationErrorErrors) MarshalJSON ¶
func (s *OperationErrorErrors) MarshalJSON() ([]byte, error)
type OperationList ¶
type OperationList struct { // Id: Unique identifier for the resource; defined by the server (output // only). Id string `json:"id,omitempty"` // Items: The operation resources. Items []*Operation `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used to continue a truncated list request // (output only). NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: Server defined URL for this resource (output only). 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. "Id") 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. "Id") 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:"-"` }
func (*OperationList) MarshalJSON ¶
func (s *OperationList) MarshalJSON() ([]byte, error)
type OperationWarnings ¶
type OperationWarnings struct { // Code: [Output only] The warning type identifier for this warning. Code string `json:"code,omitempty"` // Data: [Output only] Metadata for this warning in key:value format. Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output only] Optional human-readable details for this // warning. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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:"-"` }
func (*OperationWarnings) MarshalJSON ¶
func (s *OperationWarnings) MarshalJSON() ([]byte, error)
type OperationWarningsData ¶
type OperationWarningsData struct { // Key: [Output Only] Metadata key for this warning. Key string `json:"key,omitempty"` // Value: [Output Only] Metadata value for this warning. 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:"-"` }
func (*OperationWarningsData) MarshalJSON ¶
func (s *OperationWarningsData) MarshalJSON() ([]byte, error)
type ResourceView ¶
ResourceView: The resource view object.
type ResourceView struct { // CreationTimestamp: The creation time of the resource view. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: The detailed description of the resource view. Description string `json:"description,omitempty"` // Endpoints: Services endpoint information. Endpoints []*ServiceEndpoint `json:"endpoints,omitempty"` // Fingerprint: The fingerprint of the service endpoint information. Fingerprint string `json:"fingerprint,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"` // Name: The name of the resource view. Name string `json:"name,omitempty"` // Network: The URL of a Compute Engine network to which the resources // in the view belong. Network string `json:"network,omitempty"` // Resources: A list of all resources in the resource view. Resources []string `json:"resources,omitempty"` // SelfLink: [Output Only] A self-link to the resource view. SelfLink string `json:"selfLink,omitempty"` // Size: The total number of resources in the resource view. Size int64 `json:"size,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") // 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. "CreationTimestamp") 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:"-"` }
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 ZoneOperations *ZoneOperationsService ZoneViews *ZoneViewsService // contains filtered or unexported fields }
func New ¶
func New(client *http.Client) (*Service, error)
type ServiceEndpoint ¶
ServiceEndpoint: The service endpoint that may be started in a VM.
type ServiceEndpoint struct { // Name: The name of the service endpoint. Name string `json:"name,omitempty"` // Port: The port of the service endpoint. Port int64 `json:"port,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"` }
func (*ServiceEndpoint) MarshalJSON ¶
func (s *ServiceEndpoint) MarshalJSON() ([]byte, error)
type ZoneOperationsGetCall ¶
type ZoneOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsGetCall) Context ¶
func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall
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 (*ZoneOperationsGetCall) Do ¶
func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneOperations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ZoneOperationsGetCall) Fields ¶
func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ZoneOperationsGetCall) Header ¶
func (c *ZoneOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneOperationsGetCall) IfNoneMatch ¶
func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall
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 ZoneOperationsListCall ¶
type ZoneOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneOperationsListCall) Context ¶
func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall
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 (*ZoneOperationsListCall) Do ¶
func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error)
Do executes the "resourceviews.zoneOperations.list" call. Exactly one of *OperationList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OperationList.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 (*ZoneOperationsListCall) Fields ¶
func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ZoneOperationsListCall) Filter ¶
func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall
Filter sets the optional parameter "filter": Filter expression for filtering listed resources.
func (*ZoneOperationsListCall) Header ¶
func (c *ZoneOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneOperationsListCall) IfNoneMatch ¶
func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall
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 (*ZoneOperationsListCall) MaxResults ¶
func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall
MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum value is 500 and default value is 500.
func (*ZoneOperationsListCall) PageToken ¶
func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall
PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
func (*ZoneOperationsListCall) Pages ¶
func (c *ZoneOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error
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 ZoneOperationsService ¶
type ZoneOperationsService struct {
// contains filtered or unexported fields
}
func NewZoneOperationsService ¶
func NewZoneOperationsService(s *Service) *ZoneOperationsService
func (*ZoneOperationsService) Get ¶
func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall
Get: Retrieves the specified zone-specific operation resource.
func (*ZoneOperationsService) List ¶
func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall
List: Retrieves the list of operation resources contained within the specified zone.
type ZoneViewsAddResourcesCall ¶
type ZoneViewsAddResourcesCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsAddResourcesCall) Context ¶
func (c *ZoneViewsAddResourcesCall) Context(ctx context.Context) *ZoneViewsAddResourcesCall
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 ¶
func (c *ZoneViewsAddResourcesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneViews.addResources" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*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.
func (*ZoneViewsAddResourcesCall) Header ¶
func (c *ZoneViewsAddResourcesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ZoneViewsAddResourcesRequest ¶
ZoneViewsAddResourcesRequest: The request to add resources to the resource view.
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:"-"` }
func (*ZoneViewsAddResourcesRequest) MarshalJSON ¶
func (s *ZoneViewsAddResourcesRequest) MarshalJSON() ([]byte, error)
type ZoneViewsDeleteCall ¶
type ZoneViewsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsDeleteCall) Context ¶
func (c *ZoneViewsDeleteCall) Context(ctx context.Context) *ZoneViewsDeleteCall
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 ¶
func (c *ZoneViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneViews.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*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.
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 ¶
func (c *ZoneViewsGetCall) Context(ctx context.Context) *ZoneViewsGetCall
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 ¶
func (c *ZoneViewsGetCall) Do(opts ...googleapi.CallOption) (*ResourceView, error)
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 ¶
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.
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 ZoneViewsGetServiceCall ¶
type ZoneViewsGetServiceCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsGetServiceCall) Context ¶
func (c *ZoneViewsGetServiceCall) Context(ctx context.Context) *ZoneViewsGetServiceCall
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 (*ZoneViewsGetServiceCall) Do ¶
func (c *ZoneViewsGetServiceCall) Do(opts ...googleapi.CallOption) (*ZoneViewsGetServiceResponse, error)
Do executes the "resourceviews.zoneViews.getService" call. Exactly one of *ZoneViewsGetServiceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ZoneViewsGetServiceResponse.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 (*ZoneViewsGetServiceCall) Fields ¶
func (c *ZoneViewsGetServiceCall) Fields(s ...googleapi.Field) *ZoneViewsGetServiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ZoneViewsGetServiceCall) Header ¶
func (c *ZoneViewsGetServiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneViewsGetServiceCall) ResourceName ¶
func (c *ZoneViewsGetServiceCall) ResourceName(resourceName string) *ZoneViewsGetServiceCall
ResourceName sets the optional parameter "resourceName": The name of the resource if user wants to get the service information of the resource.
type ZoneViewsGetServiceResponse ¶
type ZoneViewsGetServiceResponse struct { // Endpoints: The service information. Endpoints []*ServiceEndpoint `json:"endpoints,omitempty"` // Fingerprint: The fingerprint of the service information. Fingerprint string `json:"fingerprint,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Endpoints") 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. "Endpoints") 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:"-"` }
func (*ZoneViewsGetServiceResponse) MarshalJSON ¶
func (s *ZoneViewsGetServiceResponse) MarshalJSON() ([]byte, error)
type ZoneViewsInsertCall ¶
type ZoneViewsInsertCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsInsertCall) Context ¶
func (c *ZoneViewsInsertCall) Context(ctx context.Context) *ZoneViewsInsertCall
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 ¶
func (c *ZoneViewsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneViews.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 ¶
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.
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 ZoneViewsList ¶
ZoneViewsList: The response to a list request.
type ZoneViewsList struct { // Items: The result that contains all resource views that meet the // criteria. Items []*ResourceView `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` // NextPageToken: A token used for pagination. NextPageToken string `json:"nextPageToken,omitempty"` // SelfLink: Server defined URL for this resource (output only). 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. "Items") 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. "Items") 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:"-"` }
func (*ZoneViewsList) MarshalJSON ¶
func (s *ZoneViewsList) MarshalJSON() ([]byte, error)
type ZoneViewsListCall ¶
type ZoneViewsListCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsListCall) Context ¶
func (c *ZoneViewsListCall) Context(ctx context.Context) *ZoneViewsListCall
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 ¶
func (c *ZoneViewsListCall) Do(opts ...googleapi.CallOption) (*ZoneViewsList, error)
Do executes the "resourceviews.zoneViews.list" call. Exactly one of *ZoneViewsList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ZoneViewsList.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 ¶
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) 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 ¶
func (c *ZoneViewsListCall) Pages(ctx context.Context, f func(*ZoneViewsList) error) error
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 ZoneViewsListResourcesCall ¶
type ZoneViewsListResourcesCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsListResourcesCall) Context ¶
func (c *ZoneViewsListResourcesCall) Context(ctx context.Context) *ZoneViewsListResourcesCall
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 ¶
func (c *ZoneViewsListResourcesCall) Do(opts ...googleapi.CallOption) (*ZoneViewsListResourcesResponse, error)
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 ¶
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) Format ¶
func (c *ZoneViewsListResourcesCall) Format(format string) *ZoneViewsListResourcesCall
Format sets the optional parameter "format": The requested format of the return value. It can be URL or URL_PORT. A JSON object will be included in the response based on the format. The default format is NONE, which results in no JSON in the response.
Possible values:
"NONE" "URL" "URL_PORT"
func (*ZoneViewsListResourcesCall) Header ¶
func (c *ZoneViewsListResourcesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ZoneViewsListResourcesCall) IfNoneMatch ¶
func (c *ZoneViewsListResourcesCall) IfNoneMatch(entityTag string) *ZoneViewsListResourcesCall
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 (*ZoneViewsListResourcesCall) ListState ¶
func (c *ZoneViewsListResourcesCall) ListState(listState string) *ZoneViewsListResourcesCall
ListState sets the optional parameter "listState": The state of the instance to list. By default, it lists all instances.
Possible values:
"ALL" (default) "RUNNING"
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.
func (*ZoneViewsListResourcesCall) Pages ¶
func (c *ZoneViewsListResourcesCall) Pages(ctx context.Context, f func(*ZoneViewsListResourcesResponse) error) error
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.
func (*ZoneViewsListResourcesCall) ServiceName ¶
func (c *ZoneViewsListResourcesCall) ServiceName(serviceName string) *ZoneViewsListResourcesCall
ServiceName sets the optional parameter "serviceName": The service name to return in the response. It is optional and if it is not set, all the service end points will be returned.
type ZoneViewsListResourcesResponse ¶
ZoneViewsListResourcesResponse: The response to a list resource request.
type ZoneViewsListResourcesResponse struct { // Items: The formatted JSON that is requested by the user. Items []*ListResourceResponseItem `json:"items,omitempty"` // Network: The URL of a Compute Engine network to which the resources // in the view belong. Network string `json:"network,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. "Items") 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. "Items") 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:"-"` }
func (*ZoneViewsListResourcesResponse) MarshalJSON ¶
func (s *ZoneViewsListResourcesResponse) MarshalJSON() ([]byte, error)
type ZoneViewsRemoveResourcesCall ¶
type ZoneViewsRemoveResourcesCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsRemoveResourcesCall) Context ¶
func (c *ZoneViewsRemoveResourcesCall) Context(ctx context.Context) *ZoneViewsRemoveResourcesCall
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 ¶
func (c *ZoneViewsRemoveResourcesCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneViews.removeResources" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*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.
func (*ZoneViewsRemoveResourcesCall) Header ¶
func (c *ZoneViewsRemoveResourcesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ZoneViewsRemoveResourcesRequest ¶
ZoneViewsRemoveResourcesRequest: The request to remove resources from the resource view.
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:"-"` }
func (*ZoneViewsRemoveResourcesRequest) MarshalJSON ¶
func (s *ZoneViewsRemoveResourcesRequest) MarshalJSON() ([]byte, error)
type ZoneViewsService ¶
type ZoneViewsService struct {
// contains filtered or unexported fields
}
func NewZoneViewsService ¶
func NewZoneViewsService(s *Service) *ZoneViewsService
func (*ZoneViewsService) AddResources ¶
func (r *ZoneViewsService) AddResources(project string, zone string, resourceView string, zoneviewsaddresourcesrequest *ZoneViewsAddResourcesRequest) *ZoneViewsAddResourcesCall
AddResources: Add resources to the view.
func (*ZoneViewsService) Delete ¶
func (r *ZoneViewsService) Delete(project string, zone string, resourceView string) *ZoneViewsDeleteCall
Delete: Delete a resource view.
func (*ZoneViewsService) Get ¶
func (r *ZoneViewsService) Get(project string, zone string, resourceView string) *ZoneViewsGetCall
Get: Get the information of a zonal resource view.
func (*ZoneViewsService) GetService ¶
func (r *ZoneViewsService) GetService(project string, zone string, resourceView string) *ZoneViewsGetServiceCall
GetService: Get the service information of a resource view or a resource.
func (*ZoneViewsService) Insert ¶
func (r *ZoneViewsService) Insert(project string, zone string, resourceview *ResourceView) *ZoneViewsInsertCall
Insert: Create a resource view.
func (*ZoneViewsService) List ¶
func (r *ZoneViewsService) List(project string, zone string) *ZoneViewsListCall
List: List resource views.
func (*ZoneViewsService) ListResources ¶
func (r *ZoneViewsService) ListResources(project string, zone string, resourceView string) *ZoneViewsListResourcesCall
ListResources: List the resources of the resource view.
func (*ZoneViewsService) RemoveResources ¶
func (r *ZoneViewsService) RemoveResources(project string, zone string, resourceView string, zoneviewsremoveresourcesrequest *ZoneViewsRemoveResourcesRequest) *ZoneViewsRemoveResourcesCall
RemoveResources: Remove resources from the view.
func (*ZoneViewsService) SetService ¶
func (r *ZoneViewsService) SetService(project string, zone string, resourceView string, zoneviewssetservicerequest *ZoneViewsSetServiceRequest) *ZoneViewsSetServiceCall
SetService: Update the service information of a resource view or a resource.
type ZoneViewsSetServiceCall ¶
type ZoneViewsSetServiceCall struct {
// contains filtered or unexported fields
}
func (*ZoneViewsSetServiceCall) Context ¶
func (c *ZoneViewsSetServiceCall) Context(ctx context.Context) *ZoneViewsSetServiceCall
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 (*ZoneViewsSetServiceCall) Do ¶
func (c *ZoneViewsSetServiceCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "resourceviews.zoneViews.setService" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ZoneViewsSetServiceCall) Fields ¶
func (c *ZoneViewsSetServiceCall) Fields(s ...googleapi.Field) *ZoneViewsSetServiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ZoneViewsSetServiceCall) Header ¶
func (c *ZoneViewsSetServiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ZoneViewsSetServiceRequest ¶
type ZoneViewsSetServiceRequest struct { // Endpoints: The service information to be updated. Endpoints []*ServiceEndpoint `json:"endpoints,omitempty"` // Fingerprint: Fingerprint of the service information; a hash of the // contents. This field is used for optimistic locking when updating the // service entries. Fingerprint string `json:"fingerprint,omitempty"` // ResourceName: The name of the resource if user wants to update the // service information of the resource. ResourceName string `json:"resourceName,omitempty"` // ForceSendFields is a list of field names (e.g. "Endpoints") 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. "Endpoints") 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:"-"` }
func (*ZoneViewsSetServiceRequest) MarshalJSON ¶
func (s *ZoneViewsSetServiceRequest) MarshalJSON() ([]byte, error)