Copyright | (c) 2025 Tushar |
---|---|
License | MIT |
Maintainer | |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data InstanceMetadata = InstanceMetadata {
- cpuPlatform :: Maybe String
- labelFingerprint :: Maybe Text
- instanceEncryptionKey :: Maybe InstanceEncryptionKey
- minCpuPlatform :: Maybe Text
- guestAccelerators :: Maybe [GuestAccelerator]
- startRestricted :: Maybe Bool
- deletionProtection :: Maybe Bool
- resourcePolicies :: Maybe [Text]
- sourceMachineImage :: Maybe Text
- reservationAffinity :: Maybe ReservationAffinity
- hostname :: Maybe Text
- displayDevice :: Maybe DisplayDevice
- shieldedInstanceConfig :: Maybe ShieldedInstanceConfig
- shieldedInstanceIntegrityPolicy :: Maybe ShieldedInstanceIntegrityPolicy
- sourceMachineImageEncryptionKey :: Maybe InstanceEncryptionKey
- confidentialInstanceConfig :: Maybe ConfidentialInstanceConfig
- fingerprint :: Maybe Text
- privateIpv6GoogleAccess :: Maybe Text
- lastStartTimestamp :: Maybe String
- lastStopTimestamp :: Maybe String
- lastSuspendedTimestamp :: Maybe String
- satisfiesPzs :: Maybe Bool
- satisfiesPzi :: Maybe Bool
- resourceStatus :: Maybe ResourceStatus
- networkPerformanceConfig :: Maybe NetworkPerformanceConfig
- keyRevocationActionType :: Maybe Text
- data InstanceDeleteResp = InstanceDeleteResp {
- kind :: Maybe String
- id_ :: Maybe String
- creationTimestamp :: Maybe String
- name :: Maybe String
- zone :: Maybe String
- clientOperationId :: Maybe String
- operationType :: Maybe String
- targetLink :: Maybe String
- targetId :: Maybe String
- status :: Maybe String
- statusMessage :: Maybe String
- user :: Maybe String
- progress :: Maybe Int
- insertTime :: Maybe String
- startTime :: Maybe String
- endTime :: Maybe String
- error_ :: Maybe Error_
- warnings :: Maybe [Warning]
- httpErrorStatusCode :: Maybe Int
- httpErrorMessage :: Maybe String
- selfLink :: Maybe String
- region :: Maybe String
- description :: Maybe String
- operationGroupId :: Maybe String
- data InstanceStartResponse = InstanceStartResponse {}
- data RunDuration = TerminationTime String
- data OnInstanceTerminationAction = DiscardLocalSsd {}
- data Scheduling = Scheduling {}
- data InstanceTerminationAction = RunDurationRunDuration RunDuration
- data NodeAffinity = NodeAffinity {}
- data Warning = Warning {}
- data GuestAccelerator = GuestAccelerator {}
- data ReservationAffinity = ReservationAffinity {}
- data DisplayDevice = DisplayDevice {}
- data ShieldedInstanceConfig = ShieldedInstanceConfig {}
- data ShieldedInstanceIntegrityPolicy = ShieldedInstanceIntegrityPolicy {}
- data UpdateAutoLearnPolicy = UpdateAutoLearnPolicy {}
- data ConfidentialInstanceConfig = ConfidentialInstanceConfig {}
- data InstanceEncryptionKey = InstanceEncryptionKey {}
- data NetworkPerformanceConfig = NetworkPerformanceConfig {}
- data ResourceStatus = ResourceStatus {}
- data InstanceList = InstanceList {}
- data Error_ = Error_ {
- errors :: Maybe [ErrorDetail]
- data ErrorDetail = ErrorDetail {}
- data DetailedError = DetailedError {}
- data ErrorInfo = ErrorInfo {}
- data QuotaInfo = QuotaInfo {}
- data Help = Help {}
- data Link = Link {}
- data LocalizedMessage = LocalizedMessage {}
- data ListInstancesQuery = ListInstancesQuery {}
- data RequestIdQuery = RequestIdQuery {}
- data InsertInstanceOps = InsertInstanceOps {
- name :: String
- machineType :: String
- disks :: Maybe [Disk]
- networkInterfaces :: Maybe [NetworkInterface]
- listInstances :: String -> String -> Maybe ListInstancesQuery -> IO (Either String InstanceList)
- deleteInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceDeleteResp)
- startInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceStartResponse)
- stopInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceStartResponse)
- insertInstance :: String -> String -> InsertInstanceOps -> Maybe InsertInstanceQuery -> IO (Either String InstanceStartResponse)
- defaultListInstancesQuery :: ListInstancesQuery
- defaultInsertInstanceOps :: String -> String -> String -> String -> InsertInstanceOps
- defaultRequestIdQuery :: String -> RequestIdQuery
Documentation
data InstanceMetadata Source #
Metadata representing a Compute Engine instance
Constructors
InstanceMetadata | |
Fields
|
Instances
FromJSON InstanceMetadata Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser InstanceMetadata # parseJSONList :: Value -> Parser [InstanceMetadata] # | |
ToJSON InstanceMetadata Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceMetadata -> Value # toEncoding :: InstanceMetadata -> Encoding # toJSONList :: [InstanceMetadata] -> Value # toEncodingList :: [InstanceMetadata] -> Encoding # omitField :: InstanceMetadata -> Bool # | |
Show InstanceMetadata Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceMetadata -> ShowS # show :: InstanceMetadata -> String # showList :: [InstanceMetadata] -> ShowS # | |
Eq InstanceMetadata Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InstanceMetadata -> InstanceMetadata -> Bool # (/=) :: InstanceMetadata -> InstanceMetadata -> Bool # |
data InstanceDeleteResp Source #
Response structure for delete instance operation
Constructors
InstanceDeleteResp | |
Fields
|
Instances
FromJSON InstanceDeleteResp Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser InstanceDeleteResp # parseJSONList :: Value -> Parser [InstanceDeleteResp] # | |
ToJSON InstanceDeleteResp Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceDeleteResp -> Value # toEncoding :: InstanceDeleteResp -> Encoding # toJSONList :: [InstanceDeleteResp] -> Value # toEncodingList :: [InstanceDeleteResp] -> Encoding # omitField :: InstanceDeleteResp -> Bool # | |
Show InstanceDeleteResp Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceDeleteResp -> ShowS # show :: InstanceDeleteResp -> String # showList :: [InstanceDeleteResp] -> ShowS # | |
Eq InstanceDeleteResp Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InstanceDeleteResp -> InstanceDeleteResp -> Bool # (/=) :: InstanceDeleteResp -> InstanceDeleteResp -> Bool # |
data InstanceStartResponse Source #
Constructors
InstanceStartResponse | |
Instances
FromJSON InstanceStartResponse Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser InstanceStartResponse # parseJSONList :: Value -> Parser [InstanceStartResponse] # | |
ToJSON InstanceStartResponse Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceStartResponse -> Value # toEncoding :: InstanceStartResponse -> Encoding # toJSONList :: [InstanceStartResponse] -> Value # toEncodingList :: [InstanceStartResponse] -> Encoding # omitField :: InstanceStartResponse -> Bool # | |
Show InstanceStartResponse Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceStartResponse -> ShowS # show :: InstanceStartResponse -> String # showList :: [InstanceStartResponse] -> ShowS # | |
Eq InstanceStartResponse Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InstanceStartResponse -> InstanceStartResponse -> Bool # (/=) :: InstanceStartResponse -> InstanceStartResponse -> Bool # |
data RunDuration Source #
Constructors
TerminationTime String |
Instances
FromJSON RunDuration Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON RunDuration Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: RunDuration -> Value # toEncoding :: RunDuration -> Encoding # toJSONList :: [RunDuration] -> Value # toEncodingList :: [RunDuration] -> Encoding # omitField :: RunDuration -> Bool # | |
Show RunDuration Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> RunDuration -> ShowS # show :: RunDuration -> String # showList :: [RunDuration] -> ShowS # | |
Eq RunDuration Source # | |
Defined in Google.Cloud.Compute.Instance |
data OnInstanceTerminationAction Source #
Constructors
DiscardLocalSsd | |
Fields |
Instances
FromJSON OnInstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON OnInstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: OnInstanceTerminationAction -> Value # toEncoding :: OnInstanceTerminationAction -> Encoding # toJSONList :: [OnInstanceTerminationAction] -> Value # toEncodingList :: [OnInstanceTerminationAction] -> Encoding # | |
Show OnInstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> OnInstanceTerminationAction -> ShowS # show :: OnInstanceTerminationAction -> String # showList :: [OnInstanceTerminationAction] -> ShowS # | |
Eq OnInstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: OnInstanceTerminationAction -> OnInstanceTerminationAction -> Bool # (/=) :: OnInstanceTerminationAction -> OnInstanceTerminationAction -> Bool # |
data Scheduling Source #
Constructors
Scheduling | |
Instances
FromJSON Scheduling Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON Scheduling Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: Scheduling -> Value # toEncoding :: Scheduling -> Encoding # toJSONList :: [Scheduling] -> Value # toEncodingList :: [Scheduling] -> Encoding # omitField :: Scheduling -> Bool # | |
Show Scheduling Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> Scheduling -> ShowS # show :: Scheduling -> String # showList :: [Scheduling] -> ShowS # | |
Eq Scheduling Source # | |
Defined in Google.Cloud.Compute.Instance |
data InstanceTerminationAction Source #
Constructors
RunDurationRunDuration RunDuration |
Instances
FromJSON InstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser InstanceTerminationAction # parseJSONList :: Value -> Parser [InstanceTerminationAction] # | |
ToJSON InstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceTerminationAction -> Value # toEncoding :: InstanceTerminationAction -> Encoding # toJSONList :: [InstanceTerminationAction] -> Value # | |
Show InstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceTerminationAction -> ShowS # show :: InstanceTerminationAction -> String # showList :: [InstanceTerminationAction] -> ShowS # | |
Eq InstanceTerminationAction Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InstanceTerminationAction -> InstanceTerminationAction -> Bool # (/=) :: InstanceTerminationAction -> InstanceTerminationAction -> Bool # |
data NodeAffinity Source #
Instances
FromJSON NodeAffinity Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON NodeAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: NodeAffinity -> Value # toEncoding :: NodeAffinity -> Encoding # toJSONList :: [NodeAffinity] -> Value # toEncodingList :: [NodeAffinity] -> Encoding # omitField :: NodeAffinity -> Bool # | |
Show NodeAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> NodeAffinity -> ShowS # show :: NodeAffinity -> String # showList :: [NodeAffinity] -> ShowS # | |
Eq NodeAffinity Source # | |
Defined in Google.Cloud.Compute.Instance |
data GuestAccelerator Source #
Constructors
GuestAccelerator | |
Fields |
Instances
FromJSON GuestAccelerator Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser GuestAccelerator # parseJSONList :: Value -> Parser [GuestAccelerator] # | |
ToJSON GuestAccelerator Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: GuestAccelerator -> Value # toEncoding :: GuestAccelerator -> Encoding # toJSONList :: [GuestAccelerator] -> Value # toEncodingList :: [GuestAccelerator] -> Encoding # omitField :: GuestAccelerator -> Bool # | |
Show GuestAccelerator Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> GuestAccelerator -> ShowS # show :: GuestAccelerator -> String # showList :: [GuestAccelerator] -> ShowS # | |
Eq GuestAccelerator Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: GuestAccelerator -> GuestAccelerator -> Bool # (/=) :: GuestAccelerator -> GuestAccelerator -> Bool # |
data ReservationAffinity Source #
Constructors
ReservationAffinity | |
Instances
FromJSON ReservationAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser ReservationAffinity # parseJSONList :: Value -> Parser [ReservationAffinity] # | |
ToJSON ReservationAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: ReservationAffinity -> Value # toEncoding :: ReservationAffinity -> Encoding # toJSONList :: [ReservationAffinity] -> Value # toEncodingList :: [ReservationAffinity] -> Encoding # omitField :: ReservationAffinity -> Bool # | |
Show ReservationAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ReservationAffinity -> ShowS # show :: ReservationAffinity -> String # showList :: [ReservationAffinity] -> ShowS # | |
Eq ReservationAffinity Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: ReservationAffinity -> ReservationAffinity -> Bool # (/=) :: ReservationAffinity -> ReservationAffinity -> Bool # |
data DisplayDevice Source #
Constructors
DisplayDevice | |
Fields |
Instances
FromJSON DisplayDevice Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser DisplayDevice # parseJSONList :: Value -> Parser [DisplayDevice] # | |
ToJSON DisplayDevice Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: DisplayDevice -> Value # toEncoding :: DisplayDevice -> Encoding # toJSONList :: [DisplayDevice] -> Value # toEncodingList :: [DisplayDevice] -> Encoding # omitField :: DisplayDevice -> Bool # | |
Show DisplayDevice Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> DisplayDevice -> ShowS # show :: DisplayDevice -> String # showList :: [DisplayDevice] -> ShowS # | |
Eq DisplayDevice Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: DisplayDevice -> DisplayDevice -> Bool # (/=) :: DisplayDevice -> DisplayDevice -> Bool # |
data ShieldedInstanceConfig Source #
Constructors
ShieldedInstanceConfig | |
Fields |
Instances
FromJSON ShieldedInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser ShieldedInstanceConfig # parseJSONList :: Value -> Parser [ShieldedInstanceConfig] # | |
ToJSON ShieldedInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: ShieldedInstanceConfig -> Value # toEncoding :: ShieldedInstanceConfig -> Encoding # toJSONList :: [ShieldedInstanceConfig] -> Value # toEncodingList :: [ShieldedInstanceConfig] -> Encoding # omitField :: ShieldedInstanceConfig -> Bool # | |
Show ShieldedInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ShieldedInstanceConfig -> ShowS # show :: ShieldedInstanceConfig -> String # showList :: [ShieldedInstanceConfig] -> ShowS # | |
Eq ShieldedInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: ShieldedInstanceConfig -> ShieldedInstanceConfig -> Bool # (/=) :: ShieldedInstanceConfig -> ShieldedInstanceConfig -> Bool # |
data ShieldedInstanceIntegrityPolicy Source #
Constructors
ShieldedInstanceIntegrityPolicy | |
Fields |
Instances
data UpdateAutoLearnPolicy Source #
Constructors
UpdateAutoLearnPolicy | |
Fields |
Instances
FromJSON UpdateAutoLearnPolicy Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser UpdateAutoLearnPolicy # parseJSONList :: Value -> Parser [UpdateAutoLearnPolicy] # | |
ToJSON UpdateAutoLearnPolicy Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: UpdateAutoLearnPolicy -> Value # toEncoding :: UpdateAutoLearnPolicy -> Encoding # toJSONList :: [UpdateAutoLearnPolicy] -> Value # toEncodingList :: [UpdateAutoLearnPolicy] -> Encoding # omitField :: UpdateAutoLearnPolicy -> Bool # | |
Show UpdateAutoLearnPolicy Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> UpdateAutoLearnPolicy -> ShowS # show :: UpdateAutoLearnPolicy -> String # showList :: [UpdateAutoLearnPolicy] -> ShowS # | |
Eq UpdateAutoLearnPolicy Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: UpdateAutoLearnPolicy -> UpdateAutoLearnPolicy -> Bool # (/=) :: UpdateAutoLearnPolicy -> UpdateAutoLearnPolicy -> Bool # |
data ConfidentialInstanceConfig Source #
Constructors
ConfidentialInstanceConfig | |
Fields |
Instances
FromJSON ConfidentialInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON ConfidentialInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: ConfidentialInstanceConfig -> Value # toEncoding :: ConfidentialInstanceConfig -> Encoding # toJSONList :: [ConfidentialInstanceConfig] -> Value # toEncodingList :: [ConfidentialInstanceConfig] -> Encoding # | |
Show ConfidentialInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ConfidentialInstanceConfig -> ShowS # show :: ConfidentialInstanceConfig -> String # showList :: [ConfidentialInstanceConfig] -> ShowS # | |
Eq ConfidentialInstanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: ConfidentialInstanceConfig -> ConfidentialInstanceConfig -> Bool # (/=) :: ConfidentialInstanceConfig -> ConfidentialInstanceConfig -> Bool # |
data InstanceEncryptionKey Source #
Constructors
InstanceEncryptionKey | |
Fields
|
Instances
FromJSON InstanceEncryptionKey Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser InstanceEncryptionKey # parseJSONList :: Value -> Parser [InstanceEncryptionKey] # | |
ToJSON InstanceEncryptionKey Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceEncryptionKey -> Value # toEncoding :: InstanceEncryptionKey -> Encoding # toJSONList :: [InstanceEncryptionKey] -> Value # toEncodingList :: [InstanceEncryptionKey] -> Encoding # omitField :: InstanceEncryptionKey -> Bool # | |
Show InstanceEncryptionKey Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceEncryptionKey -> ShowS # show :: InstanceEncryptionKey -> String # showList :: [InstanceEncryptionKey] -> ShowS # | |
Eq InstanceEncryptionKey Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InstanceEncryptionKey -> InstanceEncryptionKey -> Bool # (/=) :: InstanceEncryptionKey -> InstanceEncryptionKey -> Bool # |
data NetworkPerformanceConfig Source #
Constructors
NetworkPerformanceConfig | |
Fields |
Instances
FromJSON NetworkPerformanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser NetworkPerformanceConfig # parseJSONList :: Value -> Parser [NetworkPerformanceConfig] # | |
ToJSON NetworkPerformanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: NetworkPerformanceConfig -> Value # toEncoding :: NetworkPerformanceConfig -> Encoding # toJSONList :: [NetworkPerformanceConfig] -> Value # | |
Show NetworkPerformanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> NetworkPerformanceConfig -> ShowS # show :: NetworkPerformanceConfig -> String # showList :: [NetworkPerformanceConfig] -> ShowS # | |
Eq NetworkPerformanceConfig Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: NetworkPerformanceConfig -> NetworkPerformanceConfig -> Bool # (/=) :: NetworkPerformanceConfig -> NetworkPerformanceConfig -> Bool # |
data ResourceStatus Source #
Constructors
ResourceStatus | |
Instances
FromJSON ResourceStatus Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser ResourceStatus # parseJSONList :: Value -> Parser [ResourceStatus] # | |
ToJSON ResourceStatus Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: ResourceStatus -> Value # toEncoding :: ResourceStatus -> Encoding # toJSONList :: [ResourceStatus] -> Value # toEncodingList :: [ResourceStatus] -> Encoding # omitField :: ResourceStatus -> Bool # | |
Show ResourceStatus Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ResourceStatus -> ShowS # show :: ResourceStatus -> String # showList :: [ResourceStatus] -> ShowS # | |
Eq ResourceStatus Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: ResourceStatus -> ResourceStatus -> Bool # (/=) :: ResourceStatus -> ResourceStatus -> Bool # |
data InstanceList Source #
Constructors
InstanceList | |
Instances
FromJSON InstanceList Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON InstanceList Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InstanceList -> Value # toEncoding :: InstanceList -> Encoding # toJSONList :: [InstanceList] -> Value # toEncodingList :: [InstanceList] -> Encoding # omitField :: InstanceList -> Bool # | |
Show InstanceList Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InstanceList -> ShowS # show :: InstanceList -> String # showList :: [InstanceList] -> ShowS # | |
Eq InstanceList Source # | |
Defined in Google.Cloud.Compute.Instance |
Constructors
Error_ | |
Fields
|
data ErrorDetail Source #
Constructors
ErrorDetail | |
Instances
FromJSON ErrorDetail Source # | |
Defined in Google.Cloud.Compute.Instance | |
ToJSON ErrorDetail Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: ErrorDetail -> Value # toEncoding :: ErrorDetail -> Encoding # toJSONList :: [ErrorDetail] -> Value # toEncodingList :: [ErrorDetail] -> Encoding # omitField :: ErrorDetail -> Bool # | |
Show ErrorDetail Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ErrorDetail -> ShowS # show :: ErrorDetail -> String # showList :: [ErrorDetail] -> ShowS # | |
Eq ErrorDetail Source # | |
Defined in Google.Cloud.Compute.Instance |
data DetailedError Source #
Constructors
DetailedError | |
Instances
FromJSON DetailedError Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser DetailedError # parseJSONList :: Value -> Parser [DetailedError] # | |
ToJSON DetailedError Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: DetailedError -> Value # toEncoding :: DetailedError -> Encoding # toJSONList :: [DetailedError] -> Value # toEncodingList :: [DetailedError] -> Encoding # omitField :: DetailedError -> Bool # | |
Show DetailedError Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> DetailedError -> ShowS # show :: DetailedError -> String # showList :: [DetailedError] -> ShowS # | |
Eq DetailedError Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: DetailedError -> DetailedError -> Bool # (/=) :: DetailedError -> DetailedError -> Bool # |
Constructors
QuotaInfo | |
Fields
|
data LocalizedMessage Source #
Instances
FromJSON LocalizedMessage Source # | |
Defined in Google.Cloud.Compute.Instance Methods parseJSON :: Value -> Parser LocalizedMessage # parseJSONList :: Value -> Parser [LocalizedMessage] # | |
ToJSON LocalizedMessage Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: LocalizedMessage -> Value # toEncoding :: LocalizedMessage -> Encoding # toJSONList :: [LocalizedMessage] -> Value # toEncodingList :: [LocalizedMessage] -> Encoding # omitField :: LocalizedMessage -> Bool # | |
Show LocalizedMessage Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> LocalizedMessage -> ShowS # show :: LocalizedMessage -> String # showList :: [LocalizedMessage] -> ShowS # | |
Eq LocalizedMessage Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: LocalizedMessage -> LocalizedMessage -> Bool # (/=) :: LocalizedMessage -> LocalizedMessage -> Bool # |
data ListInstancesQuery Source #
Query parameters for listing instances
Constructors
ListInstancesQuery | |
Fields
|
Instances
Show ListInstancesQuery Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> ListInstancesQuery -> ShowS # show :: ListInstancesQuery -> String # showList :: [ListInstancesQuery] -> ShowS # | |
Eq ListInstancesQuery Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: ListInstancesQuery -> ListInstancesQuery -> Bool # (/=) :: ListInstancesQuery -> ListInstancesQuery -> Bool # |
data RequestIdQuery Source #
Constructors
RequestIdQuery | |
Instances
Show RequestIdQuery Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> RequestIdQuery -> ShowS # show :: RequestIdQuery -> String # showList :: [RequestIdQuery] -> ShowS # | |
Eq RequestIdQuery Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: RequestIdQuery -> RequestIdQuery -> Bool # (/=) :: RequestIdQuery -> RequestIdQuery -> Bool # |
data InsertInstanceOps Source #
Constructors
InsertInstanceOps | |
Fields
|
Instances
ToJSON InsertInstanceOps Source # | |
Defined in Google.Cloud.Compute.Instance Methods toJSON :: InsertInstanceOps -> Value # toEncoding :: InsertInstanceOps -> Encoding # toJSONList :: [InsertInstanceOps] -> Value # toEncodingList :: [InsertInstanceOps] -> Encoding # omitField :: InsertInstanceOps -> Bool # | |
Show InsertInstanceOps Source # | |
Defined in Google.Cloud.Compute.Instance Methods showsPrec :: Int -> InsertInstanceOps -> ShowS # show :: InsertInstanceOps -> String # showList :: [InsertInstanceOps] -> ShowS # | |
Eq InsertInstanceOps Source # | |
Defined in Google.Cloud.Compute.Instance Methods (==) :: InsertInstanceOps -> InsertInstanceOps -> Bool # (/=) :: InsertInstanceOps -> InsertInstanceOps -> Bool # |
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
deleteInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceDeleteResp) Source #
startInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceStartResponse) Source #
stopInstance :: String -> String -> String -> Maybe RequestIdQuery -> IO (Either String InstanceStartResponse) Source #
insertInstance :: String -> String -> InsertInstanceOps -> Maybe InsertInstanceQuery -> IO (Either String InstanceStartResponse) Source #
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