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
- AuditConfig
- ProjectConfig
- Expr
- ListReposResponse
- Empty
- UpdateRepoRequest
- SetIAMPolicyRequest
- PubsubConfig
- PubsubConfigMessageFormat
- UpdateProjectConfigRequest
- AuditLogConfigLogType
- Xgafv
- TestIAMPermissionsRequest
- RepoPubsubConfigs
- ProjectConfigPubsubConfigs
- Repo
- TestIAMPermissionsResponse
- Policy
- AuditLogConfig
- MirrorConfig
- Binding
Synopsis
- sourceRepoService :: ServiceConfig
- sourceReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/source.read_only"]
- sourceFullControlScope :: Proxy '["https://www.googleapis.com/auth/source.full_control"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- sourceReadWriteScope :: Proxy '["https://www.googleapis.com/auth/source.read_write"]
- data AuditConfig
- auditConfig :: AuditConfig
- acService :: Lens' AuditConfig (Maybe Text)
- acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig]
- data ProjectConfig
- projectConfig :: ProjectConfig
- pcPubsubConfigs :: Lens' ProjectConfig (Maybe ProjectConfigPubsubConfigs)
- pcEnablePrivateKeyCheck :: Lens' ProjectConfig (Maybe Bool)
- pcName :: Lens' ProjectConfig (Maybe Text)
- 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 ListReposResponse
- listReposResponse :: ListReposResponse
- lrrNextPageToken :: Lens' ListReposResponse (Maybe Text)
- lrrRepos :: Lens' ListReposResponse [Repo]
- data Empty
- empty :: Empty
- data UpdateRepoRequest
- updateRepoRequest :: UpdateRepoRequest
- urrUpdateMask :: Lens' UpdateRepoRequest (Maybe GFieldMask)
- urrRepo :: Lens' UpdateRepoRequest (Maybe Repo)
- data SetIAMPolicyRequest
- setIAMPolicyRequest :: SetIAMPolicyRequest
- siprUpdateMask :: Lens' SetIAMPolicyRequest (Maybe GFieldMask)
- siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)
- data PubsubConfig
- pubsubConfig :: PubsubConfig
- pcTopic :: Lens' PubsubConfig (Maybe Text)
- pcServiceAccountEmail :: Lens' PubsubConfig (Maybe Text)
- pcMessageFormat :: Lens' PubsubConfig (Maybe PubsubConfigMessageFormat)
- data PubsubConfigMessageFormat
- data UpdateProjectConfigRequest
- updateProjectConfigRequest :: UpdateProjectConfigRequest
- upcrProjectConfig :: Lens' UpdateProjectConfigRequest (Maybe ProjectConfig)
- upcrUpdateMask :: Lens' UpdateProjectConfigRequest (Maybe GFieldMask)
- data AuditLogConfigLogType
- data Xgafv
- data TestIAMPermissionsRequest
- testIAMPermissionsRequest :: TestIAMPermissionsRequest
- tiprPermissions :: Lens' TestIAMPermissionsRequest [Text]
- data RepoPubsubConfigs
- repoPubsubConfigs :: HashMap Text PubsubConfig -> RepoPubsubConfigs
- rpcAddtional :: Lens' RepoPubsubConfigs (HashMap Text PubsubConfig)
- data ProjectConfigPubsubConfigs
- projectConfigPubsubConfigs :: HashMap Text PubsubConfig -> ProjectConfigPubsubConfigs
- pcpcAddtional :: Lens' ProjectConfigPubsubConfigs (HashMap Text PubsubConfig)
- data Repo
- repo :: Repo
- rPubsubConfigs :: Lens' Repo (Maybe RepoPubsubConfigs)
- rSize :: Lens' Repo (Maybe Int64)
- rURL :: Lens' Repo (Maybe Text)
- rName :: Lens' Repo (Maybe Text)
- rMirrorConfig :: Lens' Repo (Maybe MirrorConfig)
- 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 AuditLogConfig
- auditLogConfig :: AuditLogConfig
- alcLogType :: Lens' AuditLogConfig (Maybe AuditLogConfigLogType)
- alcExemptedMembers :: Lens' AuditLogConfig [Text]
- data MirrorConfig
- mirrorConfig :: MirrorConfig
- mcURL :: Lens' MirrorConfig (Maybe Text)
- mcDeployKeyId :: Lens' MirrorConfig (Maybe Text)
- mcWebhookId :: Lens' MirrorConfig (Maybe Text)
- data Binding
- binding :: Binding
- bMembers :: Lens' Binding [Text]
- bRole :: Lens' Binding (Maybe Text)
- bCondition :: Lens' Binding (Maybe Expr)
Service Configuration
sourceRepoService :: ServiceConfig Source #
Default request referring to version v1
of the Cloud Source Repositories API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
sourceReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/source.read_only"] Source #
View the contents of your source code repositories
sourceFullControlScope :: Proxy '["https://www.googleapis.com/auth/source.full_control"] Source #
Manage your source code repositories
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
sourceReadWriteScope :: Proxy '["https://www.googleapis.com/auth/source.read_write"] Source #
Manage the contents of your source code repositories
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.
ProjectConfig
data ProjectConfig Source #
Cloud Source Repositories configuration of a project.
See: projectConfig
smart constructor.
Instances
projectConfig :: ProjectConfig Source #
Creates a value of ProjectConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pcPubsubConfigs :: Lens' ProjectConfig (Maybe ProjectConfigPubsubConfigs) Source #
How this project publishes a change in the repositories through Cloud Pub/Sub. Keyed by the topic names.
pcEnablePrivateKeyCheck :: Lens' ProjectConfig (Maybe Bool) Source #
Reject a Git push that contains a private key.
pcName :: Lens' ProjectConfig (Maybe Text) Source #
The name of the project. Values are of the form `projects/`.
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.SourceRepo.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.SourceRepo.Types.Product | |
FromJSON Expr Source # | |
type Rep Expr Source # | |
Defined in Network.Google.SourceRepo.Types.Product type Rep Expr = D1 (MetaData "Expr" "Network.Google.SourceRepo.Types.Product" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" 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.
ListReposResponse
data ListReposResponse Source #
Response for ListRepos. The size is not set in the returned repositories.
See: listReposResponse
smart constructor.
Instances
listReposResponse :: ListReposResponse Source #
Creates a value of ListReposResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrrNextPageToken :: Lens' ListReposResponse (Maybe Text) Source #
If non-empty, additional repositories exist within the project. These can be retrieved by including this value in the next ListReposRequest's page_token field.
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
See: empty
smart constructor.
Instances
Eq Empty Source # | |
Data Empty Source # | |
Defined in Network.Google.SourceRepo.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Empty -> c Empty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Empty # dataTypeOf :: Empty -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Empty) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Empty) # gmapT :: (forall b. Data b => b -> b) -> Empty -> Empty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQ :: (forall d. Data d => d -> u) -> Empty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Empty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # | |
Show Empty Source # | |
Generic Empty Source # | |
ToJSON Empty Source # | |
Defined in Network.Google.SourceRepo.Types.Product | |
FromJSON Empty Source # | |
type Rep Empty Source # | |
UpdateRepoRequest
data UpdateRepoRequest Source #
Request for UpdateRepo.
See: updateRepoRequest
smart constructor.
Instances
updateRepoRequest :: UpdateRepoRequest Source #
Creates a value of UpdateRepoRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urrUpdateMask :: Lens' UpdateRepoRequest (Maybe GFieldMask) Source #
A FieldMask specifying which fields of the repo to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op.
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.
PubsubConfig
data PubsubConfig Source #
Configuration to publish a Cloud Pub/Sub message.
See: pubsubConfig
smart constructor.
Instances
pubsubConfig :: PubsubConfig Source #
Creates a value of PubsubConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pcTopic :: Lens' PubsubConfig (Maybe Text) Source #
A topic of Cloud Pub/Sub. Values are of the form `projects//topics/`. The project needs to be the same project as this config is in.
pcServiceAccountEmail :: Lens' PubsubConfig (Maybe Text) Source #
Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account.
pcMessageFormat :: Lens' PubsubConfig (Maybe PubsubConfigMessageFormat) Source #
The format of the Cloud Pub/Sub messages.
PubsubConfigMessageFormat
data PubsubConfigMessageFormat Source #
The format of the Cloud Pub/Sub messages.
MessageFormatUnspecified |
|
Protobuf |
|
JSON |
|
Instances
UpdateProjectConfigRequest
data UpdateProjectConfigRequest Source #
Request for UpdateProjectConfig.
See: updateProjectConfigRequest
smart constructor.
Instances
updateProjectConfigRequest :: UpdateProjectConfigRequest Source #
Creates a value of UpdateProjectConfigRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
upcrProjectConfig :: Lens' UpdateProjectConfigRequest (Maybe ProjectConfig) Source #
The new configuration for the project.
upcrUpdateMask :: Lens' UpdateProjectConfigRequest (Maybe GFieldMask) Source #
A FieldMask specifying which fields of the project_config to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op.
AuditLogConfigLogType
data AuditLogConfigLogType Source #
The log type that this config enables.
LogTypeUnspecified |
|
AdminRead |
|
DataWrite |
|
DataRead |
|
Instances
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.
RepoPubsubConfigs
data RepoPubsubConfigs Source #
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
See: repoPubsubConfigs
smart constructor.
Instances
Creates a value of RepoPubsubConfigs
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ProjectConfigPubsubConfigs
data ProjectConfigPubsubConfigs Source #
How this project publishes a change in the repositories through Cloud Pub/Sub. Keyed by the topic names.
See: projectConfigPubsubConfigs
smart constructor.
Instances
projectConfigPubsubConfigs Source #
Creates a value of ProjectConfigPubsubConfigs
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Repo
A repository (or repo) is a Git repository storing versioned source content.
See: repo
smart constructor.
Instances
Eq Repo Source # | |
Data Repo Source # | |
Defined in Network.Google.SourceRepo.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Repo -> c Repo # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Repo # dataTypeOf :: Repo -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Repo) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Repo) # gmapT :: (forall b. Data b => b -> b) -> Repo -> Repo # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Repo -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Repo -> r # gmapQ :: (forall d. Data d => d -> u) -> Repo -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Repo -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Repo -> m Repo # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Repo -> m Repo # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Repo -> m Repo # | |
Show Repo Source # | |
Generic Repo Source # | |
ToJSON Repo Source # | |
Defined in Network.Google.SourceRepo.Types.Product | |
FromJSON Repo Source # | |
type Rep Repo Source # | |
Defined in Network.Google.SourceRepo.Types.Product type Rep Repo = D1 (MetaData "Repo" "Network.Google.SourceRepo.Types.Product" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" False) (C1 (MetaCons "Repo'" PrefixI True) ((S1 (MetaSel (Just "_rPubsubConfigs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RepoPubsubConfigs)) :*: S1 (MetaSel (Just "_rSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_rURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rMirrorConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MirrorConfig)))))) |
Creates a value of Repo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rPubsubConfigs :: Lens' Repo (Maybe RepoPubsubConfigs) Source #
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
rSize :: Lens' Repo (Maybe Int64) Source #
The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
rURL :: Lens' Repo (Maybe Text) Source #
URL to clone the repository from Google Cloud Source Repositories. Read-only field.
rName :: Lens' Repo (Maybe Text) Source #
Resource name of the repository, of the form `projects//repos/`. The repo name may contain slashes. eg, `projects/myproject/repos/name/with/slash`
rMirrorConfig :: Lens' Repo (Maybe MirrorConfig) Source #
How this repository mirrors a repository managed by another service. Read-only field.
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.SourceRepo.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.SourceRepo.Types.Product | |
FromJSON Policy Source # | |
type Rep Policy Source # | |
Defined in Network.Google.SourceRepo.Types.Product type Rep Policy = D1 (MetaData "Policy" "Network.Google.SourceRepo.Types.Product" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" 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.
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.
MirrorConfig
data MirrorConfig Source #
Configuration to automatically mirror a repository from another hosting service, for example GitHub or Bitbucket.
See: mirrorConfig
smart constructor.
Instances
mirrorConfig :: MirrorConfig Source #
Creates a value of MirrorConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mcURL :: Lens' MirrorConfig (Maybe Text) Source #
URL of the main repository at the other hosting service.
mcDeployKeyId :: Lens' MirrorConfig (Maybe Text) Source #
ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
mcWebhookId :: Lens' MirrorConfig (Maybe Text) Source #
ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
Binding
Associates `members` with a `role`.
See: binding
smart constructor.
Instances
Eq Binding Source # | |
Data Binding Source # | |
Defined in Network.Google.SourceRepo.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.SourceRepo.Types.Product | |
FromJSON Binding Source # | |
type Rep Binding Source # | |
Defined in Network.Google.SourceRepo.Types.Product type Rep Binding = D1 (MetaData "Binding" "Network.Google.SourceRepo.Types.Product" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" 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`.