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 |
Discovers relationships between online assets such as websites or mobile apps.
Synopsis
- digitalAssetLinksService :: ServiceConfig
- type DigitalAssetLinksAPI = AssetlinksCheckResource :<|> StatementsListResource
- module Network.Google.Resource.DigitalAssetLinks.Assetlinks.Check
- module Network.Google.Resource.DigitalAssetLinks.Statements.List
- data AndroidAppAsset
- androidAppAsset :: AndroidAppAsset
- aaaPackageName :: Lens' AndroidAppAsset (Maybe Text)
- aaaCertificate :: Lens' AndroidAppAsset (Maybe CertificateInfo)
- data Statement
- statement :: Statement
- sRelation :: Lens' Statement (Maybe Text)
- sSource :: Lens' Statement (Maybe Asset)
- sTarget :: Lens' Statement (Maybe Asset)
- data Asset
- asset :: Asset
- aAndroidApp :: Lens' Asset (Maybe AndroidAppAsset)
- aWeb :: Lens' Asset (Maybe WebAsset)
- data ListResponse
- listResponse :: ListResponse
- lrDebugString :: Lens' ListResponse (Maybe Text)
- lrMaxAge :: Lens' ListResponse (Maybe Scientific)
- lrErrorCode :: Lens' ListResponse [Text]
- lrStatements :: Lens' ListResponse [Statement]
- data Xgafv
- data CheckResponse
- checkResponse :: CheckResponse
- crDebugString :: Lens' CheckResponse (Maybe Text)
- crMaxAge :: Lens' CheckResponse (Maybe Scientific)
- crErrorCode :: Lens' CheckResponse [Text]
- crLinked :: Lens' CheckResponse (Maybe Bool)
- data WebAsset
- webAsset :: WebAsset
- waSite :: Lens' WebAsset (Maybe Text)
- data CertificateInfo
- certificateInfo :: CertificateInfo
- ciSha256Fingerprint :: Lens' CertificateInfo (Maybe Text)
Service Configuration
digitalAssetLinksService :: ServiceConfig Source #
Default request referring to version v1
of the Digital Asset Links API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type DigitalAssetLinksAPI = AssetlinksCheckResource :<|> StatementsListResource Source #
Represents the entirety of the methods and resources available for the Digital Asset Links API service.
Resources
digitalassetlinks.assetlinks.check
digitalassetlinks.statements.list
Types
AndroidAppAsset
data AndroidAppAsset Source #
Describes an android app asset.
See: androidAppAsset
smart constructor.
Instances
androidAppAsset :: AndroidAppAsset Source #
Creates a value of AndroidAppAsset
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aaaPackageName :: Lens' AndroidAppAsset (Maybe Text) Source #
Android App assets are naturally identified by their Java package name. For example, the Google Maps app uses the package name `com.google.android.apps.maps`. REQUIRED
aaaCertificate :: Lens' AndroidAppAsset (Maybe CertificateInfo) Source #
Because there is no global enforcement of package name uniqueness, we also require a signing certificate, which in combination with the package name uniquely identifies an app. Some apps' signing keys are rotated, so they may be signed by different keys over time. We treat these as distinct assets, since we use (package name, cert) as the unique ID. This should not normally pose any problems as both versions of the app will make the same or similar statements. Other assets making statements about the app will have to be updated when a key is rotated, however. (Note that the syntaxes for publishing and querying for statements contain syntactic sugar to easily let you specify apps that are known by multiple certificates.) REQUIRED
Statement
Describes a reliable statement that has been made about the relationship between a source asset and a target asset. Statements are always made by the source asset, either directly or by delegating to a statement list that is stored elsewhere. For more detailed definitions of statements and assets, please refer to our API documentation landing page.
See: statement
smart constructor.
Instances
Eq Statement Source # | |
Data Statement Source # | |
Defined in Network.Google.DigitalAssetLinks.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Statement -> c Statement # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Statement # toConstr :: Statement -> Constr # dataTypeOf :: Statement -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Statement) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Statement) # gmapT :: (forall b. Data b => b -> b) -> Statement -> Statement # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Statement -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Statement -> r # gmapQ :: (forall d. Data d => d -> u) -> Statement -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Statement -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Statement -> m Statement # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Statement -> m Statement # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Statement -> m Statement # | |
Show Statement Source # | |
Generic Statement Source # | |
ToJSON Statement Source # | |
FromJSON Statement Source # | |
type Rep Statement Source # | |
Defined in Network.Google.DigitalAssetLinks.Types.Product type Rep Statement = D1 (MetaData "Statement" "Network.Google.DigitalAssetLinks.Types.Product" "gogol-digitalassetlinks-0.4.0-DCLwbKsqgDdAIRSvydokZj" False) (C1 (MetaCons "Statement'" PrefixI True) (S1 (MetaSel (Just "_sRelation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Asset)) :*: S1 (MetaSel (Just "_sTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Asset))))) |
sRelation :: Lens' Statement (Maybe Text) Source #
The relation identifies the use of the statement as intended by the source asset's owner (that is, the person or entity who issued the statement). Every complete statement has a relation. We identify relations with strings of the format `/`, where `` must be one of a set of pre-defined purpose categories, and `` is a free-form lowercase alphanumeric string that describes the specific use case of the statement. Refer to our API documentation for the current list of supported relations. Example: `delegate_permission/common.handle_all_urls` REQUIRED
Asset
Uniquely identifies an asset. A digital asset is an identifiable and addressable online entity that typically provides some service or content. Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
See: asset
smart constructor.
Instances
Eq Asset Source # | |
Data Asset Source # | |
Defined in Network.Google.DigitalAssetLinks.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Asset -> c Asset # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Asset # dataTypeOf :: Asset -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Asset) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Asset) # gmapT :: (forall b. Data b => b -> b) -> Asset -> Asset # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Asset -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Asset -> r # gmapQ :: (forall d. Data d => d -> u) -> Asset -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Asset -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Asset -> m Asset # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Asset -> m Asset # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Asset -> m Asset # | |
Show Asset Source # | |
Generic Asset Source # | |
ToJSON Asset Source # | |
FromJSON Asset Source # | |
type Rep Asset Source # | |
Defined in Network.Google.DigitalAssetLinks.Types.Product type Rep Asset = D1 (MetaData "Asset" "Network.Google.DigitalAssetLinks.Types.Product" "gogol-digitalassetlinks-0.4.0-DCLwbKsqgDdAIRSvydokZj" False) (C1 (MetaCons "Asset'" PrefixI True) (S1 (MetaSel (Just "_aAndroidApp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AndroidAppAsset)) :*: S1 (MetaSel (Just "_aWeb") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe WebAsset)))) |
Creates a value of Asset
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aAndroidApp :: Lens' Asset (Maybe AndroidAppAsset) Source #
Set if this is an Android App asset.
ListResponse
data ListResponse Source #
Response message for the List call.
See: listResponse
smart constructor.
Instances
listResponse :: ListResponse Source #
Creates a value of ListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrDebugString :: Lens' ListResponse (Maybe Text) Source #
Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. For programmatic access, use the error_code field below.
lrMaxAge :: Lens' ListResponse (Maybe Scientific) Source #
From serving time, how much longer the response should be considered valid barring further updates. REQUIRED
lrErrorCode :: Lens' ListResponse [Text] Source #
Error codes that describe the result of the List operation.
lrStatements :: Lens' ListResponse [Statement] Source #
A list of all the matching statements that have been found.
Xgafv
V1 error format.
Instances
CheckResponse
data CheckResponse Source #
Response message for the CheckAssetLinks call.
See: checkResponse
smart constructor.
Instances
checkResponse :: CheckResponse Source #
Creates a value of CheckResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crDebugString :: Lens' CheckResponse (Maybe Text) Source #
Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. For programmatic access, use the error_code field below.
crMaxAge :: Lens' CheckResponse (Maybe Scientific) Source #
From serving time, how much longer the response should be considered valid barring further updates. REQUIRED
crErrorCode :: Lens' CheckResponse [Text] Source #
Error codes that describe the result of the Check operation.
crLinked :: Lens' CheckResponse (Maybe Bool) Source #
Set to true if the assets specified in the request are linked by the relation specified in the request.
WebAsset
Describes a web asset.
See: webAsset
smart constructor.
Instances
Eq WebAsset Source # | |
Data WebAsset Source # | |
Defined in Network.Google.DigitalAssetLinks.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WebAsset -> c WebAsset # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WebAsset # toConstr :: WebAsset -> Constr # dataTypeOf :: WebAsset -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WebAsset) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WebAsset) # gmapT :: (forall b. Data b => b -> b) -> WebAsset -> WebAsset # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WebAsset -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WebAsset -> r # gmapQ :: (forall d. Data d => d -> u) -> WebAsset -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> WebAsset -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> WebAsset -> m WebAsset # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WebAsset -> m WebAsset # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WebAsset -> m WebAsset # | |
Show WebAsset Source # | |
Generic WebAsset Source # | |
ToJSON WebAsset Source # | |
FromJSON WebAsset Source # | |
type Rep WebAsset Source # | |
waSite :: Lens' WebAsset (Maybe Text) Source #
Web assets are identified by a URL that contains only the scheme, hostname and port parts. The format is http[s]://[:] Hostnames must be fully qualified: they must end in a single period ("`.`"). Only the schemes "http" and "https" are currently allowed. Port numbers are given as a decimal number, and they must be omitted if the standard port numbers are used: 80 for http and 443 for https. We call this limited URL the "site". All URLs that share the same scheme, hostname and port are considered to be a part of the site and thus belong to the web asset. Example: the asset with the site `https://www.google.com` contains all these URLs: * `https://www.google.com/` * `https://www.google.com:443/` * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * `https://www.google.com/foo#bar` * `https://user'password:www.google.com/` But it does not contain these URLs: * `http://www.google.com/` (wrong scheme) * `https://google.com/` (hostname does not match) * `https://www.google.com:444/` (port does not match) REQUIRED
CertificateInfo
data CertificateInfo Source #
Describes an X509 certificate.
See: certificateInfo
smart constructor.
Instances
certificateInfo :: CertificateInfo Source #
Creates a value of CertificateInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired: