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 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- cloudbilling.billingAccounts.create
- cloudbilling.billingAccounts.get
- cloudbilling.billingAccounts.getIamPolicy
- cloudbilling.billingAccounts.list
- cloudbilling.billingAccounts.patch
- cloudbilling.billingAccounts.projects.list
- cloudbilling.billingAccounts.setIamPolicy
- cloudbilling.billingAccounts.testIamPermissions
- cloudbilling.projects.getBillingInfo
- cloudbilling.projects.updateBillingInfo
- cloudbilling.services.list
- cloudbilling.services.skus.list
- Types
- AuditConfig
- ListServicesResponse
- Expr
- BillingAccount
- Service
- ProjectBillingInfo
- TierRate
- Money
- Category
- AggregationInfoAggregationLevel
- SetIAMPolicyRequest
- ListProjectBillingInfoResponse
- ListSKUsResponse
- AuditLogConfigLogType
- PricingExpression
- Xgafv
- TestIAMPermissionsRequest
- AggregationInfo
- SKU
- TestIAMPermissionsResponse
- Policy
- ListBillingAccountsResponse
- AuditLogConfig
- PricingInfo
- AggregationInfoAggregationInterval
- Binding
Allows developers to manage billing for their Google Cloud Platform projects programmatically.
Synopsis
- billingService :: ServiceConfig
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type BillingAPI = ProjectsGetBillingInfoResource :<|> (ProjectsUpdateBillingInfoResource :<|> (ServicesSKUsListResource :<|> (ServicesListResource :<|> (BillingAccountsProjectsListResource :<|> (BillingAccountsListResource :<|> (BillingAccountsGetIAMPolicyResource :<|> (BillingAccountsPatchResource :<|> (BillingAccountsGetResource :<|> (BillingAccountsCreateResource :<|> (BillingAccountsSetIAMPolicyResource :<|> BillingAccountsTestIAMPermissionsResource))))))))))
- module Network.Google.Resource.CloudBilling.BillingAccounts.Create
- module Network.Google.Resource.CloudBilling.BillingAccounts.Get
- module Network.Google.Resource.CloudBilling.BillingAccounts.GetIAMPolicy
- module Network.Google.Resource.CloudBilling.BillingAccounts.List
- module Network.Google.Resource.CloudBilling.BillingAccounts.Patch
- module Network.Google.Resource.CloudBilling.BillingAccounts.Projects.List
- module Network.Google.Resource.CloudBilling.BillingAccounts.SetIAMPolicy
- module Network.Google.Resource.CloudBilling.BillingAccounts.TestIAMPermissions
- module Network.Google.Resource.CloudBilling.Projects.GetBillingInfo
- module Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo
- module Network.Google.Resource.CloudBilling.Services.List
- module Network.Google.Resource.CloudBilling.Services.SKUs.List
- data AuditConfig
- auditConfig :: AuditConfig
- acService :: Lens' AuditConfig (Maybe Text)
- acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig]
- data ListServicesResponse
- listServicesResponse :: ListServicesResponse
- lsrNextPageToken :: Lens' ListServicesResponse (Maybe Text)
- lsrServices :: Lens' ListServicesResponse [Service]
- data Expr
- expr :: Expr
- eLocation :: Lens' Expr (Maybe Text)
- eExpression :: Lens' Expr (Maybe Text)
- eTitle :: Lens' Expr (Maybe Text)
- eDescription :: Lens' Expr (Maybe Text)
- data BillingAccount
- billingAccount :: BillingAccount
- baMasterBillingAccount :: Lens' BillingAccount (Maybe Text)
- baOpen :: Lens' BillingAccount (Maybe Bool)
- baName :: Lens' BillingAccount (Maybe Text)
- baDisplayName :: Lens' BillingAccount (Maybe Text)
- data Service
- service :: Service
- sName :: Lens' Service (Maybe Text)
- sDisplayName :: Lens' Service (Maybe Text)
- sServiceId :: Lens' Service (Maybe Text)
- data ProjectBillingInfo
- projectBillingInfo :: ProjectBillingInfo
- pbiName :: Lens' ProjectBillingInfo (Maybe Text)
- pbiBillingAccountName :: Lens' ProjectBillingInfo (Maybe Text)
- pbiProjectId :: Lens' ProjectBillingInfo (Maybe Text)
- pbiBillingEnabled :: Lens' ProjectBillingInfo (Maybe Bool)
- data TierRate
- tierRate :: TierRate
- trUnitPrice :: Lens' TierRate (Maybe Money)
- trStartUsageAmount :: Lens' TierRate (Maybe Double)
- data Money
- money :: Money
- mCurrencyCode :: Lens' Money (Maybe Text)
- mNanos :: Lens' Money (Maybe Int32)
- mUnits :: Lens' Money (Maybe Int64)
- data Category
- category :: Category
- cResourceFamily :: Lens' Category (Maybe Text)
- cUsageType :: Lens' Category (Maybe Text)
- cServiceDisplayName :: Lens' Category (Maybe Text)
- cResourceGroup :: Lens' Category (Maybe Text)
- data AggregationInfoAggregationLevel
- data SetIAMPolicyRequest
- setIAMPolicyRequest :: SetIAMPolicyRequest
- siprUpdateMask :: Lens' SetIAMPolicyRequest (Maybe GFieldMask)
- siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)
- data ListProjectBillingInfoResponse
- listProjectBillingInfoResponse :: ListProjectBillingInfoResponse
- lpbirNextPageToken :: Lens' ListProjectBillingInfoResponse (Maybe Text)
- lpbirProjectBillingInfo :: Lens' ListProjectBillingInfoResponse [ProjectBillingInfo]
- data ListSKUsResponse
- listSKUsResponse :: ListSKUsResponse
- lskurNextPageToken :: Lens' ListSKUsResponse (Maybe Text)
- lskurSKUs :: Lens' ListSKUsResponse [SKU]
- data AuditLogConfigLogType
- data PricingExpression
- pricingExpression :: PricingExpression
- peUsageUnitDescription :: Lens' PricingExpression (Maybe Text)
- peBaseUnit :: Lens' PricingExpression (Maybe Text)
- peBaseUnitConversionFactor :: Lens' PricingExpression (Maybe Double)
- peDisplayQuantity :: Lens' PricingExpression (Maybe Double)
- peTieredRates :: Lens' PricingExpression [TierRate]
- peBaseUnitDescription :: Lens' PricingExpression (Maybe Text)
- peUsageUnit :: Lens' PricingExpression (Maybe Text)
- data Xgafv
- data TestIAMPermissionsRequest
- testIAMPermissionsRequest :: TestIAMPermissionsRequest
- tiprPermissions :: Lens' TestIAMPermissionsRequest [Text]
- data AggregationInfo
- aggregationInfo :: AggregationInfo
- aiAggregationInterval :: Lens' AggregationInfo (Maybe AggregationInfoAggregationInterval)
- aiAggregationCount :: Lens' AggregationInfo (Maybe Int32)
- aiAggregationLevel :: Lens' AggregationInfo (Maybe AggregationInfoAggregationLevel)
- data SKU
- sKU :: SKU
- skukCategory :: Lens' SKU (Maybe Category)
- skukSKUId :: Lens' SKU (Maybe Text)
- skukServiceProviderName :: Lens' SKU (Maybe Text)
- skukServiceRegions :: Lens' SKU [Text]
- skukName :: Lens' SKU (Maybe Text)
- skukPricingInfo :: Lens' SKU [PricingInfo]
- skukDescription :: Lens' SKU (Maybe Text)
- data TestIAMPermissionsResponse
- testIAMPermissionsResponse :: TestIAMPermissionsResponse
- tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text]
- data Policy
- policy :: Policy
- pAuditConfigs :: Lens' Policy [AuditConfig]
- pEtag :: Lens' Policy (Maybe ByteString)
- pVersion :: Lens' Policy (Maybe Int32)
- pBindings :: Lens' Policy [Binding]
- data ListBillingAccountsResponse
- listBillingAccountsResponse :: ListBillingAccountsResponse
- lbarNextPageToken :: Lens' ListBillingAccountsResponse (Maybe Text)
- lbarBillingAccounts :: Lens' ListBillingAccountsResponse [BillingAccount]
- data AuditLogConfig
- auditLogConfig :: AuditLogConfig
- alcLogType :: Lens' AuditLogConfig (Maybe AuditLogConfigLogType)
- alcExemptedMembers :: Lens' AuditLogConfig [Text]
- data PricingInfo
- pricingInfo :: PricingInfo
- piSummary :: Lens' PricingInfo (Maybe Text)
- piAggregationInfo :: Lens' PricingInfo (Maybe AggregationInfo)
- piPricingExpression :: Lens' PricingInfo (Maybe PricingExpression)
- piCurrencyConversionRate :: Lens' PricingInfo (Maybe Double)
- piEffectiveTime :: Lens' PricingInfo (Maybe UTCTime)
- data AggregationInfoAggregationInterval
- data Binding
- binding :: Binding
- bMembers :: Lens' Binding [Text]
- bRole :: Lens' Binding (Maybe Text)
- bCondition :: Lens' Binding (Maybe Expr)
Service Configuration
billingService :: ServiceConfig Source #
Default request referring to version v1
of the Cloud Billing API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type BillingAPI = ProjectsGetBillingInfoResource :<|> (ProjectsUpdateBillingInfoResource :<|> (ServicesSKUsListResource :<|> (ServicesListResource :<|> (BillingAccountsProjectsListResource :<|> (BillingAccountsListResource :<|> (BillingAccountsGetIAMPolicyResource :<|> (BillingAccountsPatchResource :<|> (BillingAccountsGetResource :<|> (BillingAccountsCreateResource :<|> (BillingAccountsSetIAMPolicyResource :<|> BillingAccountsTestIAMPermissionsResource)))))))))) Source #
Represents the entirety of the methods and resources available for the Cloud Billing API service.
Resources
cloudbilling.billingAccounts.create
cloudbilling.billingAccounts.get
cloudbilling.billingAccounts.getIamPolicy
cloudbilling.billingAccounts.list
cloudbilling.billingAccounts.patch
cloudbilling.billingAccounts.projects.list
cloudbilling.billingAccounts.setIamPolicy
cloudbilling.billingAccounts.testIamPermissions
cloudbilling.projects.getBillingInfo
cloudbilling.projects.updateBillingInfo
cloudbilling.services.list
cloudbilling.services.skus.list
Types
AuditConfig
data AuditConfig Source #
Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo'gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar'gmail.com" ] } ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo'gmail.com from DATA_READ logging, and bar'gmail.com from DATA_WRITE logging.
See: auditConfig
smart constructor.
Instances
auditConfig :: AuditConfig Source #
Creates a value of AuditConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
acService :: Lens' AuditConfig (Maybe Text) Source #
Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig] Source #
The configuration for logging of each type of permission.
ListServicesResponse
data ListServicesResponse Source #
Response message for `ListServices`.
See: listServicesResponse
smart constructor.
Instances
listServicesResponse :: ListServicesResponse Source #
Creates a value of ListServicesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsrNextPageToken :: Lens' ListServicesResponse (Maybe Text) Source #
A token to retrieve the next page of results. To retrieve the next page, call `ListServices` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.
lsrServices :: Lens' ListServicesResponse [Service] Source #
A list of services.
Expr
Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
See: expr
smart constructor.
Instances
Eq Expr Source # | |
Data Expr Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Expr -> c Expr # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Expr # dataTypeOf :: Expr -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Expr) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Expr) # gmapT :: (forall b. Data b => b -> b) -> Expr -> Expr # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Expr -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Expr -> r # gmapQ :: (forall d. Data d => d -> u) -> Expr -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Expr -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Expr -> m Expr # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Expr -> m Expr # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Expr -> m Expr # | |
Show Expr Source # | |
Generic Expr Source # | |
ToJSON Expr Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Expr Source # | |
type Rep Expr Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Expr = D1 (MetaData "Expr" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Expr'" PrefixI True) ((S1 (MetaSel (Just "_eLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_eExpression") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_eTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_eDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Expr
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
eLocation :: Lens' Expr (Maybe Text) Source #
An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
eExpression :: Lens' Expr (Maybe Text) Source #
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
eTitle :: Lens' Expr (Maybe Text) Source #
An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
eDescription :: Lens' Expr (Maybe Text) Source #
An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
BillingAccount
data BillingAccount Source #
A billing account in GCP Console. You can assign a billing account to one or more projects.
See: billingAccount
smart constructor.
Instances
billingAccount :: BillingAccount Source #
Creates a value of BillingAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
baMasterBillingAccount :: Lens' BillingAccount (Maybe Text) Source #
If this account is a subaccount, then this will be the resource name of the master billing account that it is being resold through. Otherwise this will be empty.
baOpen :: Lens' BillingAccount (Maybe Bool) Source #
True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
baName :: Lens' BillingAccount (Maybe Text) Source #
The resource name of the billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF` would be the resource name for billing account `012345-567890-ABCDEF`.
baDisplayName :: Lens' BillingAccount (Maybe Text) Source #
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the GCP Console.
Service
Encapsulates a single service in Google Cloud Platform.
See: service
smart constructor.
Instances
Eq Service Source # | |
Data Service Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Service -> c Service # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Service # toConstr :: Service -> Constr # dataTypeOf :: Service -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Service) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Service) # gmapT :: (forall b. Data b => b -> b) -> Service -> Service # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Service -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Service -> r # gmapQ :: (forall d. Data d => d -> u) -> Service -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Service -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Service -> m Service # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Service -> m Service # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Service -> m Service # | |
Show Service Source # | |
Generic Service Source # | |
ToJSON Service Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Service Source # | |
type Rep Service Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Service = D1 (MetaData "Service" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Service'" PrefixI True) (S1 (MetaSel (Just "_sName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sServiceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Service
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sName :: Lens' Service (Maybe Text) Source #
The resource name for the service. Example: "services/DA34-426B-A397"
sServiceId :: Lens' Service (Maybe Text) Source #
The identifier for the service. Example: "DA34-426B-A397"
ProjectBillingInfo
data ProjectBillingInfo Source #
Encapsulation of billing information for a GCP Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).
See: projectBillingInfo
smart constructor.
Instances
projectBillingInfo :: ProjectBillingInfo Source #
Creates a value of ProjectBillingInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pbiName :: Lens' ProjectBillingInfo (Maybe Text) Source #
The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.
pbiBillingAccountName :: Lens' ProjectBillingInfo (Maybe Text) Source #
The resource name of the billing account associated with the project, if any. For example, `billingAccounts/012345-567890-ABCDEF`.
pbiProjectId :: Lens' ProjectBillingInfo (Maybe Text) Source #
The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.
pbiBillingEnabled :: Lens' ProjectBillingInfo (Maybe Bool) Source #
True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.
TierRate
The price rate indicating starting usage and its corresponding price.
See: tierRate
smart constructor.
Instances
Eq TierRate Source # | |
Data TierRate Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TierRate -> c TierRate # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TierRate # toConstr :: TierRate -> Constr # dataTypeOf :: TierRate -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TierRate) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TierRate) # gmapT :: (forall b. Data b => b -> b) -> TierRate -> TierRate # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TierRate -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TierRate -> r # gmapQ :: (forall d. Data d => d -> u) -> TierRate -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TierRate -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TierRate -> m TierRate # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TierRate -> m TierRate # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TierRate -> m TierRate # | |
Show TierRate Source # | |
Generic TierRate Source # | |
ToJSON TierRate Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON TierRate Source # | |
type Rep TierRate Source # | |
Defined in Network.Google.Billing.Types.Product type Rep TierRate = D1 (MetaData "TierRate" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "TierRate'" PrefixI True) (S1 (MetaSel (Just "_trUnitPrice") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Money)) :*: S1 (MetaSel (Just "_trStartUsageAmount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double))))) |
Creates a value of TierRate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trUnitPrice :: Lens' TierRate (Maybe Money) Source #
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
trStartUsageAmount :: Lens' TierRate (Maybe Double) Source #
Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
Money
Represents an amount of money with its currency type.
See: money
smart constructor.
Instances
Eq Money Source # | |
Data Money Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Money -> c Money # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Money # dataTypeOf :: Money -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Money) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Money) # gmapT :: (forall b. Data b => b -> b) -> Money -> Money # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Money -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Money -> r # gmapQ :: (forall d. Data d => d -> u) -> Money -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Money -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Money -> m Money # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Money -> m Money # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Money -> m Money # | |
Show Money Source # | |
Generic Money Source # | |
ToJSON Money Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Money Source # | |
type Rep Money Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Money = D1 (MetaData "Money" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Money'" PrefixI True) (S1 (MetaSel (Just "_mCurrencyCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_mNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_mUnits") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))) |
Creates a value of Money
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mNanos :: Lens' Money (Maybe Int32) Source #
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
mUnits :: Lens' Money (Maybe Int64) Source #
The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Category
Represents the category hierarchy of a SKU.
See: category
smart constructor.
Instances
Eq Category Source # | |
Data Category Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Category -> c Category # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Category # toConstr :: Category -> Constr # dataTypeOf :: Category -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Category) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Category) # gmapT :: (forall b. Data b => b -> b) -> Category -> Category # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Category -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Category -> r # gmapQ :: (forall d. Data d => d -> u) -> Category -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Category -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Category -> m Category # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Category -> m Category # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Category -> m Category # | |
Show Category Source # | |
Generic Category Source # | |
ToJSON Category Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Category Source # | |
type Rep Category Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Category = D1 (MetaData "Category" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Category'" PrefixI True) ((S1 (MetaSel (Just "_cResourceFamily") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cUsageType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cServiceDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cResourceGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Category
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cResourceFamily :: Lens' Category (Maybe Text) Source #
The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
cUsageType :: Lens' Category (Maybe Text) Source #
Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
cServiceDisplayName :: Lens' Category (Maybe Text) Source #
The display name of the service this SKU belongs to.
cResourceGroup :: Lens' Category (Maybe Text) Source #
A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
AggregationInfoAggregationLevel
data AggregationInfoAggregationLevel Source #
AggregationLevelUnspecified | AGGREGATION_LEVEL_UNSPECIFIED |
Account | ACCOUNT |
Project | PROJECT |
Instances
SetIAMPolicyRequest
data SetIAMPolicyRequest Source #
Request message for `SetIamPolicy` method.
See: setIAMPolicyRequest
smart constructor.
Instances
setIAMPolicyRequest :: SetIAMPolicyRequest Source #
Creates a value of SetIAMPolicyRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
siprUpdateMask :: Lens' SetIAMPolicyRequest (Maybe GFieldMask) Source #
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: paths: "bindings, etag" This field is only used by Cloud IAM.
siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy) Source #
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
ListProjectBillingInfoResponse
data ListProjectBillingInfoResponse Source #
Request message for `ListProjectBillingInfoResponse`.
See: listProjectBillingInfoResponse
smart constructor.
Instances
listProjectBillingInfoResponse :: ListProjectBillingInfoResponse Source #
Creates a value of ListProjectBillingInfoResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpbirNextPageToken :: Lens' ListProjectBillingInfoResponse (Maybe Text) Source #
A token to retrieve the next page of results. To retrieve the next page, call `ListProjectBillingInfo` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.
lpbirProjectBillingInfo :: Lens' ListProjectBillingInfoResponse [ProjectBillingInfo] Source #
A list of `ProjectBillingInfo` resources representing the projects associated with the billing account.
ListSKUsResponse
data ListSKUsResponse Source #
Response message for `ListSkus`.
See: listSKUsResponse
smart constructor.
Instances
listSKUsResponse :: ListSKUsResponse Source #
Creates a value of ListSKUsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lskurNextPageToken :: Lens' ListSKUsResponse (Maybe Text) Source #
A token to retrieve the next page of results. To retrieve the next page, call `ListSkus` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.
AuditLogConfigLogType
data AuditLogConfigLogType Source #
The log type that this config enables.
LogTypeUnspecified |
|
AdminRead |
|
DataWrite |
|
DataRead |
|
Instances
PricingExpression
data PricingExpression Source #
Instances
pricingExpression :: PricingExpression Source #
Creates a value of PricingExpression
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
peUsageUnitDescription :: Lens' PricingExpression (Maybe Text) Source #
The unit of usage in human readable form. Example: "gibi byte".
peBaseUnit :: Lens' PricingExpression (Maybe Text) Source #
The base unit for the SKU which is the unit used in usage exports. Example: "By"
peBaseUnitConversionFactor :: Lens' PricingExpression (Maybe Double) Source #
Conversion factor for converting from price per usage_unit to price per base_unit, and start_usage_amount to start_usage_amount in base_unit. unit_price / base_unit_conversion_factor = price per base_unit. start_usage_amount * base_unit_conversion_factor = start_usage_amount in base_unit.
peDisplayQuantity :: Lens' PricingExpression (Maybe Double) Source #
The recommended quantity of units for displaying pricing info. When displaying pricing info it is recommended to display: (unit_price * display_quantity) per display_quantity usage_unit. This field does not affect the pricing formula and is for display purposes only. Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and the display_quantity is "1000" then the recommended way of displaying the pricing info is "0.10 USD per 1000 GB"
peTieredRates :: Lens' PricingExpression [TierRate] Source #
The list of tiered rates for this pricing. The total cost is computed by applying each of the tiered rates on usage. This repeated list is sorted by ascending order of start_usage_amount.
peBaseUnitDescription :: Lens' PricingExpression (Maybe Text) Source #
The base unit in human readable form. Example: "byte".
peUsageUnit :: Lens' PricingExpression (Maybe Text) Source #
The short hand for unit of usage this pricing is specified in. Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
Xgafv
V1 error format.
Instances
TestIAMPermissionsRequest
data TestIAMPermissionsRequest Source #
Request message for `TestIamPermissions` method.
See: testIAMPermissionsRequest
smart constructor.
Instances
testIAMPermissionsRequest :: TestIAMPermissionsRequest Source #
Creates a value of TestIAMPermissionsRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tiprPermissions :: Lens' TestIAMPermissionsRequest [Text] Source #
The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see IAM Overview.
AggregationInfo
data AggregationInfo Source #
Represents the aggregation level and interval for pricing of a single SKU.
See: aggregationInfo
smart constructor.
Instances
aggregationInfo :: AggregationInfo Source #
Creates a value of AggregationInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aiAggregationCount :: Lens' AggregationInfo (Maybe Int32) Source #
The number of intervals to aggregate over. Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days.
SKU
Encapsulates a single SKU in Google Cloud Platform
See: sKU
smart constructor.
Instances
Eq SKU Source # | |
Data SKU Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SKU -> c SKU # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SKU # dataTypeOf :: SKU -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SKU) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SKU) # gmapT :: (forall b. Data b => b -> b) -> SKU -> SKU # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SKU -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SKU -> r # gmapQ :: (forall d. Data d => d -> u) -> SKU -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SKU -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SKU -> m SKU # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SKU -> m SKU # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SKU -> m SKU # | |
Show SKU Source # | |
Generic SKU Source # | |
ToJSON SKU Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON SKU Source # | |
type Rep SKU Source # | |
Defined in Network.Google.Billing.Types.Product type Rep SKU = D1 (MetaData "SKU" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "SKU'" PrefixI True) ((S1 (MetaSel (Just "_skukCategory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Category)) :*: (S1 (MetaSel (Just "_skukSKUId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_skukServiceProviderName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_skukServiceRegions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_skukName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_skukPricingInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PricingInfo])) :*: S1 (MetaSel (Just "_skukDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) |
Creates a value of SKU
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
skukCategory :: Lens' SKU (Maybe Category) Source #
The category hierarchy of this SKU, purely for organizational purpose.
skukServiceProviderName :: Lens' SKU (Maybe Text) Source #
Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
skukServiceRegions :: Lens' SKU [Text] Source #
List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/
skukName :: Lens' SKU (Maybe Text) Source #
The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
skukPricingInfo :: Lens' SKU [PricingInfo] Source #
A timeline of pricing info for this SKU in chronological order.
skukDescription :: Lens' SKU (Maybe Text) Source #
A human readable description of the SKU, has a maximum length of 256 characters.
TestIAMPermissionsResponse
data TestIAMPermissionsResponse Source #
Response message for `TestIamPermissions` method.
See: testIAMPermissionsResponse
smart constructor.
Instances
testIAMPermissionsResponse :: TestIAMPermissionsResponse Source #
Creates a value of TestIAMPermissionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text] Source #
A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Policy
Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM. **JSON Example** { "bindings": [ { "role": "roles/owner", "members": [ "user:mike'example.com", "group:admins'example.com", "domain:google.com", "serviceAccount:my-other-app'appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean'example.com"] } ] } **YAML Example** bindings: - members: - user:mike'example.com - group:admins'example.com - domain:google.com - serviceAccount:my-other-app'appspot.gserviceaccount.com role: roles/owner - members: - user:sean'example.com role: roles/viewer For a description of IAM and its features, see the IAM developer's guide.
See: policy
smart constructor.
Instances
Eq Policy Source # | |
Data Policy Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Policy -> c Policy # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Policy # toConstr :: Policy -> Constr # dataTypeOf :: Policy -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Policy) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Policy) # gmapT :: (forall b. Data b => b -> b) -> Policy -> Policy # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Policy -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Policy -> r # gmapQ :: (forall d. Data d => d -> u) -> Policy -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Policy -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Policy -> m Policy # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Policy -> m Policy # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Policy -> m Policy # | |
Show Policy Source # | |
Generic Policy Source # | |
ToJSON Policy Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Policy Source # | |
type Rep Policy Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Policy = D1 (MetaData "Policy" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Policy'" PrefixI True) ((S1 (MetaSel (Just "_pAuditConfigs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AuditConfig])) :*: S1 (MetaSel (Just "_pEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes))) :*: (S1 (MetaSel (Just "_pVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_pBindings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Binding]))))) |
Creates a value of Policy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pAuditConfigs :: Lens' Policy [AuditConfig] Source #
Specifies cloud audit logging configuration for this policy.
pEtag :: Lens' Policy (Maybe ByteString) Source #
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
pBindings :: Lens' Policy [Binding] Source #
Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
ListBillingAccountsResponse
data ListBillingAccountsResponse Source #
Response message for `ListBillingAccounts`.
See: listBillingAccountsResponse
smart constructor.
Instances
listBillingAccountsResponse :: ListBillingAccountsResponse Source #
Creates a value of ListBillingAccountsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbarNextPageToken :: Lens' ListBillingAccountsResponse (Maybe Text) Source #
A token to retrieve the next page of results. To retrieve the next page, call `ListBillingAccounts` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.
lbarBillingAccounts :: Lens' ListBillingAccountsResponse [BillingAccount] Source #
A list of billing accounts.
AuditLogConfig
data AuditLogConfig Source #
Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo'gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo'gmail.com from DATA_READ logging.
See: auditLogConfig
smart constructor.
Instances
auditLogConfig :: AuditLogConfig Source #
Creates a value of AuditLogConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
alcLogType :: Lens' AuditLogConfig (Maybe AuditLogConfigLogType) Source #
The log type that this config enables.
alcExemptedMembers :: Lens' AuditLogConfig [Text] Source #
Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
PricingInfo
data PricingInfo Source #
Represents the pricing information for a SKU at a single point of time.
See: pricingInfo
smart constructor.
Instances
pricingInfo :: PricingInfo Source #
Creates a value of PricingInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
piSummary :: Lens' PricingInfo (Maybe Text) Source #
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
piAggregationInfo :: Lens' PricingInfo (Maybe AggregationInfo) Source #
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
piPricingExpression :: Lens' PricingInfo (Maybe PricingExpression) Source #
Expresses the pricing formula. See `PricingExpression` for an example.
piCurrencyConversionRate :: Lens' PricingInfo (Maybe Double) Source #
Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currency_conversion_rate = JPY
piEffectiveTime :: Lens' PricingInfo (Maybe UTCTime) Source #
The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
AggregationInfoAggregationInterval
data AggregationInfoAggregationInterval Source #
AggregationIntervalUnspecified | AGGREGATION_INTERVAL_UNSPECIFIED |
Daily | DAILY |
Monthly | MONTHLY |
Instances
Binding
Associates `members` with a `role`.
See: binding
smart constructor.
Instances
Eq Binding Source # | |
Data Binding Source # | |
Defined in Network.Google.Billing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Binding -> c Binding # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Binding # toConstr :: Binding -> Constr # dataTypeOf :: Binding -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Binding) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Binding) # gmapT :: (forall b. Data b => b -> b) -> Binding -> Binding # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Binding -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Binding -> r # gmapQ :: (forall d. Data d => d -> u) -> Binding -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Binding -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Binding -> m Binding # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Binding -> m Binding # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Binding -> m Binding # | |
Show Binding Source # | |
Generic Binding Source # | |
ToJSON Binding Source # | |
Defined in Network.Google.Billing.Types.Product | |
FromJSON Binding Source # | |
type Rep Binding Source # | |
Defined in Network.Google.Billing.Types.Product type Rep Binding = D1 (MetaData "Binding" "Network.Google.Billing.Types.Product" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "Binding'" PrefixI True) (S1 (MetaSel (Just "_bMembers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_bRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bCondition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Expr))))) |
Creates a value of Binding
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bMembers :: Lens' Binding [Text] Source #
Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice'gmail.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app'appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins'example.com`. * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.