apphub.projects.locations.applications.create

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]
enum_ScopeType := [ "TYPE_UNSPECIFIED", "REGIONAL" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.Body.scope.type == enum_ScopeType[_]
    input.ReqMap.parent == STRING
    input.Qs.applicationId == STRING
    input.Qs.requestId == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.delete

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

apphub.projects.locations.applications.get

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

apphub.projects.locations.applications.getIamPolicy

valid {
    input.ReqMap.resource == STRING
    input.Qs.options.requestedPolicyVersion == INTEGER
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.list

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

apphub.projects.locations.applications.patch

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]
enum_ScopeType := [ "TYPE_UNSPECIFIED", "REGIONAL" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.Body.scope.type == enum_ScopeType[_]
    input.ReqMap.name == STRING
    input.Qs.requestId == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.services.create

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.discoveredService == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.ReqMap.parent == STRING
    input.Qs.requestId == STRING
    input.Qs.serviceId == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.services.delete

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

apphub.projects.locations.applications.services.get

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

apphub.projects.locations.applications.services.list

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

apphub.projects.locations.applications.services.patch

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.discoveredService == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.ReqMap.name == STRING
    input.Qs.requestId == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.setIamPolicy

enum_AuditLogConfigLogType := [ "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ]

valid {
    input.Body.policy.auditConfigs[_].auditLogConfigs[_].exemptedMembers[_] == STRING
    input.Body.policy.auditConfigs[_].auditLogConfigs[_].logType == enum_AuditLogConfigLogType[_]
    input.Body.policy.auditConfigs[_].service == STRING
    input.Body.policy.bindings[_].condition.description == STRING
    input.Body.policy.bindings[_].condition.expression == STRING
    input.Body.policy.bindings[_].condition.location == STRING
    input.Body.policy.bindings[_].condition.title == STRING
    input.Body.policy.bindings[_].members[_] == STRING
    input.Body.policy.bindings[_].role == STRING
    input.Body.policy.etag == STRING
    input.Body.policy.version == INTEGER
    input.Body.updateMask == STRING
    input.ReqMap.resource == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.testIamPermissions

valid {
    input.Body.permissions[_] == STRING
    input.ReqMap.resource == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.workloads.create

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.discoveredWorkload == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.ReqMap.parent == STRING
    input.Qs.requestId == STRING
    input.Qs.workloadId == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.applications.workloads.delete

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

apphub.projects.locations.applications.workloads.get

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

apphub.projects.locations.applications.workloads.list

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

apphub.projects.locations.applications.workloads.patch

enum_CriticalityType := [ "TYPE_UNSPECIFIED", "MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW" ]
enum_EnvironmentType := [ "TYPE_UNSPECIFIED", "PRODUCTION", "STAGING", "TEST", "DEVELOPMENT" ]

valid {
    input.Body.attributes.businessOwners[_].displayName == STRING
    input.Body.attributes.businessOwners[_].email == STRING
    input.Body.attributes.criticality.type == enum_CriticalityType[_]
    input.Body.attributes.developerOwners[_].displayName == STRING
    input.Body.attributes.developerOwners[_].email == STRING
    input.Body.attributes.environment.type == enum_EnvironmentType[_]
    input.Body.attributes.operatorOwners[_].displayName == STRING
    input.Body.attributes.operatorOwners[_].email == STRING
    input.Body.description == STRING
    input.Body.discoveredWorkload == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.ReqMap.name == STRING
    input.Qs.requestId == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.detachServiceProjectAttachment

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

apphub.projects.locations.discoveredServices.findUnregistered

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

apphub.projects.locations.discoveredServices.get

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

apphub.projects.locations.discoveredServices.list

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

apphub.projects.locations.discoveredServices.lookup

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

apphub.projects.locations.discoveredWorkloads.findUnregistered

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

apphub.projects.locations.discoveredWorkloads.get

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

apphub.projects.locations.discoveredWorkloads.list

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

apphub.projects.locations.discoveredWorkloads.lookup

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

apphub.projects.locations.get

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

apphub.projects.locations.list

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

apphub.projects.locations.lookupServiceProjectAttachment

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

apphub.projects.locations.operations.cancel

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

apphub.projects.locations.operations.delete

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

apphub.projects.locations.operations.get

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

apphub.projects.locations.operations.list

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

apphub.projects.locations.serviceProjectAttachments.create

valid {
    input.Body.name == STRING
    input.Body.serviceProject == STRING
    input.ReqMap.parent == STRING
    input.Qs.requestId == STRING
    input.Qs.serviceProjectAttachmentId == STRING
    input.ProviderMetadata.Region == STRING
}

apphub.projects.locations.serviceProjectAttachments.delete

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

apphub.projects.locations.serviceProjectAttachments.get

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

apphub.projects.locations.serviceProjectAttachments.list

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