Documentation ¶
Index ¶
Constants ¶
const TestGetAllQuotasResponseRaw = `` /* 531-byte string literal not displayed */
TestGetAllQuotasResponseRaw represents a raw response from the GetAll request.
const TestGetAllQuotasResponseSingleRaw = `` /* 187-byte string literal not displayed */
TestGetAllQuotasResponseSingleRaw represents a raw response with a single quota from the GetAll request.
const TestGetFreeQuotasResponseRaw = `` /* 592-byte string literal not displayed */
TestGetFreeQuotasResponseRaw represents a raw response from the GetFree request.
const TestGetFreeQuotasResponseSingleRaw = `` /* 187-byte string literal not displayed */
TestGetFreeQuotasResponseSingleRaw represents a raw response with a single quota from the GetFree request.
const TestGetProjectQuotasResponseRaw = `` /* 262-byte string literal not displayed */
TestGetProjectQuotasResponseRaw represents a raw response from the GetProject request.
const TestGetProjectQuotasResponseSingleRaw = `` /* 188-byte string literal not displayed */
TestGetProjectQuotasResponseSingleRaw represents a raw response with a single quota from the GetProject request.
const TestGetProjectsQuotasResponseRaw = `` /* 1151-byte string literal not displayed */
TestGetProjectsQuotasResponseRaw represents a raw response from the GetProjectsQuotas request.
const TestGetProjectsQuotasResponseSingleRaw = `` /* 271-byte string literal not displayed */
TestGetProjectsQuotasResponseSingleRaw represents a raw response with a single quota from the GetProjectsQuotas request.
const TestQuotasInvalidResponseRaw = `` /* 178-byte string literal not displayed */
TestQuotasInvalidResponseRaw represents a raw invalid quotas response.
const TestUpdateProjectQuotasResponseRaw = `` /* 188-byte string literal not displayed */
TestUpdateProjectQuotasResponseRaw represents a raw response from the UpdateProjectQuotas request.
const TestUpdateProjectQuotasResponseRawNilLocationParams = `` /* 183-byte string literal not displayed */
TestUpdateProjectQuotasResponseRawNilLocationParams represents a raw response from the UpdateProjectQuotas request with "null" in region and zone.
const TestUpdateQuotasOptsRaw = `` /* 188-byte string literal not displayed */
TestUpdateQuotasOptsRaw represents unmarshalled options for the UpdateProjectQuotas request.
const TestUpdateQuotasOptsRawNilLocationParams = `` /* 183-byte string literal not displayed */
TestUpdateQuotasOptsNilLocationParamsRaw represents unmarshalled options for the UpdateProjectQuotas request with "null" in region and zone.
Variables ¶
var TestGetAllQuotasResponseSingle = []*quotas.Quota{ { Name: "compute_cores", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Region: "ru-1", Zone: "ru-1b", Value: 20, }, }, }, }
TestGetAllQuotasResponseSingle represents the unmarshalled TestGetAllQuotasResponseSingleRaw response.
var TestGetFreeQuotasResponseSingle = []*quotas.Quota{ { Name: "compute_cores", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Region: "ru-2", Zone: "ru-2a", Value: 40, }, }, }, }
TestGetFreeQuotasResponseSingle represents the unmarshalled TestGetFreeQuotasResponseSingleRaw response.
var TestGetProjectQuotasResponseSingle = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Region: "ru-3", Zone: "ru-3a", Value: 51200, }, }, }, }
TestGetProjectQuotasResponseSingle represents the unmarshalled TestGetProjectQuotasResponseSingleRaw response.
var TestGetProjectsQuotasResponseSingle = []*quotas.ProjectQuota{ { ID: "c83243b3c18a4d109a5f0fe45336af85", ProjectQuotas: []quotas.Quota{ { Name: "compute_cores", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Region: "ru-2", Zone: "ru-2a", Value: 40, }, }, }, }, }, }
TestGetProjectsQuotasResponseSingle represents the unmarshalled TestProjectsQuotasResponseRaw response.
var TestUpdateProjectQuotasResponse = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Region: "ru-2", Zone: "ru-2a", Value: 64000, }, }, }, }
TestUpdateProjectQuotasResponse represents the unmarshalled TestUpdateProjectQuotasResponseRaw response.
var TestUpdateProjectQuotasResponseNilLocationParams = []*quotas.Quota{ { Name: "compute_ram", ResourceQuotasEntities: []quotas.ResourceQuotaEntity{ { Value: 64000, }, }, }, }
TestUpdateProjectQuotasResponseNilLocationParams represents the unmarshalled TestUpdateProjectQuotasResponseRaw response with "null" in region and 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{ { Region: &ramQuotaRegion, 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 region and zone.
Functions ¶
This section is empty.
Types ¶
This section is empty.