Documentation ¶
Index ¶
Constants ¶
const TestGetLimitsQuotasResponseRaw = `` /* 395-byte string literal not displayed */
TestGetLimitsQuotasResponseRaw represents a raw response from the GetAll request.
const TestGetProjectQuotasResponseRaw = `` /* 228-byte string literal not displayed */
TestGetProjectQuotasResponseRaw represents a raw response from the GetProject request.
const TestGetProjectQuotasResponseSingleRaw = `` /* 154-byte string literal not displayed */
TestGetProjectQuotasResponseSingleRaw represents a raw response with a single quota from the GetProject request.
const TestQuotasInvalidResponseRaw = `` /* 144-byte string literal not displayed */
TestQuotasInvalidResponseRaw represents a raw invalid quotas response.
const TestUpdateProjectQuotasResponseRaw = `` /* 154-byte string literal not displayed */
TestUpdateProjectQuotasResponseRaw represents a raw response from the UpdateProjectQuotas request.
const TestUpdateProjectQuotasResponseRawNilLocationParams = `` /* 151-byte string literal not displayed */
TestUpdateProjectQuotasResponseRawNilLocationParams represents a raw response from the UpdateProjectQuotas request with "null" in zone.
const TestUpdateQuotasOptsRaw = `` /* 154-byte string literal not displayed */
TestUpdateQuotasOptsRaw represents unmarshalled options for the UpdateProjectQuotas request.
const TestUpdateQuotasOptsRawNilLocationParams = `
{
"quotas": {
"compute_ram": [
{
"value": 64000
}
]
}
}
`
TestUpdateQuotasOptsRawNilLocationParams represents unmarshalled options for the UpdateProjectQuotas request with "null" in zone.
Variables ¶
var TestGetProjectQuotasResponseSingle = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Zone: "ru-1a", Value: 51200, }, }, ResourceQuotasErrors: []quotas.ResourceError{}, }, }
TestGetProjectQuotasResponseSingle represents the unmarshalled TestGetProjectQuotasResponseSingleRaw response.
var TestUpdateProjectQuotasResponse = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Zone: "ru-1a", Value: 64000, }, }, ResourceQuotasErrors: []quotas.ResourceError{}, }, }
TestUpdateProjectQuotasResponse represents the unmarshalled TestUpdateProjectQuotasResponseRaw response.
var TestUpdateProjectQuotasResponseNilLocationParams = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Value: 64000, }, }, ResourceQuotasErrors: []quotas.ResourceError{}, }, }
TestUpdateProjectQuotasResponseNilLocationParams represents the unmarshalled TestUpdateProjectQuotasResponseRaw response with "null" in zone.
var TestUpdateQuotasInvalidOpts = quotas.UpdateProjectQuotasOpts{ QuotasOpts: []quotas.QuotaOpts{}, }
TestUpdateQuotasInvalidOpts represents update opts without quotas.
var TestUpdateQuotasOpts = quotas.UpdateProjectQuotasOpts{ QuotasOpts: []quotas.QuotaOpts{ { Name: "compute_ram", ResourceQuotasOpts: []quotas.ResourceQuotaOpts{ { Zone: &ramQuotaZone, Value: &ramQuotaValue, }, }, }, }, }
TestUpdateQuotasOpts represents options for the UpdateProjectQuotas request.
var TestUpdateQuotasOptsNilLocationParams = quotas.UpdateProjectQuotasOpts{ QuotasOpts: []quotas.QuotaOpts{ { Name: "compute_ram", ResourceQuotasOpts: []quotas.ResourceQuotaOpts{ { Value: &ramQuotaValue, }, }, }, }, }
TestUpdateQuotasOptsNilLocationParams represents options for the UpdateProjectQuotas request with "null" in zone.
Functions ¶
This section is empty.
Types ¶
This section is empty.