Documentation ¶
Overview ¶
Package catalog provides access to the .
Usage example:
import "github.com/TriggerMail/luci-go/common/api/machine_provider/catalog/v1" ... catalogService, err := catalog.New(oauthHttpClient)
Index ¶
- Constants
- type AddMachineCall
- func (c *AddMachineCall) Context(ctx context.Context) *AddMachineCall
- func (c *AddMachineCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse, error)
- func (c *AddMachineCall) Fields(s ...googleapi.Field) *AddMachineCall
- func (c *AddMachineCall) Header() http.Header
- type AddMachinesCall
- func (c *AddMachinesCall) Context(ctx context.Context) *AddMachinesCall
- func (c *AddMachinesCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse, error)
- func (c *AddMachinesCall) Fields(s ...googleapi.Field) *AddMachinesCall
- func (c *AddMachinesCall) Header() http.Header
- type ComponentsMachineProviderDimensionsDimensions
- type ComponentsMachineProviderPoliciesKeyValuePair
- type ComponentsMachineProviderPoliciesPolicies
- type ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse
- type ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest
- type ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest
- type ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest
- type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest
- type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse
- type ComponentsMachineProviderRpcMessagesCatalogManipulationResponse
- type DeleteMachineCall
- func (c *DeleteMachineCall) Context(ctx context.Context) *DeleteMachineCall
- func (c *DeleteMachineCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse, error)
- func (c *DeleteMachineCall) Fields(s ...googleapi.Field) *DeleteMachineCall
- func (c *DeleteMachineCall) Header() http.Header
- type GetCall
- type Service
Constants ¶
const (
// https://www.googleapis.com/auth/userinfo.email
UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMachineCall ¶
type AddMachineCall struct {
// contains filtered or unexported fields
}
func (*AddMachineCall) Context ¶
func (c *AddMachineCall) Context(ctx context.Context) *AddMachineCall
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 (*AddMachineCall) Do ¶
func (c *AddMachineCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse, error)
Do executes the "catalog.add_machine" call. Exactly one of *ComponentsMachineProviderRpcMessagesCatalogManipulationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ComponentsMachineProviderRpcMessagesCatalogManipulationResponse.Serve rResponse.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 (*AddMachineCall) Fields ¶
func (c *AddMachineCall) Fields(s ...googleapi.Field) *AddMachineCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AddMachineCall) Header ¶
func (c *AddMachineCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AddMachinesCall ¶
type AddMachinesCall struct {
// contains filtered or unexported fields
}
func (*AddMachinesCall) Context ¶
func (c *AddMachinesCall) Context(ctx context.Context) *AddMachinesCall
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 (*AddMachinesCall) Do ¶
func (c *AddMachinesCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse, error)
Do executes the "catalog.add_machines" call. Exactly one of *ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse. 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 (*AddMachinesCall) Fields ¶
func (c *AddMachinesCall) Fields(s ...googleapi.Field) *AddMachinesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AddMachinesCall) Header ¶
func (c *AddMachinesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ComponentsMachineProviderDimensionsDimensions ¶
type ComponentsMachineProviderDimensionsDimensions struct { // Possible values: // "DUMMY" // "GCE" // "VSPHERE" Backend string `json:"backend,omitempty"` DiskGb int64 `json:"disk_gb,omitempty,string"` // Possible values: // "HDD" // "SSD" DiskType string `json:"disk_type,omitempty"` Hostname string `json:"hostname,omitempty"` // Possible values: // "DEBIAN" // "UBUNTU" LinuxFlavor string `json:"linux_flavor,omitempty"` MemoryGb float64 `json:"memory_gb,omitempty"` NumCpus int64 `json:"num_cpus,omitempty,string"` // Possible values: // "LINUX" // "OSX" // "WINDOWS" OsFamily string `json:"os_family,omitempty"` OsVersion string `json:"os_version,omitempty"` Project string `json:"project,omitempty"` // ForceSendFields is a list of field names (e.g. "Backend") 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. "Backend") 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:"-"` }
ComponentsMachineProviderDimensionsDimensions: Represents the dimensions of a machine.
func (*ComponentsMachineProviderDimensionsDimensions) MarshalJSON ¶
func (s *ComponentsMachineProviderDimensionsDimensions) MarshalJSON() ([]byte, error)
func (*ComponentsMachineProviderDimensionsDimensions) UnmarshalJSON ¶
func (s *ComponentsMachineProviderDimensionsDimensions) UnmarshalJSON(data []byte) error
type ComponentsMachineProviderPoliciesKeyValuePair ¶
type ComponentsMachineProviderPoliciesKeyValuePair struct { Key string `json:"key,omitempty"` 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:"-"` }
ComponentsMachineProviderPoliciesKeyValuePair: Represents a key-value pair.
func (*ComponentsMachineProviderPoliciesKeyValuePair) MarshalJSON ¶
func (s *ComponentsMachineProviderPoliciesKeyValuePair) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderPoliciesPolicies ¶
type ComponentsMachineProviderPoliciesPolicies struct { // BackendAttributes: Represents a key-value pair. BackendAttributes []*ComponentsMachineProviderPoliciesKeyValuePair `json:"backend_attributes,omitempty"` BackendProject string `json:"backend_project,omitempty"` BackendTopic string `json:"backend_topic,omitempty"` MachineServiceAccount string `json:"machine_service_account,omitempty"` // Possible values: // "DELETE" // "MAKE_AVAILABLE" (default) // "RECLAIM" OnReclamation string `json:"on_reclamation,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendAttributes") // 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. "BackendAttributes") 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:"-"` }
ComponentsMachineProviderPoliciesPolicies: Represents the policies for a machine. There are two Pub/Sub channels of communication for each machine. One is the backend-level channel which the Machine Provider will use to tell the backend that the machine has been leased, or that the machine needs to be reclaimed. The other is the channel between the Machine Provider and the machine itself. The machine should listen for instructions from the Machine Provider on this channel. Since the machine itself is what's being leased out to untrusted users, we will assign this Cloud Pub/Sub topic and give it restricted permissions which only allow it to subscribe to the one topic. On the other hand, the backend is trusted so we allow it to choose its own topic. When a backend adds a machine to the Catalog, it should provide the Pub/Sub topic and project to communicate on regarding the machine, as well as the service account on the machine itself which will be used to authenticate pull requests on the subscription created by the Machine Provider for the machine.
func (*ComponentsMachineProviderPoliciesPolicies) MarshalJSON ¶
func (s *ComponentsMachineProviderPoliciesPolicies) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse ¶
type ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse struct { // Responses: Represents a response to a catalog manipulation request. Responses []*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse `json:"responses,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Responses") 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. "Responses") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse: Represents a response to a batched catalog manipulation request.
func (*ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogBatchManipulationResponse) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest ¶
type ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest struct { // Dimensions: Represents the dimensions of a machine. Dimensions *ComponentsMachineProviderDimensionsDimensions `json:"dimensions,omitempty"` // Policies: Represents the policies for a machine. There are two // Pub/Sub channels of communication for each machine. One is the // backend-level channel which the Machine Provider will use to tell the // backend that the machine has been leased, or that the machine needs // to be reclaimed. The other is the channel between the Machine // Provider and the machine itself. The machine should listen for // instructions from the Machine Provider on this channel. Since the // machine itself is what's being leased out to untrusted users, we will // assign this Cloud Pub/Sub topic and give it restricted permissions // which only allow it to subscribe to the one topic. On the other hand, // the backend is trusted so we allow it to choose its own topic. When a // backend adds a machine to the Catalog, it should provide the Pub/Sub // topic and project to communicate on regarding the machine, as well as // the service account on the machine itself which will be used to // authenticate pull requests on the subscription created by the Machine // Provider for the machine. Policies *ComponentsMachineProviderPoliciesPolicies `json:"policies,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest: Represents a request to add a machine to the catalog. dimensions.backend must be specified. dimensions.hostname must be unique per backend.
func (*ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest ¶
type ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest struct { // Requests: Represents a request to add a machine to the catalog. // dimensions.backend must be specified. dimensions.hostname must be // unique per backend. Requests []*ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest `json:"requests,omitempty"` // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest : Represents a batched set of CatalogMachineAdditionRequests. dimensions.backend must be specified in each CatalogMachineAdditionRequest. dimensions.hostname must be unique per backend.
func (*ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest ¶
type ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest struct { // Dimensions: Represents the dimensions of a machine. Dimensions *ComponentsMachineProviderDimensionsDimensions `json:"dimensions,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest: Represents a request to delete a machine in the catalog.
func (*ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest ¶
type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest struct { // Possible values: // "DUMMY" // "GCE" // "VSPHERE" Backend string `json:"backend,omitempty"` Hostname string `json:"hostname,omitempty"` // ForceSendFields is a list of field names (e.g. "Backend") 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. "Backend") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest: Represents a request to retrieve a machine from the catalog.
func (*ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse ¶
type ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse struct { // Dimensions: Represents the dimensions of a machine. Dimensions *ComponentsMachineProviderDimensionsDimensions `json:"dimensions,omitempty"` LeaseExpirationTs int64 `json:"lease_expiration_ts,omitempty,string"` LeasedIndefinitely bool `json:"leased_indefinitely,omitempty"` // Policies: Represents the policies for a machine. There are two // Pub/Sub channels of communication for each machine. One is the // backend-level channel which the Machine Provider will use to tell the // backend that the machine has been leased, or that the machine needs // to be reclaimed. The other is the channel between the Machine // Provider and the machine itself. The machine should listen for // instructions from the Machine Provider on this channel. Since the // machine itself is what's being leased out to untrusted users, we will // assign this Cloud Pub/Sub topic and give it restricted permissions // which only allow it to subscribe to the one topic. On the other hand, // the backend is trusted so we allow it to choose its own topic. When a // backend adds a machine to the Catalog, it should provide the Pub/Sub // topic and project to communicate on regarding the machine, as well as // the service account on the machine itself which will be used to // authenticate pull requests on the subscription created by the Machine // Provider for the machine. Policies *ComponentsMachineProviderPoliciesPolicies `json:"policies,omitempty"` PubsubSubscription string `json:"pubsub_subscription,omitempty"` PubsubSubscriptionProject string `json:"pubsub_subscription_project,omitempty"` PubsubTopic string `json:"pubsub_topic,omitempty"` PubsubTopicProject string `json:"pubsub_topic_project,omitempty"` State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse: Represents a response to a catalog machine retrieval request.
func (*ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse) MarshalJSON() ([]byte, error)
type ComponentsMachineProviderRpcMessagesCatalogManipulationResponse ¶
type ComponentsMachineProviderRpcMessagesCatalogManipulationResponse struct { // Possible values: // "ENTRY_NOT_FOUND" // "HOSTNAME_REUSE" // "INVALID_PROJECT" // "INVALID_TOPIC" // "LEASED" // "MISMATCHED_BACKEND" // "UNSPECIFIED_BACKEND" // "UNSPECIFIED_HOSTNAME" // "UNSPECIFIED_TOPIC" Error string `json:"error,omitempty"` // MachineAdditionRequest: Represents a request to add a machine to the // catalog. dimensions.backend must be specified. dimensions.hostname // must be unique per backend. MachineAdditionRequest *ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest `json:"machine_addition_request,omitempty"` // MachineDeletionRequest: Represents a request to delete a machine in // the catalog. MachineDeletionRequest *ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest `json:"machine_deletion_request,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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:"-"` }
ComponentsMachineProviderRpcMessagesCatalogManipulationResponse: Represents a response to a catalog manipulation request.
func (*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse) MarshalJSON ¶
func (s *ComponentsMachineProviderRpcMessagesCatalogManipulationResponse) MarshalJSON() ([]byte, error)
type DeleteMachineCall ¶
type DeleteMachineCall struct {
// contains filtered or unexported fields
}
func (*DeleteMachineCall) Context ¶
func (c *DeleteMachineCall) Context(ctx context.Context) *DeleteMachineCall
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 (*DeleteMachineCall) Do ¶
func (c *DeleteMachineCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogManipulationResponse, error)
Do executes the "catalog.delete_machine" call. Exactly one of *ComponentsMachineProviderRpcMessagesCatalogManipulationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ComponentsMachineProviderRpcMessagesCatalogManipulationResponse.Serve rResponse.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 (*DeleteMachineCall) Fields ¶
func (c *DeleteMachineCall) Fields(s ...googleapi.Field) *DeleteMachineCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DeleteMachineCall) Header ¶
func (c *DeleteMachineCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GetCall ¶
type GetCall struct {
// contains filtered or unexported fields
}
func (*GetCall) 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 (*GetCall) Do ¶
func (c *GetCall) Do(opts ...googleapi.CallOption) (*ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse, error)
Do executes the "catalog.get" call. Exactly one of *ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalResponse.S erverResponse.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 (*GetCall) Fields ¶
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment // contains filtered or unexported fields }
func (*Service) AddMachine ¶
func (s *Service) AddMachine(componentsmachineproviderrpcmessagescatalogmachineadditionrequest *ComponentsMachineProviderRpcMessagesCatalogMachineAdditionRequest) *AddMachineCall
AddMachine: Handles an incoming CatalogMachineAdditionRequest.
func (*Service) AddMachines ¶
func (s *Service) AddMachines(componentsmachineproviderrpcmessagescatalogmachinebatchadditionrequest *ComponentsMachineProviderRpcMessagesCatalogMachineBatchAdditionRequest) *AddMachinesCall
AddMachines: Handles an incoming CatalogMachineBatchAdditionRequest. Batches are intended to save on RPCs only. The batched requests will not execute transactionally.
func (*Service) DeleteMachine ¶
func (s *Service) DeleteMachine(componentsmachineproviderrpcmessagescatalogmachinedeletionrequest *ComponentsMachineProviderRpcMessagesCatalogMachineDeletionRequest) *DeleteMachineCall
DeleteMachine: Handles an incoming CatalogMachineDeletionRequest.
func (*Service) Get ¶
func (s *Service) Get(componentsmachineproviderrpcmessagescatalogmachineretrievalrequest *ComponentsMachineProviderRpcMessagesCatalogMachineRetrievalRequest) *GetCall
Get: Handles an incoming CatalogMachineRetrievalRequest.