ASTRONOMER.ASTRO

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Organizations_CreateOrUpdate

enum_LiftrBase.MarketplaceSubscriptionStatus := [ "PendingFulfillmentStart", "Subscribed", "Suspended", "Unsubscribed" ]
enum_LiftrBase.SingleSignOnStates := [ "Initial", "Enable", "Disable" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]

valid {
    input.Body.properties.marketplace.subscriptionId == STRING
    input.Body.properties.marketplace.subscriptionStatus == enum_LiftrBase.MarketplaceSubscriptionStatus[_]
    input.Body.properties.marketplace.offerDetails.publisherId == STRING
    input.Body.properties.marketplace.offerDetails.offerId == STRING
    input.Body.properties.marketplace.offerDetails.planId == STRING
    input.Body.properties.marketplace.offerDetails.planName == STRING
    input.Body.properties.marketplace.offerDetails.termUnit == STRING
    input.Body.properties.marketplace.offerDetails.termId == STRING
    input.Body.properties.user.firstName == STRING
    input.Body.properties.user.lastName == STRING
    input.Body.properties.user.emailAddress == STRING
    input.Body.properties.user.upn == STRING
    input.Body.properties.user.phoneNumber == STRING
    input.Body.properties.partnerOrganizationProperties.organizationId == STRING
    input.Body.properties.partnerOrganizationProperties.workspaceId == STRING
    input.Body.properties.partnerOrganizationProperties.organizationName == STRING
    input.Body.properties.partnerOrganizationProperties.workspaceName == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.singleSignOnState == enum_LiftrBase.SingleSignOnStates[_]
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.enterpriseAppId == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.singleSignOnUrl == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.aadDomains[_] == STRING
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.location == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.organizationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Organizations_Delete

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.organizationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Organizations_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.organizationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Organizations_ListByResourceGroup

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Organizations_ListBySubscription

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Organizations_Update

enum_LiftrBase.SingleSignOnStates := [ "Initial", "Enable", "Disable" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]

valid {
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.properties.user.firstName == STRING
    input.Body.properties.user.lastName == STRING
    input.Body.properties.user.emailAddress == STRING
    input.Body.properties.user.upn == STRING
    input.Body.properties.user.phoneNumber == STRING
    input.Body.properties.partnerOrganizationProperties.organizationId == STRING
    input.Body.properties.partnerOrganizationProperties.workspaceId == STRING
    input.Body.properties.partnerOrganizationProperties.organizationName == STRING
    input.Body.properties.partnerOrganizationProperties.workspaceName == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.singleSignOnState == enum_LiftrBase.SingleSignOnStates[_]
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.enterpriseAppId == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.singleSignOnUrl == STRING
    input.Body.properties.partnerOrganizationProperties.singleSignOnProperties.aadDomains[_] == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.organizationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}