INTEGRATIONS

integrations.callback.generateToken

enum_ProductParameter := [ "UNSPECIFIED_PRODUCT", "IP", "APIGEE", "SECURITY" ]

valid {
    input.Qs.code == STRING
    input.Qs.gcpProjectId == STRING
    input.Qs.product == enum_ProductParameter[_]
    input.Qs.redirectUri == STRING
    input.Qs.state == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.connectorPlatformRegions.enumerate

valid {
    input.ProviderMetadata.Region == STRING
}

integrations.projects.getClientmetadata

valid {
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.appsScriptProjects.create

valid {
    input.Body.appsScriptProject == STRING
    input.Body.authConfigId == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.appsScriptProjects.link

valid {
    input.Body.scriptId == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.authConfigs.create

enum_GoogleCloudIntegrationsV1alphaAuthConfigCredentialType := [ "CREDENTIAL_TYPE_UNSPECIFIED", "USERNAME_AND_PASSWORD", "API_KEY", "OAUTH2_AUTHORIZATION_CODE", "OAUTH2_IMPLICIT", "OAUTH2_CLIENT_CREDENTIALS", "OAUTH2_RESOURCE_OWNER_CREDENTIALS", "JWT", "AUTH_TOKEN", "SERVICE_ACCOUNT", "CLIENT_CERTIFICATE_ONLY", "OIDC_TOKEN" ]
enum_GoogleCloudIntegrationsV1alphaAuthConfigState := [ "STATE_UNSPECIFIED", "VALID", "INVALID", "SOFT_DELETED", "EXPIRED", "UNAUTHORIZED", "UNSUPPORTED" ]
enum_GoogleCloudIntegrationsV1alphaAuthConfigVisibility := [ "AUTH_CONFIG_VISIBILITY_UNSPECIFIED", "PRIVATE", "CLIENT_VISIBLE" ]
enum_GoogleCloudIntegrationsV1alphaCredentialCredentialType := [ "CREDENTIAL_TYPE_UNSPECIFIED", "USERNAME_AND_PASSWORD", "API_KEY", "OAUTH2_AUTHORIZATION_CODE", "OAUTH2_IMPLICIT", "OAUTH2_CLIENT_CREDENTIALS", "OAUTH2_RESOURCE_OWNER_CREDENTIALS", "JWT", "AUTH_TOKEN", "SERVICE_ACCOUNT", "CLIENT_CERTIFICATE_ONLY", "OIDC_TOKEN" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType := [ "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", "STRING_VALUE", "INT_VALUE", "DOUBLE_VALUE", "BOOLEAN_VALUE", "STRING_ARRAY", "INT_ARRAY", "DOUBLE_ARRAY", "BOOLEAN_ARRAY", "JSON_VALUE", "PROTO_VALUE", "PROTO_ARRAY" ]
enum_GoogleCloudIntegrationsV1alphaParameterMapValueType := [ "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", "STRING_VALUE", "INT_VALUE", "DOUBLE_VALUE", "BOOLEAN_VALUE", "STRING_ARRAY", "INT_ARRAY", "DOUBLE_ARRAY", "BOOLEAN_ARRAY", "JSON_VALUE", "PROTO_VALUE", "PROTO_ARRAY" ]

valid {
    input.Body.certificateId == STRING
    input.Body.creatorEmail == STRING
    input.Body.credentialType == enum_GoogleCloudIntegrationsV1alphaAuthConfigCredentialType[_]
    input.Body.decryptedCredential.authToken.token == STRING
    input.Body.decryptedCredential.authToken.type == STRING
    input.Body.decryptedCredential.credentialType == enum_GoogleCloudIntegrationsV1alphaCredentialCredentialType[_]
    input.Body.decryptedCredential.jwt.jwt == STRING
    input.Body.decryptedCredential.jwt.jwtHeader == STRING
    input.Body.decryptedCredential.jwt.jwtPayload == STRING
    input.Body.decryptedCredential.jwt.secret == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.applyReauthPolicy == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authCode == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authEndpoint == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.clientId == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.clientSecret == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.scope == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.clientId == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.clientSecret == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.scope == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.clientId == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.clientSecret == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.password == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.scope == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.username == STRING
    input.Body.decryptedCredential.oidcToken.audience == STRING
    input.Body.decryptedCredential.oidcToken.serviceAccountEmail == STRING
    input.Body.decryptedCredential.oidcToken.token == STRING
    input.Body.decryptedCredential.oidcToken.tokenExpireTime == STRING
    input.Body.decryptedCredential.serviceAccountCredentials.scope == STRING
    input.Body.decryptedCredential.serviceAccountCredentials.serviceAccount == STRING
    input.Body.decryptedCredential.usernameAndPassword.password == STRING
    input.Body.decryptedCredential.usernameAndPassword.username == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.encryptedCredential == STRING
    input.Body.expiryNotificationDuration[_] == STRING
    input.Body.lastModifierEmail == STRING
    input.Body.name == STRING
    input.Body.overrideValidTime == STRING
    input.Body.reason == STRING
    input.Body.state == enum_GoogleCloudIntegrationsV1alphaAuthConfigState[_]
    input.Body.validTime == STRING
    input.Body.visibility == enum_GoogleCloudIntegrationsV1alphaAuthConfigVisibility[_]
    input.ReqMap.parent == STRING
    input.Qs.clientCertificate.encryptedPrivateKey == STRING
    input.Qs.clientCertificate.passphrase == STRING
    input.Qs.clientCertificate.sslCertificate == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.authConfigs.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.authConfigs.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.authConfigs.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.Qs.readMask == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.authConfigs.patch

enum_GoogleCloudIntegrationsV1alphaAuthConfigCredentialType := [ "CREDENTIAL_TYPE_UNSPECIFIED", "USERNAME_AND_PASSWORD", "API_KEY", "OAUTH2_AUTHORIZATION_CODE", "OAUTH2_IMPLICIT", "OAUTH2_CLIENT_CREDENTIALS", "OAUTH2_RESOURCE_OWNER_CREDENTIALS", "JWT", "AUTH_TOKEN", "SERVICE_ACCOUNT", "CLIENT_CERTIFICATE_ONLY", "OIDC_TOKEN" ]
enum_GoogleCloudIntegrationsV1alphaAuthConfigState := [ "STATE_UNSPECIFIED", "VALID", "INVALID", "SOFT_DELETED", "EXPIRED", "UNAUTHORIZED", "UNSUPPORTED" ]
enum_GoogleCloudIntegrationsV1alphaAuthConfigVisibility := [ "AUTH_CONFIG_VISIBILITY_UNSPECIFIED", "PRIVATE", "CLIENT_VISIBLE" ]
enum_GoogleCloudIntegrationsV1alphaCredentialCredentialType := [ "CREDENTIAL_TYPE_UNSPECIFIED", "USERNAME_AND_PASSWORD", "API_KEY", "OAUTH2_AUTHORIZATION_CODE", "OAUTH2_IMPLICIT", "OAUTH2_CLIENT_CREDENTIALS", "OAUTH2_RESOURCE_OWNER_CREDENTIALS", "JWT", "AUTH_TOKEN", "SERVICE_ACCOUNT", "CLIENT_CERTIFICATE_ONLY", "OIDC_TOKEN" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType := [ "REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER" ]
enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType := [ "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", "STRING_VALUE", "INT_VALUE", "DOUBLE_VALUE", "BOOLEAN_VALUE", "STRING_ARRAY", "INT_ARRAY", "DOUBLE_ARRAY", "BOOLEAN_ARRAY", "JSON_VALUE", "PROTO_VALUE", "PROTO_ARRAY" ]
enum_GoogleCloudIntegrationsV1alphaParameterMapValueType := [ "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED", "STRING_VALUE", "INT_VALUE", "DOUBLE_VALUE", "BOOLEAN_VALUE", "STRING_ARRAY", "INT_ARRAY", "DOUBLE_ARRAY", "BOOLEAN_ARRAY", "JSON_VALUE", "PROTO_VALUE", "PROTO_ARRAY" ]

valid {
    input.Body.certificateId == STRING
    input.Body.creatorEmail == STRING
    input.Body.credentialType == enum_GoogleCloudIntegrationsV1alphaAuthConfigCredentialType[_]
    input.Body.decryptedCredential.authToken.token == STRING
    input.Body.decryptedCredential.authToken.type == STRING
    input.Body.decryptedCredential.credentialType == enum_GoogleCloudIntegrationsV1alphaCredentialCredentialType[_]
    input.Body.decryptedCredential.jwt.jwt == STRING
    input.Body.decryptedCredential.jwt.jwtHeader == STRING
    input.Body.decryptedCredential.jwt.jwtPayload == STRING
    input.Body.decryptedCredential.jwt.secret == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.applyReauthPolicy == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authCode == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authEndpoint == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.authParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.clientId == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.clientSecret == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.scope == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2AuthorizationCode.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.clientId == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.clientSecret == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.scope == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2ClientCredentials.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.accessToken == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.accessTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.refreshToken == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.refreshTokenExpireTime == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.accessToken.tokenType == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.clientId == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.clientSecret == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.password == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.requestType == enum_GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.scope == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenEndpoint == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].key.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.booleanArray.booleanValues[_] == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.booleanValue == BOOLEAN
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.doubleArray.doubleValues[_] == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.doubleValue == NUMBER
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.intArray.intValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.intValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.jsonValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.stringArray.stringValues[_] == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.literalValue.stringValue == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.entries[_].value.referenceKey == STRING
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.keyType == enum_GoogleCloudIntegrationsV1alphaParameterMapKeyType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.tokenParams.valueType == enum_GoogleCloudIntegrationsV1alphaParameterMapValueType[_]
    input.Body.decryptedCredential.oauth2ResourceOwnerCredentials.username == STRING
    input.Body.decryptedCredential.oidcToken.audience == STRING
    input.Body.decryptedCredential.oidcToken.serviceAccountEmail == STRING
    input.Body.decryptedCredential.oidcToken.token == STRING
    input.Body.decryptedCredential.oidcToken.tokenExpireTime == STRING
    input.Body.decryptedCredential.serviceAccountCredentials.scope == STRING
    input.Body.decryptedCredential.serviceAccountCredentials.serviceAccount == STRING
    input.Body.decryptedCredential.usernameAndPassword.password == STRING
    input.Body.decryptedCredential.usernameAndPassword.username == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.encryptedCredential == STRING
    input.Body.expiryNotificationDuration[_] == STRING
    input.Body.lastModifierEmail == STRING
    input.Body.name == STRING
    input.Body.overrideValidTime == STRING
    input.Body.reason == STRING
    input.Body.state == enum_GoogleCloudIntegrationsV1alphaAuthConfigState[_]
    input.Body.validTime == STRING
    input.Body.visibility == enum_GoogleCloudIntegrationsV1alphaAuthConfigVisibility[_]
    input.ReqMap.name == STRING
    input.Qs.clientCertificate.encryptedPrivateKey == STRING
    input.Qs.clientCertificate.passphrase == STRING
    input.Qs.clientCertificate.sslCertificate == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.certificates.create

enum_GoogleCloudIntegrationsV1alphaCertificateCertificateStatus := [ "STATE_UNSPECIFIED", "ACTIVE", "EXPIRED" ]

valid {
    input.Body.certificateStatus == enum_GoogleCloudIntegrationsV1alphaCertificateCertificateStatus[_]
    input.Body.credentialId == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.rawCertificate.encryptedPrivateKey == STRING
    input.Body.rawCertificate.passphrase == STRING
    input.Body.rawCertificate.sslCertificate == STRING
    input.Body.requestorId == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.certificates.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.certificates.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.certificates.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.Qs.readMask == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.certificates.patch

enum_GoogleCloudIntegrationsV1alphaCertificateCertificateStatus := [ "STATE_UNSPECIFIED", "ACTIVE", "EXPIRED" ]

valid {
    input.Body.certificateStatus == enum_GoogleCloudIntegrationsV1alphaCertificateCertificateStatus[_]
    input.Body.credentialId == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.rawCertificate.encryptedPrivateKey == STRING
    input.Body.rawCertificate.passphrase == STRING
    input.Body.rawCertificate.sslCertificate == STRING
    input.Body.requestorId == STRING
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.clients.deprovision

valid {
    input.Body.STRING == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.clients.provision

valid {
    input.Body.cloudKmsConfig.key == STRING
    input.Body.cloudKmsConfig.keyVersion == STRING
    input.Body.cloudKmsConfig.kmsLocation == STRING
    input.Body.cloudKmsConfig.kmsRing == STRING
    input.Body.createSampleWorkflows == BOOLEAN
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.cloudFunctions.create

valid {
    input.Body.functionName == STRING
    input.Body.functionRegion == STRING
    input.Body.projectId == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

integrations.projects.locations.connections.getConnectionSchemaMetadata

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}