CLOUDPROFILER

cloudprofiler.projects.profiles.create

enum_CreateProfileRequestProfileType := [ "PROFILE_TYPE_UNSPECIFIED", "CPU", "WALL", "HEAP", "THREADS", "CONTENTION", "PEAK_HEAP", "HEAP_ALLOC" ]

valid {
    input.Body.deployment.labels.STRING == STRING
    input.Body.deployment.projectId == STRING
    input.Body.deployment.target == STRING
    input.Body.profileType[_] == enum_CreateProfileRequestProfileType[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

cloudprofiler.projects.profiles.createOffline

enum_ProfileProfileType := [ "PROFILE_TYPE_UNSPECIFIED", "CPU", "WALL", "HEAP", "THREADS", "CONTENTION", "PEAK_HEAP", "HEAP_ALLOC" ]

valid {
    input.Body.deployment.labels.STRING == STRING
    input.Body.deployment.projectId == STRING
    input.Body.deployment.target == STRING
    input.Body.duration == STRING
    input.Body.labels.STRING == STRING
    input.Body.profileBytes == STRING
    input.Body.profileType == enum_ProfileProfileType[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

cloudprofiler.projects.profiles.list

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

cloudprofiler.projects.profiles.patch

enum_ProfileProfileType := [ "PROFILE_TYPE_UNSPECIFIED", "CPU", "WALL", "HEAP", "THREADS", "CONTENTION", "PEAK_HEAP", "HEAP_ALLOC" ]

valid {
    input.Body.deployment.labels.STRING == STRING
    input.Body.deployment.projectId == STRING
    input.Body.deployment.target == STRING
    input.Body.duration == STRING
    input.Body.labels.STRING == STRING
    input.Body.profileBytes == STRING
    input.Body.profileType == enum_ProfileProfileType[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}