google-cloud-compute-0.1.0.0: GCP Client for Haskell
Copyright(c) 2025 Tushar
LicenseMIT
Maintainer
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Google.Cloud.Compute.Instance

Description

This module provides types and functions for interacting with Google Cloud Platform (GCP) Compute Engine instances. It supports common operations such as listing, creating, deleting, starting, and stopping instances, along with detailed configuration of instance properties.

All functions communicate with the GCP Compute Engine API v1 and return either an error message (Left) or a parsed response object (Right).

For more information on the underlying API, see: GCP Compute Instances Documentation

Synopsis

Documentation

data InstanceMetadata Source #

Metadata representing a Compute Engine instance

Constructors

InstanceMetadata 

Fields

data InstanceDeleteResp Source #

Response structure for delete instance operation

data Error_ Source #

Constructors

Error_ 

Fields

Instances

Instances details
FromJSON Error_ Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

ToJSON Error_ Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Show Error_ Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Eq Error_ Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Methods

(==) :: Error_ -> Error_ -> Bool #

(/=) :: Error_ -> Error_ -> Bool #

data Help Source #

Constructors

Help 

Fields

Instances

Instances details
FromJSON Help Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

ToJSON Help Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Show Help Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Methods

showsPrec :: Int -> Help -> ShowS #

show :: Help -> String #

showList :: [Help] -> ShowS #

Eq Help Source # 
Instance details

Defined in Google.Cloud.Compute.Instance

Methods

(==) :: Help -> Help -> Bool #

(/=) :: Help -> Help -> Bool #

data Link Source #

Constructors

Link 

Instances

data ListInstancesQuery Source #

Query parameters for listing instances

Constructors

ListInstancesQuery 

Fields

listInstances :: String -> String -> Maybe ListInstancesQuery -> IO (Either String InstanceList) Source #

List instances in a given zone

listInstances 
  :: String       -- ^ GCP Project ID
  -> String       -- ^ Zone name
  -> Maybe ListInstancesQuery  -- ^ Optional query parameters
  -> IO (Either String InstanceList)

Returns either an error message or an InstanceList containing the collection of instances

defaultInsertInstanceOps :: String -> String -> String -> String -> InsertInstanceOps Source #

Create a default instance configuration

Creates a basic instance configuration with: * 10GB persistent boot disk * Default Debian image * Network interface on default VPC