Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The Replica Pool API allows users to declaratively provision and manage groups of Google Compute Engine instances based on a common template.
Synopsis
- replicaPoolService :: ServiceConfig
- cloudPlatformReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform.read-only"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- ndevCloudmanScope :: Proxy '["https://www.googleapis.com/auth/ndev.cloudman"]
- ndevCloudmanReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/ndev.cloudman.readonly"]
- replicaPoolScope :: Proxy '["https://www.googleapis.com/auth/replicapool"]
- replicaPoolReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/replicapool.readonly"]
- type ReplicaPoolAPI = PoolsInsertResource :<|> (PoolsResizeResource :<|> (PoolsListResource :<|> (PoolsGetResource :<|> (PoolsUpdatetemplateResource :<|> (PoolsDeleteResource :<|> (ReplicasListResource :<|> (ReplicasGetResource :<|> (ReplicasRestartResource :<|> ReplicasDeleteResource))))))))
- module Network.Google.Resource.ReplicaPool.Pools.Delete
- module Network.Google.Resource.ReplicaPool.Pools.Get
- module Network.Google.Resource.ReplicaPool.Pools.Insert
- module Network.Google.Resource.ReplicaPool.Pools.List
- module Network.Google.Resource.ReplicaPool.Pools.Resize
- module Network.Google.Resource.ReplicaPool.Pools.Updatetemplate
- module Network.Google.Resource.ReplicaPool.Replicas.Delete
- module Network.Google.Resource.ReplicaPool.Replicas.Get
- module Network.Google.Resource.ReplicaPool.Replicas.List
- module Network.Google.Resource.ReplicaPool.Replicas.Restart
- data ReplicaStatus
- replicaStatus :: ReplicaStatus
- rsState :: Lens' ReplicaStatus (Maybe Text)
- rsTemplateVersion :: Lens' ReplicaStatus (Maybe Text)
- rsVMLink :: Lens' ReplicaStatus (Maybe Text)
- rsVMStartTime :: Lens' ReplicaStatus (Maybe Text)
- rsDetails :: Lens' ReplicaStatus (Maybe Text)
- data DiskAttachment
- diskAttachment :: DiskAttachment
- daDeviceName :: Lens' DiskAttachment (Maybe Text)
- daIndex :: Lens' DiskAttachment (Maybe Word32)
- data PoolsDeleteRequest
- poolsDeleteRequest :: PoolsDeleteRequest
- pdrAbandonInstances :: Lens' PoolsDeleteRequest [Text]
- data HealthCheck
- healthCheck :: HealthCheck
- hcHealthyThreshold :: Lens' HealthCheck (Maybe Int32)
- hcPath :: Lens' HealthCheck (Maybe Text)
- hcCheckIntervalSec :: Lens' HealthCheck (Maybe Int32)
- hcName :: Lens' HealthCheck (Maybe Text)
- hcHost :: Lens' HealthCheck (Maybe Text)
- hcTimeoutSec :: Lens' HealthCheck (Maybe Int32)
- hcDescription :: Lens' HealthCheck (Maybe Text)
- hcUnhealthyThreshold :: Lens' HealthCheck (Maybe Int32)
- hcPort :: Lens' HealthCheck (Maybe Int32)
- data Tag
- tag :: Tag
- tFingerPrint :: Lens' Tag (Maybe Text)
- tItems :: Lens' Tag [Text]
- data NewDiskInitializeParams
- newDiskInitializeParams :: NewDiskInitializeParams
- ndipSourceImage :: Lens' NewDiskInitializeParams (Maybe Text)
- ndipDiskSizeGb :: Lens' NewDiskInitializeParams (Maybe Int64)
- ndipDiskType :: Lens' NewDiskInitializeParams (Maybe Text)
- data MetadataItem
- metadataItem :: MetadataItem
- miValue :: Lens' MetadataItem (Maybe Text)
- miKey :: Lens' MetadataItem (Maybe Text)
- data Replica
- replica :: Replica
- rStatus :: Lens' Replica (Maybe ReplicaStatus)
- rSelfLink :: Lens' Replica (Maybe Text)
- rName :: Lens' Replica (Maybe Text)
- data NetworkInterface
- networkInterface :: NetworkInterface
- niNetwork :: Lens' NetworkInterface (Maybe Text)
- niNetworkIP :: Lens' NetworkInterface (Maybe Text)
- niAccessConfigs :: Lens' NetworkInterface [AccessConfig]
- data ExistingDisk
- existingDisk :: ExistingDisk
- edAttachment :: Lens' ExistingDisk (Maybe DiskAttachment)
- edSource :: Lens' ExistingDisk (Maybe Text)
- data Action
- action :: Action
- aCommands :: Lens' Action [Text]
- aTimeoutMilliSeconds :: Lens' Action (Maybe Int32)
- aEnvVariables :: Lens' Action [EnvVariable]
- data Pool
- pool :: Pool
- pResourceViews :: Lens' Pool [Text]
- pNumReplicas :: Lens' Pool (Maybe Int32)
- pTargetPool :: Lens' Pool (Maybe Text)
- pAutoRestart :: Lens' Pool (Maybe Bool)
- pBaseInstanceName :: Lens' Pool (Maybe Text)
- pInitialNumReplicas :: Lens' Pool (Maybe Int32)
- pCurrentNumReplicas :: Lens' Pool (Maybe Int32)
- pSelfLink :: Lens' Pool (Maybe Text)
- pName :: Lens' Pool (Maybe Text)
- pLabels :: Lens' Pool [Label]
- pType :: Lens' Pool (Maybe Text)
- pTemplate :: Lens' Pool (Maybe Template)
- pTargetPools :: Lens' Pool [Text]
- pDescription :: Lens' Pool (Maybe Text)
- pHealthChecks :: Lens' Pool [HealthCheck]
- data ServiceAccount
- serviceAccount :: ServiceAccount
- saEmail :: Lens' ServiceAccount (Maybe Text)
- saScopes :: Lens' ServiceAccount [Text]
- data VMParams
- vMParams :: VMParams
- vmpServiceAccounts :: Lens' VMParams [ServiceAccount]
- vmpNetworkInterfaces :: Lens' VMParams [NetworkInterface]
- vmpBaseInstanceName :: Lens' VMParams (Maybe Text)
- vmpOnHostMaintenance :: Lens' VMParams (Maybe Text)
- vmpMachineType :: Lens' VMParams (Maybe Text)
- vmpMetadata :: Lens' VMParams (Maybe Metadata)
- vmpDisksToAttach :: Lens' VMParams [ExistingDisk]
- vmpCanIPForward :: Lens' VMParams (Maybe Bool)
- vmpDescription :: Lens' VMParams (Maybe Text)
- vmpDisksToCreate :: Lens' VMParams [NewDisk]
- vmpTags :: Lens' VMParams (Maybe Tag)
- data ReplicasListResponse
- replicasListResponse :: ReplicasListResponse
- rlrNextPageToken :: Lens' ReplicasListResponse (Maybe Text)
- rlrResources :: Lens' ReplicasListResponse [Replica]
- data Metadata
- metadata :: Metadata
- mFingerPrint :: Lens' Metadata (Maybe Text)
- mItems :: Lens' Metadata [MetadataItem]
- data Template
- template :: Template
- tAction :: Lens' Template (Maybe Action)
- tVMParams :: Lens' Template (Maybe VMParams)
- tVersion :: Lens' Template (Maybe Text)
- tHealthChecks :: Lens' Template [HealthCheck]
- data EnvVariable
- envVariable :: EnvVariable
- evValue :: Lens' EnvVariable (Maybe Text)
- evName :: Lens' EnvVariable (Maybe Text)
- evHidden :: Lens' EnvVariable (Maybe Bool)
- data ReplicasDeleteRequest
- replicasDeleteRequest :: ReplicasDeleteRequest
- rdrAbandonInstance :: Lens' ReplicasDeleteRequest (Maybe Bool)
- data AccessConfig
- accessConfig :: AccessConfig
- acName :: Lens' AccessConfig (Maybe Text)
- acNATIP :: Lens' AccessConfig (Maybe Text)
- acType :: Lens' AccessConfig (Maybe Text)
- data Label
- label :: Label
- lValue :: Lens' Label (Maybe Text)
- lKey :: Lens' Label (Maybe Text)
- data PoolsListResponse
- poolsListResponse :: PoolsListResponse
- plrNextPageToken :: Lens' PoolsListResponse (Maybe Text)
- plrResources :: Lens' PoolsListResponse [Pool]
- data NewDisk
- newDisk :: NewDisk
- ndBoot :: Lens' NewDisk (Maybe Bool)
- ndAutoDelete :: Lens' NewDisk (Maybe Bool)
- ndAttachment :: Lens' NewDisk (Maybe DiskAttachment)
- ndInitializeParams :: Lens' NewDisk (Maybe NewDiskInitializeParams)
Service Configuration
replicaPoolService :: ServiceConfig Source #
Default request referring to version v1beta1
of the Replica Pool API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
cloudPlatformReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform.read-only"] Source #
View your data across Google Cloud Platform services
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
ndevCloudmanScope :: Proxy '["https://www.googleapis.com/auth/ndev.cloudman"] Source #
View and manage your Google Cloud Platform management resources and deployment status information
ndevCloudmanReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/ndev.cloudman.readonly"] Source #
View your Google Cloud Platform management resources and deployment status information
replicaPoolScope :: Proxy '["https://www.googleapis.com/auth/replicapool"] Source #
View and manage replica pools
replicaPoolReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/replicapool.readonly"] Source #
View replica pools
API Declaration
type ReplicaPoolAPI = PoolsInsertResource :<|> (PoolsResizeResource :<|> (PoolsListResource :<|> (PoolsGetResource :<|> (PoolsUpdatetemplateResource :<|> (PoolsDeleteResource :<|> (ReplicasListResource :<|> (ReplicasGetResource :<|> (ReplicasRestartResource :<|> ReplicasDeleteResource)))))))) Source #
Represents the entirety of the methods and resources available for the Replica Pool API service.
Resources
replicapool.pools.delete
replicapool.pools.get
replicapool.pools.insert
replicapool.pools.list
replicapool.pools.resize
replicapool.pools.updatetemplate
replicapool.replicas.delete
replicapool.replicas.get
replicapool.replicas.list
replicapool.replicas.restart
Types
ReplicaStatus
data ReplicaStatus Source #
The current status of a Replica.
See: replicaStatus
smart constructor.
Instances
replicaStatus :: ReplicaStatus Source #
Creates a value of ReplicaStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rsTemplateVersion :: Lens' ReplicaStatus (Maybe Text) Source #
- Output Only
- The template used to build the replica.
rsVMLink :: Lens' ReplicaStatus (Maybe Text) Source #
- Output Only
- Link to the virtual machine that this Replica represents.
rsVMStartTime :: Lens' ReplicaStatus (Maybe Text) Source #
- Output Only
- The time that this Replica got to the RUNNING state, in RFC 3339 format. If the start time is unknown, UNKNOWN is returned.
rsDetails :: Lens' ReplicaStatus (Maybe Text) Source #
- Output Only
- Human-readable details about the current state of the replica
DiskAttachment
data DiskAttachment Source #
Specifies how to attach a disk to a Replica.
See: diskAttachment
smart constructor.
Instances
diskAttachment :: DiskAttachment Source #
Creates a value of DiskAttachment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
daDeviceName :: Lens' DiskAttachment (Maybe Text) Source #
The device name of this disk.
daIndex :: Lens' DiskAttachment (Maybe Word32) Source #
A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
PoolsDeleteRequest
data PoolsDeleteRequest Source #
Instances
poolsDeleteRequest :: PoolsDeleteRequest Source #
Creates a value of PoolsDeleteRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pdrAbandonInstances :: Lens' PoolsDeleteRequest [Text] Source #
If there are instances you would like to keep, you can specify them here. These instances won't be deleted, but the associated replica objects will be removed.
HealthCheck
data HealthCheck Source #
Instances
healthCheck :: HealthCheck Source #
Creates a value of HealthCheck
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
hcHealthyThreshold :: Lens' HealthCheck (Maybe Int32) Source #
The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
hcPath :: Lens' HealthCheck (Maybe Text) Source #
The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
hcCheckIntervalSec :: Lens' HealthCheck (Maybe Int32) Source #
How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
hcHost :: Lens' HealthCheck (Maybe Text) Source #
The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
hcTimeoutSec :: Lens' HealthCheck (Maybe Int32) Source #
How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
hcDescription :: Lens' HealthCheck (Maybe Text) Source #
The description for this health check.
hcUnhealthyThreshold :: Lens' HealthCheck (Maybe Int32) Source #
The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
Tag
A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource.
See: tag
smart constructor.
Instances
Eq Tag Source # | |
Data Tag Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Tag -> c Tag # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Tag # dataTypeOf :: Tag -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Tag) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Tag) # gmapT :: (forall b. Data b => b -> b) -> Tag -> Tag # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tag -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tag -> r # gmapQ :: (forall d. Data d => d -> u) -> Tag -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Tag -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tag -> m Tag # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tag -> m Tag # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tag -> m Tag # | |
Show Tag Source # | |
Generic Tag Source # | |
ToJSON Tag Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Tag Source # | |
type Rep Tag Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Tag = D1 (MetaData "Tag" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Tag'" PrefixI True) (S1 (MetaSel (Just "_tFingerPrint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) |
Creates a value of Tag
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tFingerPrint :: Lens' Tag (Maybe Text) Source #
The fingerprint of the tag. Required for updating the list of tags.
NewDiskInitializeParams
data NewDiskInitializeParams Source #
Initialization parameters for creating a new disk.
See: newDiskInitializeParams
smart constructor.
Instances
newDiskInitializeParams :: NewDiskInitializeParams Source #
Creates a value of NewDiskInitializeParams
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ndipSourceImage :: Lens' NewDiskInitializeParams (Maybe Text) Source #
The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as: http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
ndipDiskSizeGb :: Lens' NewDiskInitializeParams (Maybe Int64) Source #
The size of the created disk in gigabytes.
ndipDiskType :: Lens' NewDiskInitializeParams (Maybe Text) Source #
Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
MetadataItem
data MetadataItem Source #
A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
See: metadataItem
smart constructor.
Instances
metadataItem :: MetadataItem Source #
Creates a value of MetadataItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Replica
An individual Replica within a Pool. Replicas are automatically created by the replica pool, using the template provided by the user. You cannot directly create replicas.
See: replica
smart constructor.
Instances
Eq Replica Source # | |
Data Replica Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Replica -> c Replica # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Replica # toConstr :: Replica -> Constr # dataTypeOf :: Replica -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Replica) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Replica) # gmapT :: (forall b. Data b => b -> b) -> Replica -> Replica # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Replica -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Replica -> r # gmapQ :: (forall d. Data d => d -> u) -> Replica -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Replica -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Replica -> m Replica # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Replica -> m Replica # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Replica -> m Replica # | |
Show Replica Source # | |
Generic Replica Source # | |
ToJSON Replica Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Replica Source # | |
type Rep Replica Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Replica = D1 (MetaData "Replica" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Replica'" PrefixI True) (S1 (MetaSel (Just "_rStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReplicaStatus)) :*: (S1 (MetaSel (Just "_rSelfLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
NetworkInterface
data NetworkInterface Source #
A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
See: networkInterface
smart constructor.
Instances
networkInterface :: NetworkInterface Source #
Creates a value of NetworkInterface
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
niNetwork :: Lens' NetworkInterface (Maybe Text) Source #
Name the Network resource to which this interface applies.
niNetworkIP :: Lens' NetworkInterface (Maybe Text) Source #
An optional IPV4 internal network address to assign to the instance for this network interface.
niAccessConfigs :: Lens' NetworkInterface [AccessConfig] Source #
An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
ExistingDisk
data ExistingDisk Source #
A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
See: existingDisk
smart constructor.
Instances
existingDisk :: ExistingDisk Source #
Creates a value of ExistingDisk
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
edAttachment :: Lens' ExistingDisk (Maybe DiskAttachment) Source #
How the disk will be attached to the Replica.
edSource :: Lens' ExistingDisk (Maybe Text) Source #
The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
Action
An action that gets executed during initialization of the replicas.
See: action
smart constructor.
Instances
Eq Action Source # | |
Data Action Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Action -> c Action # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Action # toConstr :: Action -> Constr # dataTypeOf :: Action -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Action) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Action) # gmapT :: (forall b. Data b => b -> b) -> Action -> Action # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Action -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Action -> r # gmapQ :: (forall d. Data d => d -> u) -> Action -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Action -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Action -> m Action # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Action -> m Action # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Action -> m Action # | |
Show Action Source # | |
Generic Action Source # | |
ToJSON Action Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Action Source # | |
type Rep Action Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Action = D1 (MetaData "Action" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Action'" PrefixI True) (S1 (MetaSel (Just "_aCommands") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_aTimeoutMilliSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_aEnvVariables") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EnvVariable]))))) |
Creates a value of Action
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aCommands :: Lens' Action [Text] Source #
A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
aTimeoutMilliSeconds :: Lens' Action (Maybe Int32) Source #
If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
aEnvVariables :: Lens' Action [EnvVariable] Source #
A list of environment variables to use for the commands in this action.
Pool
Instances
Creates a value of Pool
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pResourceViews :: Lens' Pool [Text] Source #
The list of resource views that should be updated with all the replicas that are managed by this pool.
pAutoRestart :: Lens' Pool (Maybe Bool) Source #
Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
pBaseInstanceName :: Lens' Pool (Maybe Text) Source #
The base instance name to use for the replicas in this pool. This must match the regex a-z?. If specified, the instances in this replica pool will be named in the format -. The postfix will be a four character alphanumeric identifier generated by the service. If this is not specified by the user, a random base instance name is generated by the service.
pInitialNumReplicas :: Lens' Pool (Maybe Int32) Source #
The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
pCurrentNumReplicas :: Lens' Pool (Maybe Int32) Source #
- Output Only
- The current number of replicas in the pool.
pName :: Lens' Pool (Maybe Text) Source #
The name of the replica pool. Must follow the regex a-z? and be 1-28 characters long.
pLabels :: Lens' Pool [Label] Source #
A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
pTemplate :: Lens' Pool (Maybe Template) Source #
The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
pTargetPools :: Lens' Pool [Text] Source #
A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
pHealthChecks :: Lens' Pool [HealthCheck] Source #
Deprecated. Please use template[].healthChecks instead.
ServiceAccount
data ServiceAccount Source #
A Compute Engine service account, identical to the Compute Engine resource.
See: serviceAccount
smart constructor.
Instances
serviceAccount :: ServiceAccount Source #
Creates a value of ServiceAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
saEmail :: Lens' ServiceAccount (Maybe Text) Source #
The service account email address, for example: 123845678986'project.gserviceaccount.com
saScopes :: Lens' ServiceAccount [Text] Source #
The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
VMParams
Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource.
See: vMParams
smart constructor.
Instances
Creates a value of VMParams
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vmpServiceAccounts :: Lens' VMParams [ServiceAccount] Source #
A list of Service Accounts to enable for this instance.
vmpNetworkInterfaces :: Lens' VMParams [NetworkInterface] Source #
A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
vmpBaseInstanceName :: Lens' VMParams (Maybe Text) Source #
Deprecated. Please use baseInstanceName instead.
vmpMachineType :: Lens' VMParams (Maybe Text) Source #
The machine type for this instance. The resource name (e.g. n1-standard-1).
vmpMetadata :: Lens' VMParams (Maybe Metadata) Source #
The metadata key/value pairs assigned to this instance.
vmpDisksToAttach :: Lens' VMParams [ExistingDisk] Source #
A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
vmpCanIPForward :: Lens' VMParams (Maybe Bool) Source #
Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
vmpDescription :: Lens' VMParams (Maybe Text) Source #
An optional textual description of the instance.
vmpDisksToCreate :: Lens' VMParams [NewDisk] Source #
A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
vmpTags :: Lens' VMParams (Maybe Tag) Source #
A list of tags to apply to the Google Compute Engine instance to identify resources.
ReplicasListResponse
data ReplicasListResponse Source #
Instances
replicasListResponse :: ReplicasListResponse Source #
Creates a value of ReplicasListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Metadata
A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource.
See: metadata
smart constructor.
Instances
Eq Metadata Source # | |
Data Metadata Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Metadata -> c Metadata # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Metadata # toConstr :: Metadata -> Constr # dataTypeOf :: Metadata -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Metadata) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Metadata) # gmapT :: (forall b. Data b => b -> b) -> Metadata -> Metadata # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQ :: (forall d. Data d => d -> u) -> Metadata -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Metadata -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # | |
Show Metadata Source # | |
Generic Metadata Source # | |
ToJSON Metadata Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Metadata Source # | |
type Rep Metadata Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Metadata = D1 (MetaData "Metadata" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Metadata'" PrefixI True) (S1 (MetaSel (Just "_mFingerPrint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MetadataItem])))) |
Creates a value of Metadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mFingerPrint :: Lens' Metadata (Maybe Text) Source #
The fingerprint of the metadata. Required for updating the metadata entries for this instance.
Template
The template used for creating replicas in the pool.
See: template
smart constructor.
Instances
Eq Template Source # | |
Data Template Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Template -> c Template # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Template # toConstr :: Template -> Constr # dataTypeOf :: Template -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Template) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Template) # gmapT :: (forall b. Data b => b -> b) -> Template -> Template # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Template -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Template -> r # gmapQ :: (forall d. Data d => d -> u) -> Template -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Template -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Template -> m Template # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Template -> m Template # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Template -> m Template # | |
Show Template Source # | |
Generic Template Source # | |
ToJSON Template Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Template Source # | |
type Rep Template Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Template = D1 (MetaData "Template" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Template'" PrefixI True) ((S1 (MetaSel (Just "_tAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Action)) :*: S1 (MetaSel (Just "_tVMParams") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VMParams))) :*: (S1 (MetaSel (Just "_tVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tHealthChecks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [HealthCheck]))))) |
Creates a value of Template
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tAction :: Lens' Template (Maybe Action) Source #
An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
tVMParams :: Lens' Template (Maybe VMParams) Source #
The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
tVersion :: Lens' Template (Maybe Text) Source #
A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
tHealthChecks :: Lens' Template [HealthCheck] Source #
A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
EnvVariable
data EnvVariable Source #
An environment variable to set for an action.
See: envVariable
smart constructor.
Instances
envVariable :: EnvVariable Source #
Creates a value of EnvVariable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ReplicasDeleteRequest
data ReplicasDeleteRequest Source #
Instances
replicasDeleteRequest :: ReplicasDeleteRequest Source #
Creates a value of ReplicasDeleteRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rdrAbandonInstance :: Lens' ReplicasDeleteRequest (Maybe Bool) Source #
Whether the instance resource represented by this replica should be deleted or abandoned. If abandoned, the replica will be deleted but the virtual machine instance will remain. By default, this is set to false and the instance will be deleted along with the replica.
AccessConfig
data AccessConfig Source #
A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
See: accessConfig
smart constructor.
Instances
accessConfig :: AccessConfig Source #
Creates a value of AccessConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
acNATIP :: Lens' AccessConfig (Maybe Text) Source #
An external IP address associated with this instance.
acType :: Lens' AccessConfig (Maybe Text) Source #
Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
Label
A label to apply to this replica pool.
See: label
smart constructor.
Instances
Eq Label Source # | |
Data Label Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Label -> c Label # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Label # dataTypeOf :: Label -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Label) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Label) # gmapT :: (forall b. Data b => b -> b) -> Label -> Label # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Label -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Label -> r # gmapQ :: (forall d. Data d => d -> u) -> Label -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Label -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Label -> m Label # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Label -> m Label # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Label -> m Label # | |
Show Label Source # | |
Generic Label Source # | |
ToJSON Label Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON Label Source # | |
type Rep Label Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep Label = D1 (MetaData "Label" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "Label'" PrefixI True) (S1 (MetaSel (Just "_lValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) |
PoolsListResponse
data PoolsListResponse Source #
Instances
poolsListResponse :: PoolsListResponse Source #
Creates a value of PoolsListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
NewDisk
A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
See: newDisk
smart constructor.
Instances
Eq NewDisk Source # | |
Data NewDisk Source # | |
Defined in Network.Google.ReplicaPool.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NewDisk -> c NewDisk # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NewDisk # toConstr :: NewDisk -> Constr # dataTypeOf :: NewDisk -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NewDisk) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NewDisk) # gmapT :: (forall b. Data b => b -> b) -> NewDisk -> NewDisk # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NewDisk -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NewDisk -> r # gmapQ :: (forall d. Data d => d -> u) -> NewDisk -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> NewDisk -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> NewDisk -> m NewDisk # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NewDisk -> m NewDisk # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NewDisk -> m NewDisk # | |
Show NewDisk Source # | |
Generic NewDisk Source # | |
ToJSON NewDisk Source # | |
Defined in Network.Google.ReplicaPool.Types.Product | |
FromJSON NewDisk Source # | |
type Rep NewDisk Source # | |
Defined in Network.Google.ReplicaPool.Types.Product type Rep NewDisk = D1 (MetaData "NewDisk" "Network.Google.ReplicaPool.Types.Product" "gogol-replicapool-0.5.0-33CZPZk0hLaDkDApSMoCYi" False) (C1 (MetaCons "NewDisk'" PrefixI True) ((S1 (MetaSel (Just "_ndBoot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_ndAutoDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_ndAttachment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DiskAttachment)) :*: S1 (MetaSel (Just "_ndInitializeParams") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NewDiskInitializeParams))))) |
Creates a value of NewDisk
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ndBoot :: Lens' NewDisk (Maybe Bool) Source #
If true, indicates that this is the root persistent disk.
ndAutoDelete :: Lens' NewDisk (Maybe Bool) Source #
If true, then this disk will be deleted when the instance is deleted. The default value is true.
ndAttachment :: Lens' NewDisk (Maybe DiskAttachment) Source #
How the disk will be attached to the Replica.
ndInitializeParams :: Lens' NewDisk (Maybe NewDiskInitializeParams) Source #
Create the new disk using these parameters. The name of the disk will be -