MYBUSINESSACCOUNTMANAGEMENT

mybusinessaccountmanagement.accounts.admins.create

enum_AdminRole := [ "ADMIN_ROLE_UNSPECIFIED", "PRIMARY_OWNER", "OWNER", "MANAGER", "SITE_MANAGER" ]

valid {
    input.Body.account == STRING
    input.Body.admin == STRING
    input.Body.name == STRING
    input.Body.role == enum_AdminRole[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.accounts.admins.delete

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

mybusinessaccountmanagement.accounts.admins.list

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

mybusinessaccountmanagement.accounts.admins.patch

enum_AdminRole := [ "ADMIN_ROLE_UNSPECIFIED", "PRIMARY_OWNER", "OWNER", "MANAGER", "SITE_MANAGER" ]

valid {
    input.Body.account == STRING
    input.Body.admin == STRING
    input.Body.name == STRING
    input.Body.role == enum_AdminRole[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.accounts.create

enum_AccountType := [ "ACCOUNT_TYPE_UNSPECIFIED", "PERSONAL", "LOCATION_GROUP", "USER_GROUP", "ORGANIZATION" ]

valid {
    input.Body.accountName == STRING
    input.Body.name == STRING
    input.Body.primaryOwner == STRING
    input.Body.type == enum_AccountType[_]
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.accounts.get

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

mybusinessaccountmanagement.accounts.invitations.accept

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

mybusinessaccountmanagement.accounts.invitations.decline

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

mybusinessaccountmanagement.accounts.invitations.list

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

mybusinessaccountmanagement.accounts.list

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

mybusinessaccountmanagement.accounts.patch

enum_AccountType := [ "ACCOUNT_TYPE_UNSPECIFIED", "PERSONAL", "LOCATION_GROUP", "USER_GROUP", "ORGANIZATION" ]

valid {
    input.Body.accountName == STRING
    input.Body.name == STRING
    input.Body.primaryOwner == STRING
    input.Body.type == enum_AccountType[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.Qs.validateOnly == BOOLEAN
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.locations.admins.create

enum_AdminRole := [ "ADMIN_ROLE_UNSPECIFIED", "PRIMARY_OWNER", "OWNER", "MANAGER", "SITE_MANAGER" ]

valid {
    input.Body.account == STRING
    input.Body.admin == STRING
    input.Body.name == STRING
    input.Body.role == enum_AdminRole[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.locations.admins.delete

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

mybusinessaccountmanagement.locations.admins.list

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

mybusinessaccountmanagement.locations.admins.patch

enum_AdminRole := [ "ADMIN_ROLE_UNSPECIFIED", "PRIMARY_OWNER", "OWNER", "MANAGER", "SITE_MANAGER" ]

valid {
    input.Body.account == STRING
    input.Body.admin == STRING
    input.Body.name == STRING
    input.Body.role == enum_AdminRole[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

mybusinessaccountmanagement.locations.transfer

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