Documentation
¶
Overview ¶
Package vpc provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewAddressPoolServiceCreateRequest(server string, vpcId string, body AddressPoolServiceCreateJSONRequestBody) (*http.Request, error)
- func NewAddressPoolServiceCreateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddressPoolServiceDeleteRequest(server string, vpcId string, addressPoolId string) (*http.Request, error)
- func NewAddressPoolServiceGetRequest(server string, vpcId string, addressPoolId string) (*http.Request, error)
- func NewAddressPoolServiceListOperationsRequest(server string, vpcId string, addressPoolId string, ...) (*http.Request, error)
- func NewAddressPoolServiceListRequest(server string, vpcId string, params *AddressPoolServiceListParams) (*http.Request, error)
- func NewAddressPoolServiceUpdateRequest(server string, vpcId string, addressPoolId string, ...) (*http.Request, error)
- func NewAddressPoolServiceUpdateRequestWithBody(server string, vpcId string, addressPoolId string, contentType string, ...) (*http.Request, error)
- func NewAllocationServiceGetRequest(server string, vpcId string, addressPoolId string, allocationId string) (*http.Request, error)
- func NewAllocationServiceListRequest(server string, vpcId string, addressPoolId string, ...) (*http.Request, error)
- func NewOperationServiceGetRequest(server string, operationId string) (*http.Request, error)
- func NewVirtualIPServiceCreateRequest(server string, body VirtualIPServiceCreateJSONRequestBody) (*http.Request, error)
- func NewVirtualIPServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVirtualIPServiceDeleteRequest(server string, id string) (*http.Request, error)
- func NewVirtualIPServiceGetRequest(server string, id string) (*http.Request, error)
- func NewVirtualIPServiceListOperationsRequest(server string, id string, params *VirtualIPServiceListOperationsParams) (*http.Request, error)
- func NewVirtualIPServiceListRequest(server string, params *VirtualIPServiceListParams) (*http.Request, error)
- func NewVirtualIPServiceUpdateRequest(server string, id string, body VirtualIPServiceUpdateJSONRequestBody) (*http.Request, error)
- func NewVirtualIPServiceUpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewVpcRoutingServiceCreateRequest(server string, vpcId string, body VpcRoutingServiceCreateJSONRequestBody) (*http.Request, error)
- func NewVpcRoutingServiceCreateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
- func NewVpcRoutingServiceDeleteRequest(server string, vpcId string, staticRouteId string) (*http.Request, error)
- func NewVpcRoutingServiceGetRequest(server string, vpcId string, staticRouteId string) (*http.Request, error)
- func NewVpcRoutingServiceListOperationsRequest(server string, vpcId string, staticRouteId string, ...) (*http.Request, error)
- func NewVpcRoutingServiceListRequest(server string, vpcId string, params *VpcRoutingServiceListParams) (*http.Request, error)
- func NewVpcRoutingServiceUpdateRequest(server string, vpcId string, staticRouteId string, ...) (*http.Request, error)
- func NewVpcRoutingServiceUpdateRequestWithBody(server string, vpcId string, staticRouteId string, contentType string, ...) (*http.Request, error)
- func NewVpcServiceCreateRequest(server string, body VpcServiceCreateJSONRequestBody) (*http.Request, error)
- func NewVpcServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVpcServiceDeleteRequest(server string, vpcId string) (*http.Request, error)
- func NewVpcServiceGetRequest(server string, vpcId string) (*http.Request, error)
- func NewVpcServiceListRequest(server string, params *VpcServiceListParams) (*http.Request, error)
- func NewVpcServiceUpdateRequest(server string, vpcId string, body VpcServiceUpdateJSONRequestBody) (*http.Request, error)
- func NewVpcServiceUpdateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
- type AddressPool
- type AddressPoolServiceCreateJSONRequestBody
- type AddressPoolServiceCreateResponse
- func (r AddressPoolServiceCreateResponse) ContentType() string
- func (r AddressPoolServiceCreateResponse) GetBody() []byte
- func (r AddressPoolServiceCreateResponse) GetJSON200() *Operation
- func (r AddressPoolServiceCreateResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceCreateResponse) Status() string
- func (r AddressPoolServiceCreateResponse) StatusCode() int
- type AddressPoolServiceDeleteResponse
- func (r AddressPoolServiceDeleteResponse) ContentType() string
- func (r AddressPoolServiceDeleteResponse) GetBody() []byte
- func (r AddressPoolServiceDeleteResponse) GetJSON200() *Operation
- func (r AddressPoolServiceDeleteResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceDeleteResponse) Status() string
- func (r AddressPoolServiceDeleteResponse) StatusCode() int
- type AddressPoolServiceGetResponse
- func (r AddressPoolServiceGetResponse) ContentType() string
- func (r AddressPoolServiceGetResponse) GetBody() []byte
- func (r AddressPoolServiceGetResponse) GetJSON200() *AddressPool
- func (r AddressPoolServiceGetResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceGetResponse) Status() string
- func (r AddressPoolServiceGetResponse) StatusCode() int
- type AddressPoolServiceListOperationsParams
- type AddressPoolServiceListOperationsResponse
- func (r AddressPoolServiceListOperationsResponse) ContentType() string
- func (r AddressPoolServiceListOperationsResponse) GetBody() []byte
- func (r AddressPoolServiceListOperationsResponse) GetJSON200() *ListAddressPoolsOperationResponse
- func (r AddressPoolServiceListOperationsResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceListOperationsResponse) Status() string
- func (r AddressPoolServiceListOperationsResponse) StatusCode() int
- type AddressPoolServiceListParams
- type AddressPoolServiceListResponse
- func (r AddressPoolServiceListResponse) ContentType() string
- func (r AddressPoolServiceListResponse) GetBody() []byte
- func (r AddressPoolServiceListResponse) GetJSON200() *ListAddressPoolsResponse
- func (r AddressPoolServiceListResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceListResponse) Status() string
- func (r AddressPoolServiceListResponse) StatusCode() int
- type AddressPoolServiceUpdateJSONRequestBody
- type AddressPoolServiceUpdateResponse
- func (r AddressPoolServiceUpdateResponse) ContentType() string
- func (r AddressPoolServiceUpdateResponse) GetBody() []byte
- func (r AddressPoolServiceUpdateResponse) GetJSON200() *Operation
- func (r AddressPoolServiceUpdateResponse) GetJSONDefault() *Status
- func (r AddressPoolServiceUpdateResponse) Status() string
- func (r AddressPoolServiceUpdateResponse) StatusCode() int
- type AddressPoolStatus
- type AddressPoolType
- type Allocation
- type AllocationServiceGetResponse
- func (r AllocationServiceGetResponse) ContentType() string
- func (r AllocationServiceGetResponse) GetBody() []byte
- func (r AllocationServiceGetResponse) GetJSON200() *Allocation
- func (r AllocationServiceGetResponse) GetJSONDefault() *Status
- func (r AllocationServiceGetResponse) Status() string
- func (r AllocationServiceGetResponse) StatusCode() int
- type AllocationServiceListParams
- type AllocationServiceListResponse
- func (r AllocationServiceListResponse) ContentType() string
- func (r AllocationServiceListResponse) GetBody() []byte
- func (r AllocationServiceListResponse) GetJSON200() *ListAllocationsResponse
- func (r AllocationServiceListResponse) GetJSONDefault() *Status
- func (r AllocationServiceListResponse) Status() string
- func (r AllocationServiceListResponse) StatusCode() int
- type AllocationStatus
- type Baremetal
- type Client
- func (c *Client) AddressPoolServiceCreate(ctx context.Context, vpcId string, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceDelete(ctx context.Context, vpcId string, addressPoolId string, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceGet(ctx context.Context, vpcId string, addressPoolId string, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceList(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceListOperations(ctx context.Context, vpcId string, addressPoolId string, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceUpdate(ctx context.Context, vpcId string, addressPoolId string, ...) (*http.Response, error)
- func (c *Client) AddressPoolServiceUpdateWithBody(ctx context.Context, vpcId string, addressPoolId string, contentType string, ...) (*http.Response, error)
- func (c *Client) AllocationServiceGet(ctx context.Context, vpcId string, addressPoolId string, allocationId string, ...) (*http.Response, error)
- func (c *Client) AllocationServiceList(ctx context.Context, vpcId string, addressPoolId string, ...) (*http.Response, error)
- func (c *Client) OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VirtualIPServiceCreate(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VirtualIPServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VirtualIPServiceDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VirtualIPServiceGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VirtualIPServiceList(ctx context.Context, params *VirtualIPServiceListParams, ...) (*http.Response, error)
- func (c *Client) VirtualIPServiceListOperations(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, ...) (*http.Response, error)
- func (c *Client) VirtualIPServiceUpdate(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VirtualIPServiceUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceCreate(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceDelete(ctx context.Context, vpcId string, staticRouteId string, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceGet(ctx context.Context, vpcId string, staticRouteId string, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceList(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceListOperations(ctx context.Context, vpcId string, staticRouteId string, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceUpdate(ctx context.Context, vpcId string, staticRouteId string, ...) (*http.Response, error)
- func (c *Client) VpcRoutingServiceUpdateWithBody(ctx context.Context, vpcId string, staticRouteId string, contentType string, ...) (*http.Response, error)
- func (c *Client) VpcServiceCreate(ctx context.Context, body VpcServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VpcServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VpcServiceDelete(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VpcServiceGet(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VpcServiceList(ctx context.Context, params *VpcServiceListParams, ...) (*http.Response, error)
- func (c *Client) VpcServiceUpdate(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VpcServiceUpdateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddressPoolServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*AddressPoolServiceCreateResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceCreateWithResponse(ctx context.Context, vpcId string, ...) (*AddressPoolServiceCreateResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceDeleteWithResponse(ctx context.Context, vpcId string, addressPoolId string, ...) (*AddressPoolServiceDeleteResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, ...) (*AddressPoolServiceGetResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceListOperationsWithResponse(ctx context.Context, vpcId string, addressPoolId string, ...) (*AddressPoolServiceListOperationsResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceListWithResponse(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, ...) (*AddressPoolServiceListResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, addressPoolId string, contentType string, ...) (*AddressPoolServiceUpdateResponse, error)
- func (c *ClientWithResponses) AddressPoolServiceUpdateWithResponse(ctx context.Context, vpcId string, addressPoolId string, ...) (*AddressPoolServiceUpdateResponse, error)
- func (c *ClientWithResponses) AllocationServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, allocationId string, ...) (*AllocationServiceGetResponse, error)
- func (c *ClientWithResponses) AllocationServiceListWithResponse(ctx context.Context, vpcId string, addressPoolId string, ...) (*AllocationServiceListResponse, error)
- func (c *ClientWithResponses) OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VirtualIPServiceCreateResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceCreateWithResponse(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, ...) (*VirtualIPServiceCreateResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceDeleteResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceGetResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceListOperationsWithResponse(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, ...) (*VirtualIPServiceListOperationsResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceListWithResponse(ctx context.Context, params *VirtualIPServiceListParams, ...) (*VirtualIPServiceListResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*VirtualIPServiceUpdateResponse, error)
- func (c *ClientWithResponses) VirtualIPServiceUpdateWithResponse(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, ...) (*VirtualIPServiceUpdateResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*VpcRoutingServiceCreateResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceCreateWithResponse(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, ...) (*VpcRoutingServiceCreateResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceDeleteWithResponse(ctx context.Context, vpcId string, staticRouteId string, ...) (*VpcRoutingServiceDeleteResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceGetWithResponse(ctx context.Context, vpcId string, staticRouteId string, ...) (*VpcRoutingServiceGetResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceListOperationsWithResponse(ctx context.Context, vpcId string, staticRouteId string, ...) (*VpcRoutingServiceListOperationsResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceListWithResponse(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, ...) (*VpcRoutingServiceListResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, staticRouteId string, contentType string, ...) (*VpcRoutingServiceUpdateResponse, error)
- func (c *ClientWithResponses) VpcRoutingServiceUpdateWithResponse(ctx context.Context, vpcId string, staticRouteId string, ...) (*VpcRoutingServiceUpdateResponse, error)
- func (c *ClientWithResponses) VpcServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VpcServiceCreateResponse, error)
- func (c *ClientWithResponses) VpcServiceCreateWithResponse(ctx context.Context, body VpcServiceCreateJSONRequestBody, ...) (*VpcServiceCreateResponse, error)
- func (c *ClientWithResponses) VpcServiceDeleteWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceDeleteResponse, error)
- func (c *ClientWithResponses) VpcServiceGetWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceGetResponse, error)
- func (c *ClientWithResponses) VpcServiceListWithResponse(ctx context.Context, params *VpcServiceListParams, ...) (*VpcServiceListResponse, error)
- func (c *ClientWithResponses) VpcServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, ...) (*VpcServiceUpdateResponse, error)
- func (c *ClientWithResponses) VpcServiceUpdateWithResponse(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, ...) (*VpcServiceUpdateResponse, error)
- type ClientWithResponsesInterface
- type CreateAddressPoolRequest
- type CreateStaticRouteRequest
- type CreateVPCRequest
- type CreateVipRequest
- type GoogleProtobufAny
- type HttpRequestDoer
- type InstanceReference
- type Interface
- type ListAddressPoolsOperationResponse
- type ListAddressPoolsResponse
- type ListAllocationsResponse
- type ListStaticRoutesOperationResponse
- type ListStaticRoutesResponse
- type ListVPCResponse
- type ListVipsOperationResponse
- type ListVipsResponse
- type MagicRouter
- type NextHopIP
- type NextHopMagicRouter
- type NextHopVIP
- type NextHopVirtualMachine
- type Operation
- type OperationServiceGetResponse
- func (r OperationServiceGetResponse) ContentType() string
- func (r OperationServiceGetResponse) GetBody() []byte
- func (r OperationServiceGetResponse) GetJSON200() *Operation
- func (r OperationServiceGetResponse) GetJSONDefault() *Status
- func (r OperationServiceGetResponse) Status() string
- func (r OperationServiceGetResponse) StatusCode() int
- type RequestEditorFn
- type RouteNextHop
- type StaticRoute
- type StaticRouteNextHopType
- type StaticRouteStatus
- type StaticRouteType
- type Status
- type UpdateAddressPoolRequest
- type UpdateStaticRouteRequest
- type UpdateVPCRequest
- type UpdateVipRequest
- type Vip
- type VipShort
- type VipStatus
- type VipSubnetType
- type VipTarget
- type VirtualIPServiceCreateJSONRequestBody
- type VirtualIPServiceCreateResponse
- func (r VirtualIPServiceCreateResponse) ContentType() string
- func (r VirtualIPServiceCreateResponse) GetBody() []byte
- func (r VirtualIPServiceCreateResponse) GetJSON200() *Operation
- func (r VirtualIPServiceCreateResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceCreateResponse) Status() string
- func (r VirtualIPServiceCreateResponse) StatusCode() int
- type VirtualIPServiceDeleteResponse
- func (r VirtualIPServiceDeleteResponse) ContentType() string
- func (r VirtualIPServiceDeleteResponse) GetBody() []byte
- func (r VirtualIPServiceDeleteResponse) GetJSON200() *Operation
- func (r VirtualIPServiceDeleteResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceDeleteResponse) Status() string
- func (r VirtualIPServiceDeleteResponse) StatusCode() int
- type VirtualIPServiceGetResponse
- func (r VirtualIPServiceGetResponse) ContentType() string
- func (r VirtualIPServiceGetResponse) GetBody() []byte
- func (r VirtualIPServiceGetResponse) GetJSON200() *Vip
- func (r VirtualIPServiceGetResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceGetResponse) Status() string
- func (r VirtualIPServiceGetResponse) StatusCode() int
- type VirtualIPServiceListOperationsParams
- type VirtualIPServiceListOperationsResponse
- func (r VirtualIPServiceListOperationsResponse) ContentType() string
- func (r VirtualIPServiceListOperationsResponse) GetBody() []byte
- func (r VirtualIPServiceListOperationsResponse) GetJSON200() *ListVipsOperationResponse
- func (r VirtualIPServiceListOperationsResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceListOperationsResponse) Status() string
- func (r VirtualIPServiceListOperationsResponse) StatusCode() int
- type VirtualIPServiceListParams
- type VirtualIPServiceListResponse
- func (r VirtualIPServiceListResponse) ContentType() string
- func (r VirtualIPServiceListResponse) GetBody() []byte
- func (r VirtualIPServiceListResponse) GetJSON200() *ListVipsResponse
- func (r VirtualIPServiceListResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceListResponse) Status() string
- func (r VirtualIPServiceListResponse) StatusCode() int
- type VirtualIPServiceUpdateJSONRequestBody
- type VirtualIPServiceUpdateResponse
- func (r VirtualIPServiceUpdateResponse) ContentType() string
- func (r VirtualIPServiceUpdateResponse) GetBody() []byte
- func (r VirtualIPServiceUpdateResponse) GetJSON200() *Operation
- func (r VirtualIPServiceUpdateResponse) GetJSONDefault() *Status
- func (r VirtualIPServiceUpdateResponse) Status() string
- func (r VirtualIPServiceUpdateResponse) StatusCode() int
- type VirtualMachine
- type Virtualization
- type Vpc
- type VpcRoutingServiceCreateJSONRequestBody
- type VpcRoutingServiceCreateResponse
- func (r VpcRoutingServiceCreateResponse) ContentType() string
- func (r VpcRoutingServiceCreateResponse) GetBody() []byte
- func (r VpcRoutingServiceCreateResponse) GetJSON200() *Operation
- func (r VpcRoutingServiceCreateResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceCreateResponse) Status() string
- func (r VpcRoutingServiceCreateResponse) StatusCode() int
- type VpcRoutingServiceDeleteResponse
- func (r VpcRoutingServiceDeleteResponse) ContentType() string
- func (r VpcRoutingServiceDeleteResponse) GetBody() []byte
- func (r VpcRoutingServiceDeleteResponse) GetJSON200() *Operation
- func (r VpcRoutingServiceDeleteResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceDeleteResponse) Status() string
- func (r VpcRoutingServiceDeleteResponse) StatusCode() int
- type VpcRoutingServiceGetResponse
- func (r VpcRoutingServiceGetResponse) ContentType() string
- func (r VpcRoutingServiceGetResponse) GetBody() []byte
- func (r VpcRoutingServiceGetResponse) GetJSON200() *StaticRoute
- func (r VpcRoutingServiceGetResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceGetResponse) Status() string
- func (r VpcRoutingServiceGetResponse) StatusCode() int
- type VpcRoutingServiceListOperationsParams
- type VpcRoutingServiceListOperationsResponse
- func (r VpcRoutingServiceListOperationsResponse) ContentType() string
- func (r VpcRoutingServiceListOperationsResponse) GetBody() []byte
- func (r VpcRoutingServiceListOperationsResponse) GetJSON200() *ListStaticRoutesOperationResponse
- func (r VpcRoutingServiceListOperationsResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceListOperationsResponse) Status() string
- func (r VpcRoutingServiceListOperationsResponse) StatusCode() int
- type VpcRoutingServiceListParams
- type VpcRoutingServiceListResponse
- func (r VpcRoutingServiceListResponse) ContentType() string
- func (r VpcRoutingServiceListResponse) GetBody() []byte
- func (r VpcRoutingServiceListResponse) GetJSON200() *ListStaticRoutesResponse
- func (r VpcRoutingServiceListResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceListResponse) Status() string
- func (r VpcRoutingServiceListResponse) StatusCode() int
- type VpcRoutingServiceUpdateJSONRequestBody
- type VpcRoutingServiceUpdateResponse
- func (r VpcRoutingServiceUpdateResponse) ContentType() string
- func (r VpcRoutingServiceUpdateResponse) GetBody() []byte
- func (r VpcRoutingServiceUpdateResponse) GetJSON200() *Operation
- func (r VpcRoutingServiceUpdateResponse) GetJSONDefault() *Status
- func (r VpcRoutingServiceUpdateResponse) Status() string
- func (r VpcRoutingServiceUpdateResponse) StatusCode() int
- type VpcServiceCreateJSONRequestBody
- type VpcServiceCreateResponse
- func (r VpcServiceCreateResponse) ContentType() string
- func (r VpcServiceCreateResponse) GetBody() []byte
- func (r VpcServiceCreateResponse) GetJSON200() *Operation
- func (r VpcServiceCreateResponse) GetJSONDefault() *Status
- func (r VpcServiceCreateResponse) Status() string
- func (r VpcServiceCreateResponse) StatusCode() int
- type VpcServiceDeleteResponse
- func (r VpcServiceDeleteResponse) ContentType() string
- func (r VpcServiceDeleteResponse) GetBody() []byte
- func (r VpcServiceDeleteResponse) GetJSON200() *Operation
- func (r VpcServiceDeleteResponse) GetJSONDefault() *Status
- func (r VpcServiceDeleteResponse) Status() string
- func (r VpcServiceDeleteResponse) StatusCode() int
- type VpcServiceGetResponse
- type VpcServiceListParams
- type VpcServiceListResponse
- func (r VpcServiceListResponse) ContentType() string
- func (r VpcServiceListResponse) GetBody() []byte
- func (r VpcServiceListResponse) GetJSON200() *ListVPCResponse
- func (r VpcServiceListResponse) GetJSONDefault() *Status
- func (r VpcServiceListResponse) Status() string
- func (r VpcServiceListResponse) StatusCode() int
- type VpcServiceUpdateJSONRequestBody
- type VpcServiceUpdateResponse
- func (r VpcServiceUpdateResponse) ContentType() string
- func (r VpcServiceUpdateResponse) GetBody() []byte
- func (r VpcServiceUpdateResponse) GetJSON200() *Operation
- func (r VpcServiceUpdateResponse) GetJSONDefault() *Status
- func (r VpcServiceUpdateResponse) Status() string
- func (r VpcServiceUpdateResponse) StatusCode() int
- type VpcType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddressPoolServiceCreateRequest ¶
func NewAddressPoolServiceCreateRequest(server string, vpcId string, body AddressPoolServiceCreateJSONRequestBody) (*http.Request, error)
NewAddressPoolServiceCreateRequest calls the generic AddressPoolServiceCreate builder with application/json body
func NewAddressPoolServiceCreateRequestWithBody ¶
func NewAddressPoolServiceCreateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
NewAddressPoolServiceCreateRequestWithBody constructs an http.Request for the AddressPoolServiceCreate method, with any body, and a specified content type
func NewAddressPoolServiceDeleteRequest ¶
func NewAddressPoolServiceDeleteRequest(server string, vpcId string, addressPoolId string) (*http.Request, error)
NewAddressPoolServiceDeleteRequest constructs an http.Request for the AddressPoolServiceDelete method
func NewAddressPoolServiceGetRequest ¶
func NewAddressPoolServiceGetRequest(server string, vpcId string, addressPoolId string) (*http.Request, error)
NewAddressPoolServiceGetRequest constructs an http.Request for the AddressPoolServiceGet method
func NewAddressPoolServiceListOperationsRequest ¶
func NewAddressPoolServiceListOperationsRequest(server string, vpcId string, addressPoolId string, params *AddressPoolServiceListOperationsParams) (*http.Request, error)
NewAddressPoolServiceListOperationsRequest constructs an http.Request for the AddressPoolServiceListOperations method
func NewAddressPoolServiceListRequest ¶
func NewAddressPoolServiceListRequest(server string, vpcId string, params *AddressPoolServiceListParams) (*http.Request, error)
NewAddressPoolServiceListRequest constructs an http.Request for the AddressPoolServiceList method
func NewAddressPoolServiceUpdateRequest ¶
func NewAddressPoolServiceUpdateRequest(server string, vpcId string, addressPoolId string, body AddressPoolServiceUpdateJSONRequestBody) (*http.Request, error)
NewAddressPoolServiceUpdateRequest calls the generic AddressPoolServiceUpdate builder with application/json body
func NewAddressPoolServiceUpdateRequestWithBody ¶
func NewAddressPoolServiceUpdateRequestWithBody(server string, vpcId string, addressPoolId string, contentType string, body io.Reader) (*http.Request, error)
NewAddressPoolServiceUpdateRequestWithBody constructs an http.Request for the AddressPoolServiceUpdate method, with any body, and a specified content type
func NewAllocationServiceGetRequest ¶
func NewAllocationServiceGetRequest(server string, vpcId string, addressPoolId string, allocationId string) (*http.Request, error)
NewAllocationServiceGetRequest constructs an http.Request for the AllocationServiceGet method
func NewAllocationServiceListRequest ¶
func NewAllocationServiceListRequest(server string, vpcId string, addressPoolId string, params *AllocationServiceListParams) (*http.Request, error)
NewAllocationServiceListRequest constructs an http.Request for the AllocationServiceList method
func NewOperationServiceGetRequest ¶
NewOperationServiceGetRequest constructs an http.Request for the OperationServiceGet method
func NewVirtualIPServiceCreateRequest ¶
func NewVirtualIPServiceCreateRequest(server string, body VirtualIPServiceCreateJSONRequestBody) (*http.Request, error)
NewVirtualIPServiceCreateRequest calls the generic VirtualIPServiceCreate builder with application/json body
func NewVirtualIPServiceCreateRequestWithBody ¶
func NewVirtualIPServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewVirtualIPServiceCreateRequestWithBody constructs an http.Request for the VirtualIPServiceCreate method, with any body, and a specified content type
func NewVirtualIPServiceDeleteRequest ¶
NewVirtualIPServiceDeleteRequest constructs an http.Request for the VirtualIPServiceDelete method
func NewVirtualIPServiceGetRequest ¶
NewVirtualIPServiceGetRequest constructs an http.Request for the VirtualIPServiceGet method
func NewVirtualIPServiceListOperationsRequest ¶
func NewVirtualIPServiceListOperationsRequest(server string, id string, params *VirtualIPServiceListOperationsParams) (*http.Request, error)
NewVirtualIPServiceListOperationsRequest constructs an http.Request for the VirtualIPServiceListOperations method
func NewVirtualIPServiceListRequest ¶
func NewVirtualIPServiceListRequest(server string, params *VirtualIPServiceListParams) (*http.Request, error)
NewVirtualIPServiceListRequest constructs an http.Request for the VirtualIPServiceList method
func NewVirtualIPServiceUpdateRequest ¶
func NewVirtualIPServiceUpdateRequest(server string, id string, body VirtualIPServiceUpdateJSONRequestBody) (*http.Request, error)
NewVirtualIPServiceUpdateRequest calls the generic VirtualIPServiceUpdate builder with application/json body
func NewVirtualIPServiceUpdateRequestWithBody ¶
func NewVirtualIPServiceUpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewVirtualIPServiceUpdateRequestWithBody constructs an http.Request for the VirtualIPServiceUpdate method, with any body, and a specified content type
func NewVpcRoutingServiceCreateRequest ¶
func NewVpcRoutingServiceCreateRequest(server string, vpcId string, body VpcRoutingServiceCreateJSONRequestBody) (*http.Request, error)
NewVpcRoutingServiceCreateRequest calls the generic VpcRoutingServiceCreate builder with application/json body
func NewVpcRoutingServiceCreateRequestWithBody ¶
func NewVpcRoutingServiceCreateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
NewVpcRoutingServiceCreateRequestWithBody constructs an http.Request for the VpcRoutingServiceCreate method, with any body, and a specified content type
func NewVpcRoutingServiceDeleteRequest ¶
func NewVpcRoutingServiceDeleteRequest(server string, vpcId string, staticRouteId string) (*http.Request, error)
NewVpcRoutingServiceDeleteRequest constructs an http.Request for the VpcRoutingServiceDelete method
func NewVpcRoutingServiceGetRequest ¶
func NewVpcRoutingServiceGetRequest(server string, vpcId string, staticRouteId string) (*http.Request, error)
NewVpcRoutingServiceGetRequest constructs an http.Request for the VpcRoutingServiceGet method
func NewVpcRoutingServiceListOperationsRequest ¶
func NewVpcRoutingServiceListOperationsRequest(server string, vpcId string, staticRouteId string, params *VpcRoutingServiceListOperationsParams) (*http.Request, error)
NewVpcRoutingServiceListOperationsRequest constructs an http.Request for the VpcRoutingServiceListOperations method
func NewVpcRoutingServiceListRequest ¶
func NewVpcRoutingServiceListRequest(server string, vpcId string, params *VpcRoutingServiceListParams) (*http.Request, error)
NewVpcRoutingServiceListRequest constructs an http.Request for the VpcRoutingServiceList method
func NewVpcRoutingServiceUpdateRequest ¶
func NewVpcRoutingServiceUpdateRequest(server string, vpcId string, staticRouteId string, body VpcRoutingServiceUpdateJSONRequestBody) (*http.Request, error)
NewVpcRoutingServiceUpdateRequest calls the generic VpcRoutingServiceUpdate builder with application/json body
func NewVpcRoutingServiceUpdateRequestWithBody ¶
func NewVpcRoutingServiceUpdateRequestWithBody(server string, vpcId string, staticRouteId string, contentType string, body io.Reader) (*http.Request, error)
NewVpcRoutingServiceUpdateRequestWithBody constructs an http.Request for the VpcRoutingServiceUpdate method, with any body, and a specified content type
func NewVpcServiceCreateRequest ¶
func NewVpcServiceCreateRequest(server string, body VpcServiceCreateJSONRequestBody) (*http.Request, error)
NewVpcServiceCreateRequest calls the generic VpcServiceCreate builder with application/json body
func NewVpcServiceCreateRequestWithBody ¶
func NewVpcServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewVpcServiceCreateRequestWithBody constructs an http.Request for the VpcServiceCreate method, with any body, and a specified content type
func NewVpcServiceDeleteRequest ¶
NewVpcServiceDeleteRequest constructs an http.Request for the VpcServiceDelete method
func NewVpcServiceGetRequest ¶
NewVpcServiceGetRequest constructs an http.Request for the VpcServiceGet method
func NewVpcServiceListRequest ¶
func NewVpcServiceListRequest(server string, params *VpcServiceListParams) (*http.Request, error)
NewVpcServiceListRequest constructs an http.Request for the VpcServiceList method
func NewVpcServiceUpdateRequest ¶
func NewVpcServiceUpdateRequest(server string, vpcId string, body VpcServiceUpdateJSONRequestBody) (*http.Request, error)
NewVpcServiceUpdateRequest calls the generic VpcServiceUpdate builder with application/json body
func NewVpcServiceUpdateRequestWithBody ¶
func NewVpcServiceUpdateRequestWithBody(server string, vpcId string, contentType string, body io.Reader) (*http.Request, error)
NewVpcServiceUpdateRequestWithBody constructs an http.Request for the VpcServiceUpdate method, with any body, and a specified content type
Types ¶
type AddressPool ¶
type AddressPool struct {
// BusyAddresses Количество занятых адресов в пуле.
//
// Example: 12
BusyAddresses *uint32 `json:"busyAddresses,omitempty"`
// Cidr CIDR пула адресов. Не может быть изменен после создания.
//
// Example: 192.168.0.0/24
Cidr string `json:"cidr"`
// CreatedAt Время создания.
//
// Example: 2024-01-15T10:30:00Z
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Описание пула адресов.
//
// Example: Address pool for production VPN gateways
Description *string `json:"description,omitempty"`
// Id Идентификатор пула адресов.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id *string `json:"id,omitempty"`
// MaxContiguousFreeAddresses Максимальный непрерывный интервал свободных адресов в пуле.
//
// Example: 64
MaxContiguousFreeAddresses *uint32 `json:"maxContiguousFreeAddresses,omitempty"`
// Name Название пула адресов.
//
// Example: my-address-pool
Name string `json:"name"`
// NumberAddresses Общее количество адресов в пуле.
//
// Example: 256
NumberAddresses *uint32 `json:"numberAddresses,omitempty"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId *string `json:"projectId,omitempty"`
// Reference Ресурс, которому принадлежит пул адресов. Отсутствует, если пул создан пользователем.
Reference *InstanceReference `json:"reference,omitempty"`
// Status Статус пула адресов.
//
// Example: ADDRESS_POOL_STATUS_CREATED
Status *AddressPoolStatus `json:"status,omitempty"`
// Type Тип пула адресов.
//
// Example: ADDRESS_POOL_TYPE_CLIENT
Type *AddressPoolType `json:"type,omitempty"`
// UpdatedAt Время последнего обновления.
//
// Example: 2024-01-15T10:30:00Z
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// VpcId Идентификатор VPC, в которой создан пул адресов.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
VpcId string `json:"vpcId"`
}
AddressPool Пул адресов VPC.
type AddressPoolServiceCreateJSONRequestBody ¶
type AddressPoolServiceCreateJSONRequestBody = CreateAddressPoolRequest
AddressPoolServiceCreateJSONRequestBody defines body for AddressPoolServiceCreate for application/json ContentType.
type AddressPoolServiceCreateResponse ¶
type AddressPoolServiceCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceCreateResponse ¶
func ParseAddressPoolServiceCreateResponse(rsp *http.Response) (*AddressPoolServiceCreateResponse, error)
ParseAddressPoolServiceCreateResponse parses an HTTP response from a AddressPoolServiceCreateWithResponse call
func (AddressPoolServiceCreateResponse) ContentType ¶
func (r AddressPoolServiceCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceCreateResponse) GetBody ¶
func (r AddressPoolServiceCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceCreateResponse) GetJSON200 ¶
func (r AddressPoolServiceCreateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceCreateResponse) GetJSONDefault ¶
func (r AddressPoolServiceCreateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceCreateResponse) Status ¶
func (r AddressPoolServiceCreateResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceCreateResponse) StatusCode ¶
func (r AddressPoolServiceCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolServiceDeleteResponse ¶
type AddressPoolServiceDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceDeleteResponse ¶
func ParseAddressPoolServiceDeleteResponse(rsp *http.Response) (*AddressPoolServiceDeleteResponse, error)
ParseAddressPoolServiceDeleteResponse parses an HTTP response from a AddressPoolServiceDeleteWithResponse call
func (AddressPoolServiceDeleteResponse) ContentType ¶
func (r AddressPoolServiceDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceDeleteResponse) GetBody ¶
func (r AddressPoolServiceDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceDeleteResponse) GetJSON200 ¶
func (r AddressPoolServiceDeleteResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceDeleteResponse) GetJSONDefault ¶
func (r AddressPoolServiceDeleteResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceDeleteResponse) Status ¶
func (r AddressPoolServiceDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceDeleteResponse) StatusCode ¶
func (r AddressPoolServiceDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolServiceGetResponse ¶
type AddressPoolServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AddressPool
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceGetResponse ¶
func ParseAddressPoolServiceGetResponse(rsp *http.Response) (*AddressPoolServiceGetResponse, error)
ParseAddressPoolServiceGetResponse parses an HTTP response from a AddressPoolServiceGetWithResponse call
func (AddressPoolServiceGetResponse) ContentType ¶
func (r AddressPoolServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceGetResponse) GetBody ¶
func (r AddressPoolServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceGetResponse) GetJSON200 ¶
func (r AddressPoolServiceGetResponse) GetJSON200() *AddressPool
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceGetResponse) GetJSONDefault ¶
func (r AddressPoolServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceGetResponse) Status ¶
func (r AddressPoolServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceGetResponse) StatusCode ¶
func (r AddressPoolServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolServiceListOperationsParams ¶
type AddressPoolServiceListOperationsParams struct {
// PageSize Максимальное количество элементов на странице.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы) в формате base64.
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
AddressPoolServiceListOperationsParams defines parameters for AddressPoolServiceListOperations.
type AddressPoolServiceListOperationsResponse ¶
type AddressPoolServiceListOperationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAddressPoolsOperationResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceListOperationsResponse ¶
func ParseAddressPoolServiceListOperationsResponse(rsp *http.Response) (*AddressPoolServiceListOperationsResponse, error)
ParseAddressPoolServiceListOperationsResponse parses an HTTP response from a AddressPoolServiceListOperationsWithResponse call
func (AddressPoolServiceListOperationsResponse) ContentType ¶
func (r AddressPoolServiceListOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceListOperationsResponse) GetBody ¶
func (r AddressPoolServiceListOperationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceListOperationsResponse) GetJSON200 ¶
func (r AddressPoolServiceListOperationsResponse) GetJSON200() *ListAddressPoolsOperationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceListOperationsResponse) GetJSONDefault ¶
func (r AddressPoolServiceListOperationsResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceListOperationsResponse) Status ¶
func (r AddressPoolServiceListOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceListOperationsResponse) StatusCode ¶
func (r AddressPoolServiceListOperationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolServiceListParams ¶
type AddressPoolServiceListParams struct {
// PageSize Максимальное количество элементов на странице. Допустимые значения: от 0 до 1000.
// Значение по умолчанию: 100.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы) в формате base64.
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
AddressPoolServiceListParams defines parameters for AddressPoolServiceList.
type AddressPoolServiceListResponse ¶
type AddressPoolServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAddressPoolsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceListResponse ¶
func ParseAddressPoolServiceListResponse(rsp *http.Response) (*AddressPoolServiceListResponse, error)
ParseAddressPoolServiceListResponse parses an HTTP response from a AddressPoolServiceListWithResponse call
func (AddressPoolServiceListResponse) ContentType ¶
func (r AddressPoolServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceListResponse) GetBody ¶
func (r AddressPoolServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceListResponse) GetJSON200 ¶
func (r AddressPoolServiceListResponse) GetJSON200() *ListAddressPoolsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceListResponse) GetJSONDefault ¶
func (r AddressPoolServiceListResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceListResponse) Status ¶
func (r AddressPoolServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceListResponse) StatusCode ¶
func (r AddressPoolServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolServiceUpdateJSONRequestBody ¶
type AddressPoolServiceUpdateJSONRequestBody = UpdateAddressPoolRequest
AddressPoolServiceUpdateJSONRequestBody defines body for AddressPoolServiceUpdate for application/json ContentType.
type AddressPoolServiceUpdateResponse ¶
type AddressPoolServiceUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAddressPoolServiceUpdateResponse ¶
func ParseAddressPoolServiceUpdateResponse(rsp *http.Response) (*AddressPoolServiceUpdateResponse, error)
ParseAddressPoolServiceUpdateResponse parses an HTTP response from a AddressPoolServiceUpdateWithResponse call
func (AddressPoolServiceUpdateResponse) ContentType ¶
func (r AddressPoolServiceUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddressPoolServiceUpdateResponse) GetBody ¶
func (r AddressPoolServiceUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddressPoolServiceUpdateResponse) GetJSON200 ¶
func (r AddressPoolServiceUpdateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddressPoolServiceUpdateResponse) GetJSONDefault ¶
func (r AddressPoolServiceUpdateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AddressPoolServiceUpdateResponse) Status ¶
func (r AddressPoolServiceUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (AddressPoolServiceUpdateResponse) StatusCode ¶
func (r AddressPoolServiceUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddressPoolStatus ¶
type AddressPoolStatus string
AddressPoolStatus Статус пула адресов.
Example: ADDRESS_POOL_STATUS_CREATED
const ( ADDRESSPOOLSTATUSCREATED AddressPoolStatus = "ADDRESS_POOL_STATUS_CREATED" ADDRESSPOOLSTATUSCREATING AddressPoolStatus = "ADDRESS_POOL_STATUS_CREATING" ADDRESSPOOLSTATUSDELETED AddressPoolStatus = "ADDRESS_POOL_STATUS_DELETED" ADDRESSPOOLSTATUSDELETING AddressPoolStatus = "ADDRESS_POOL_STATUS_DELETING" ADDRESSPOOLSTATUSFAILEDCREATE AddressPoolStatus = "ADDRESS_POOL_STATUS_FAILED_CREATE" ADDRESSPOOLSTATUSFAILEDDELETE AddressPoolStatus = "ADDRESS_POOL_STATUS_FAILED_DELETE" ADDRESSPOOLSTATUSFAILEDUPDATE AddressPoolStatus = "ADDRESS_POOL_STATUS_FAILED_UPDATE" ADDRESSPOOLSTATUSNEW AddressPoolStatus = "ADDRESS_POOL_STATUS_NEW" ADDRESSPOOLSTATUSUNSPECIFIED AddressPoolStatus = "ADDRESS_POOL_STATUS_UNSPECIFIED" ADDRESSPOOLSTATUSUPDATING AddressPoolStatus = "ADDRESS_POOL_STATUS_UPDATING" )
Defines values for AddressPoolStatus.
func (AddressPoolStatus) Valid ¶
func (e AddressPoolStatus) Valid() bool
Valid indicates whether the value is a known member of the AddressPoolStatus enum.
type AddressPoolType ¶
type AddressPoolType string
AddressPoolType Тип пула адресов.
Example: ADDRESS_POOL_TYPE_CLIENT
const ( ADDRESSPOOLTYPECLIENT AddressPoolType = "ADDRESS_POOL_TYPE_CLIENT" ADDRESSPOOLTYPESERVICE AddressPoolType = "ADDRESS_POOL_TYPE_SERVICE" ADDRESSPOOLTYPEUNSPECIFIED AddressPoolType = "ADDRESS_POOL_TYPE_UNSPECIFIED" )
Defines values for AddressPoolType.
func (AddressPoolType) Valid ¶
func (e AddressPoolType) Valid() bool
Valid indicates whether the value is a known member of the AddressPoolType enum.
type Allocation ¶
type Allocation struct {
// Address Выделенный IP-адрес.
//
// Example: 192.168.0.10
Address *string `json:"address,omitempty"`
// AddressPoolId Идентификатор пула адресов, из которого выделен адрес.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
AddressPoolId *string `json:"addressPoolId,omitempty"`
// CreatedAt Время создания.
//
// Example: 2024-01-15T10:30:00Z
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Описание аллокации. Максимум 256 символов.
//
// Example: Allocation for VPN gateway
Description *string `json:"description,omitempty"`
// Id Идентификатор аллокации.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id *string `json:"id,omitempty"`
// Name Название аллокации.
//
// Example: my-allocation
Name *string `json:"name,omitempty"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId *string `json:"projectId,omitempty"`
// Reference Ресурс, использующий адрес.
Reference *InstanceReference `json:"reference,omitempty"`
// Status Статус аллокации.
//
// Example: ALLOCATION_STATUS_CREATED
Status *AllocationStatus `json:"status,omitempty"`
// UpdatedAt Время последнего обновления.
//
// Example: 2024-01-15T10:30:00Z
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// VpcId Идентификатор VPC, в которой создана аллокация.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
VpcId *string `json:"vpcId,omitempty"`
}
Allocation Аллокация — выделение одного IP-адреса из пула адресов.
type AllocationServiceGetResponse ¶
type AllocationServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Allocation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAllocationServiceGetResponse ¶
func ParseAllocationServiceGetResponse(rsp *http.Response) (*AllocationServiceGetResponse, error)
ParseAllocationServiceGetResponse parses an HTTP response from a AllocationServiceGetWithResponse call
func (AllocationServiceGetResponse) ContentType ¶
func (r AllocationServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AllocationServiceGetResponse) GetBody ¶
func (r AllocationServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AllocationServiceGetResponse) GetJSON200 ¶
func (r AllocationServiceGetResponse) GetJSON200() *Allocation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AllocationServiceGetResponse) GetJSONDefault ¶
func (r AllocationServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AllocationServiceGetResponse) Status ¶
func (r AllocationServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (AllocationServiceGetResponse) StatusCode ¶
func (r AllocationServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AllocationServiceListParams ¶
type AllocationServiceListParams struct {
// PageSize Максимальное количество элементов на странице. Допустимые значения: от 0 до 1000.
// Значение по умолчанию: 100.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы) в формате base64.
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
AllocationServiceListParams defines parameters for AllocationServiceList.
type AllocationServiceListResponse ¶
type AllocationServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAllocationsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseAllocationServiceListResponse ¶
func ParseAllocationServiceListResponse(rsp *http.Response) (*AllocationServiceListResponse, error)
ParseAllocationServiceListResponse parses an HTTP response from a AllocationServiceListWithResponse call
func (AllocationServiceListResponse) ContentType ¶
func (r AllocationServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AllocationServiceListResponse) GetBody ¶
func (r AllocationServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AllocationServiceListResponse) GetJSON200 ¶
func (r AllocationServiceListResponse) GetJSON200() *ListAllocationsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AllocationServiceListResponse) GetJSONDefault ¶
func (r AllocationServiceListResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AllocationServiceListResponse) Status ¶
func (r AllocationServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (AllocationServiceListResponse) StatusCode ¶
func (r AllocationServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AllocationStatus ¶
type AllocationStatus string
AllocationStatus Статус аллокации.
Example: ALLOCATION_STATUS_CREATED
const ( ALLOCATIONSTATUSCREATED AllocationStatus = "ALLOCATION_STATUS_CREATED" ALLOCATIONSTATUSCREATING AllocationStatus = "ALLOCATION_STATUS_CREATING" ALLOCATIONSTATUSDELETED AllocationStatus = "ALLOCATION_STATUS_DELETED" ALLOCATIONSTATUSDELETING AllocationStatus = "ALLOCATION_STATUS_DELETING" ALLOCATIONSTATUSFAILEDCREATE AllocationStatus = "ALLOCATION_STATUS_FAILED_CREATE" ALLOCATIONSTATUSFAILEDDELETE AllocationStatus = "ALLOCATION_STATUS_FAILED_DELETE" ALLOCATIONSTATUSFAILEDUPDATE AllocationStatus = "ALLOCATION_STATUS_FAILED_UPDATE" ALLOCATIONSTATUSNEW AllocationStatus = "ALLOCATION_STATUS_NEW" ALLOCATIONSTATUSUNSPECIFIED AllocationStatus = "ALLOCATION_STATUS_UNSPECIFIED" ALLOCATIONSTATUSUPDATING AllocationStatus = "ALLOCATION_STATUS_UPDATING" )
Defines values for AllocationStatus.
func (AllocationStatus) Valid ¶
func (e AllocationStatus) Valid() bool
Valid indicates whether the value is a known member of the AllocationStatus enum.
type Baremetal ¶
type Baremetal struct {
// SubnetId Идентификатор подсети серверов Bare Metal, в которой размещается виртуальный IP-адрес.
// Не может быть изменен после создания виртуального IP-адреса.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
SubnetId string `json:"subnetId"`
}
Baremetal defines model for Baremetal.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddressPoolServiceCreate ¶
func (c *Client) AddressPoolServiceCreate(ctx context.Context, vpcId string, body AddressPoolServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceCreate performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request. Takes a body of the `application/json` content type.
Создает пул адресов в VPC.
func (*Client) AddressPoolServiceCreateWithBody ¶
func (c *Client) AddressPoolServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceCreateWithBody performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request, with any type of body and a specified content type.
Создает пул адресов в VPC.
func (*Client) AddressPoolServiceDelete ¶
func (c *Client) AddressPoolServiceDelete(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceDelete performs a DELETE /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceDelete` operationId) request.
Удаляет пул адресов.
func (*Client) AddressPoolServiceGet ¶
func (c *Client) AddressPoolServiceGet(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceGet performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceGet` operationId) request.
Возвращает сведения о пуле адресов.
func (*Client) AddressPoolServiceList ¶
func (c *Client) AddressPoolServiceList(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceList performs a GET /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceList` operationId) request.
Возвращает список пулов адресов VPC.
func (*Client) AddressPoolServiceListOperations ¶
func (c *Client) AddressPoolServiceListOperations(ctx context.Context, vpcId string, addressPoolId string, params *AddressPoolServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceListOperations performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/operations (the `AddressPoolServiceListOperations` operationId) request.
Возвращает список операций, выполненных над указанным пулом адресов.
func (*Client) AddressPoolServiceUpdate ¶
func (c *Client) AddressPoolServiceUpdate(ctx context.Context, vpcId string, addressPoolId string, body AddressPoolServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceUpdate performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request. Takes a body of the `application/json` content type.
Обновляет пул адресов.
func (*Client) AddressPoolServiceUpdateWithBody ¶
func (c *Client) AddressPoolServiceUpdateWithBody(ctx context.Context, vpcId string, addressPoolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddressPoolServiceUpdateWithBody performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет пул адресов.
func (*Client) AllocationServiceGet ¶
func (c *Client) AllocationServiceGet(ctx context.Context, vpcId string, addressPoolId string, allocationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
AllocationServiceGet performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations/{allocationId} (the `AllocationServiceGet` operationId) request.
Возвращает информацию об аллокации из пула адресов.
func (*Client) AllocationServiceList ¶
func (c *Client) AllocationServiceList(ctx context.Context, vpcId string, addressPoolId string, params *AllocationServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
AllocationServiceList performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations (the `AllocationServiceList` operationId) request.
Возвращает список аллокаций пула адресов.
func (*Client) OperationServiceGet ¶
func (c *Client) OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
OperationServiceGet performs a GET /v1/vpcs/operations/{operationId} (the `OperationServiceGet` operationId) request.
Возвращает операцию по идентификатору.
func (*Client) VirtualIPServiceCreate ¶
func (c *Client) VirtualIPServiceCreate(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceCreate performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request. Takes a body of the `application/json` content type.
Создает виртуальный IP-адрес.
func (*Client) VirtualIPServiceCreateWithBody ¶
func (c *Client) VirtualIPServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceCreateWithBody performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request, with any type of body and a specified content type.
Создает виртуальный IP-адрес.
func (*Client) VirtualIPServiceDelete ¶
func (c *Client) VirtualIPServiceDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceDelete performs a DELETE /v1/vips/{id} (the `VirtualIPServiceDelete` operationId) request.
Удаляет виртуальный IP-адрес.
func (*Client) VirtualIPServiceGet ¶
func (c *Client) VirtualIPServiceGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceGet performs a GET /v1/vips/{id} (the `VirtualIPServiceGet` operationId) request.
Возвращает виртуальный IP-адрес.
func (*Client) VirtualIPServiceList ¶
func (c *Client) VirtualIPServiceList(ctx context.Context, params *VirtualIPServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceList performs a GET /v1/vips (the `VirtualIPServiceList` operationId) request.
Возвращает список виртуальных IP-адресов.
func (*Client) VirtualIPServiceListOperations ¶
func (c *Client) VirtualIPServiceListOperations(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceListOperations performs a GET /v1/vips/{id}/operations (the `VirtualIPServiceListOperations` operationId) request.
Возвращает список операций для виртуального IP-адреса.
func (*Client) VirtualIPServiceUpdate ¶
func (c *Client) VirtualIPServiceUpdate(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceUpdate performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request. Takes a body of the `application/json` content type.
Обновляет виртуальный IP-адрес.
func (*Client) VirtualIPServiceUpdateWithBody ¶
func (c *Client) VirtualIPServiceUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VirtualIPServiceUpdateWithBody performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет виртуальный IP-адрес.
func (*Client) VpcRoutingServiceCreate ¶
func (c *Client) VpcRoutingServiceCreate(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceCreate performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request. Takes a body of the `application/json` content type.
Создает статический маршрут.
func (*Client) VpcRoutingServiceCreateWithBody ¶
func (c *Client) VpcRoutingServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceCreateWithBody performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request, with any type of body and a specified content type.
Создает статический маршрут.
func (*Client) VpcRoutingServiceDelete ¶
func (c *Client) VpcRoutingServiceDelete(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceDelete performs a DELETE /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceDelete` operationId) request.
Удаляет статический маршрут.
func (*Client) VpcRoutingServiceGet ¶
func (c *Client) VpcRoutingServiceGet(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceGet performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceGet` operationId) request.
Возвращает статический маршрут.
func (*Client) VpcRoutingServiceList ¶
func (c *Client) VpcRoutingServiceList(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceList performs a GET /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceList` operationId) request.
Возвращает список статических маршрутов.
func (*Client) VpcRoutingServiceListOperations ¶
func (c *Client) VpcRoutingServiceListOperations(ctx context.Context, vpcId string, staticRouteId string, params *VpcRoutingServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceListOperations performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId}/operations (the `VpcRoutingServiceListOperations` operationId) request.
Возвращает список операций для статического маршрута.
func (*Client) VpcRoutingServiceUpdate ¶
func (c *Client) VpcRoutingServiceUpdate(ctx context.Context, vpcId string, staticRouteId string, body VpcRoutingServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceUpdate performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request. Takes a body of the `application/json` content type.
Обновляет статический маршрут.
func (*Client) VpcRoutingServiceUpdateWithBody ¶
func (c *Client) VpcRoutingServiceUpdateWithBody(ctx context.Context, vpcId string, staticRouteId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcRoutingServiceUpdateWithBody performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет статический маршрут.
func (*Client) VpcServiceCreate ¶
func (c *Client) VpcServiceCreate(ctx context.Context, body VpcServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceCreate performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request. Takes a body of the `application/json` content type.
Создает новую VPC на основе переданного запроса.
func (*Client) VpcServiceCreateWithBody ¶
func (c *Client) VpcServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceCreateWithBody performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request, with any type of body and a specified content type.
Создает новую VPC на основе переданного запроса.
func (*Client) VpcServiceDelete ¶
func (c *Client) VpcServiceDelete(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceDelete performs a DELETE /v1/vpcs/{vpcId} (the `VpcServiceDelete` operationId) request.
Удаляет существующую VPC по указанному идентификатору.
func (*Client) VpcServiceGet ¶
func (c *Client) VpcServiceGet(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceGet performs a GET /v1/vpcs/{vpcId} (the `VpcServiceGet` operationId) request.
Возвращает сведения о VPC по указанному идентификатору.
func (*Client) VpcServiceList ¶
func (c *Client) VpcServiceList(ctx context.Context, params *VpcServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceList performs a GET /v1/vpcs (the `VpcServiceList` operationId) request.
Возвращает список VPC, соответствующих указанным фильтрам.
func (*Client) VpcServiceUpdate ¶
func (c *Client) VpcServiceUpdate(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceUpdate performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request. Takes a body of the `application/json` content type.
Обновляет существующую VPC новыми данными, указанными в запросе.
func (*Client) VpcServiceUpdateWithBody ¶
func (c *Client) VpcServiceUpdateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VpcServiceUpdateWithBody performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет существующую VPC новыми данными, указанными в запросе.
type ClientInterface ¶
type ClientInterface interface {
// VirtualIPServiceList performs a GET /v1/vips (the `VirtualIPServiceList` operationId) request.
//
// Возвращает список виртуальных IP-адресов.
VirtualIPServiceList(ctx context.Context, params *VirtualIPServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceCreateWithBody performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает виртуальный IP-адрес.
VirtualIPServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceCreate performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Создает виртуальный IP-адрес.
VirtualIPServiceCreate(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceDelete performs a DELETE /v1/vips/{id} (the `VirtualIPServiceDelete` operationId) request.
//
// Удаляет виртуальный IP-адрес.
VirtualIPServiceDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceGet performs a GET /v1/vips/{id} (the `VirtualIPServiceGet` operationId) request.
//
// Возвращает виртуальный IP-адрес.
VirtualIPServiceGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceUpdateWithBody performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет виртуальный IP-адрес.
VirtualIPServiceUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceUpdate performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Обновляет виртуальный IP-адрес.
VirtualIPServiceUpdate(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VirtualIPServiceListOperations performs a GET /v1/vips/{id}/operations (the `VirtualIPServiceListOperations` operationId) request.
//
// Возвращает список операций для виртуального IP-адреса.
VirtualIPServiceListOperations(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceList performs a GET /v1/vpcs (the `VpcServiceList` operationId) request.
//
// Возвращает список VPC, соответствующих указанным фильтрам.
VpcServiceList(ctx context.Context, params *VpcServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceCreateWithBody performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает новую VPC на основе переданного запроса.
VpcServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceCreate performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Создает новую VPC на основе переданного запроса.
VpcServiceCreate(ctx context.Context, body VpcServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// OperationServiceGet performs a GET /v1/vpcs/operations/{operationId} (the `OperationServiceGet` operationId) request.
//
// Возвращает операцию по идентификатору.
OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceDelete performs a DELETE /v1/vpcs/{vpcId} (the `VpcServiceDelete` operationId) request.
//
// Удаляет существующую VPC по указанному идентификатору.
VpcServiceDelete(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceGet performs a GET /v1/vpcs/{vpcId} (the `VpcServiceGet` operationId) request.
//
// Возвращает сведения о VPC по указанному идентификатору.
VpcServiceGet(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceUpdateWithBody performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет существующую VPC новыми данными, указанными в запросе.
VpcServiceUpdateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcServiceUpdate performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Обновляет существующую VPC новыми данными, указанными в запросе.
VpcServiceUpdate(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceList performs a GET /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceList` operationId) request.
//
// Возвращает список пулов адресов VPC.
AddressPoolServiceList(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceCreateWithBody performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает пул адресов в VPC.
AddressPoolServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceCreate performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Создает пул адресов в VPC.
AddressPoolServiceCreate(ctx context.Context, vpcId string, body AddressPoolServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceDelete performs a DELETE /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceDelete` operationId) request.
//
// Удаляет пул адресов.
AddressPoolServiceDelete(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceGet performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceGet` operationId) request.
//
// Возвращает сведения о пуле адресов.
AddressPoolServiceGet(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceUpdateWithBody performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет пул адресов.
AddressPoolServiceUpdateWithBody(ctx context.Context, vpcId string, addressPoolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceUpdate performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Обновляет пул адресов.
AddressPoolServiceUpdate(ctx context.Context, vpcId string, addressPoolId string, body AddressPoolServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AllocationServiceList performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations (the `AllocationServiceList` operationId) request.
//
// Возвращает список аллокаций пула адресов.
AllocationServiceList(ctx context.Context, vpcId string, addressPoolId string, params *AllocationServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AllocationServiceGet performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations/{allocationId} (the `AllocationServiceGet` operationId) request.
//
// Возвращает информацию об аллокации из пула адресов.
AllocationServiceGet(ctx context.Context, vpcId string, addressPoolId string, allocationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddressPoolServiceListOperations performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/operations (the `AddressPoolServiceListOperations` operationId) request.
//
// Возвращает список операций, выполненных над указанным пулом адресов.
AddressPoolServiceListOperations(ctx context.Context, vpcId string, addressPoolId string, params *AddressPoolServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceList performs a GET /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceList` operationId) request.
//
// Возвращает список статических маршрутов.
VpcRoutingServiceList(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceCreateWithBody performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает статический маршрут.
VpcRoutingServiceCreateWithBody(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceCreate performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Создает статический маршрут.
VpcRoutingServiceCreate(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceDelete performs a DELETE /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceDelete` operationId) request.
//
// Удаляет статический маршрут.
VpcRoutingServiceDelete(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceGet performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceGet` operationId) request.
//
// Возвращает статический маршрут.
VpcRoutingServiceGet(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceUpdateWithBody performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет статический маршрут.
VpcRoutingServiceUpdateWithBody(ctx context.Context, vpcId string, staticRouteId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceUpdate performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Обновляет статический маршрут.
VpcRoutingServiceUpdate(ctx context.Context, vpcId string, staticRouteId string, body VpcRoutingServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VpcRoutingServiceListOperations performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId}/operations (the `VpcRoutingServiceListOperations` operationId) request.
//
// Возвращает список операций для статического маршрута.
VpcRoutingServiceListOperations(ctx context.Context, vpcId string, staticRouteId string, params *VpcRoutingServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddressPoolServiceCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddressPoolServiceCreateResponse, error)
AddressPoolServiceCreateWithBodyWithResponse performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request, with any type of body and a specified content type.
Создает пул адресов в VPC.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceCreateWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceCreateWithResponse(ctx context.Context, vpcId string, body AddressPoolServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AddressPoolServiceCreateResponse, error)
AddressPoolServiceCreateWithResponse performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Создает пул адресов в VPC.
func (*ClientWithResponses) AddressPoolServiceDeleteWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceDeleteWithResponse(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*AddressPoolServiceDeleteResponse, error)
AddressPoolServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceDelete` operationId) request.
Удаляет пул адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceGetWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*AddressPoolServiceGetResponse, error)
AddressPoolServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceGet` operationId) request.
Возвращает сведения о пуле адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceListOperationsWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceListOperationsWithResponse(ctx context.Context, vpcId string, addressPoolId string, params *AddressPoolServiceListOperationsParams, reqEditors ...RequestEditorFn) (*AddressPoolServiceListOperationsResponse, error)
AddressPoolServiceListOperationsWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/operations (the `AddressPoolServiceListOperations` operationId) request.
Возвращает список операций, выполненных над указанным пулом адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceListWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceListWithResponse(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, reqEditors ...RequestEditorFn) (*AddressPoolServiceListResponse, error)
AddressPoolServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceList` operationId) request.
Возвращает список пулов адресов VPC.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, addressPoolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddressPoolServiceUpdateResponse, error)
AddressPoolServiceUpdateWithBodyWithResponse performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет пул адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AddressPoolServiceUpdateWithResponse ¶
func (c *ClientWithResponses) AddressPoolServiceUpdateWithResponse(ctx context.Context, vpcId string, addressPoolId string, body AddressPoolServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*AddressPoolServiceUpdateResponse, error)
AddressPoolServiceUpdateWithResponse performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Обновляет пул адресов.
func (*ClientWithResponses) AllocationServiceGetWithResponse ¶
func (c *ClientWithResponses) AllocationServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, allocationId string, reqEditors ...RequestEditorFn) (*AllocationServiceGetResponse, error)
AllocationServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations/{allocationId} (the `AllocationServiceGet` operationId) request.
Возвращает информацию об аллокации из пула адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) AllocationServiceListWithResponse ¶
func (c *ClientWithResponses) AllocationServiceListWithResponse(ctx context.Context, vpcId string, addressPoolId string, params *AllocationServiceListParams, reqEditors ...RequestEditorFn) (*AllocationServiceListResponse, error)
AllocationServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations (the `AllocationServiceList` operationId) request.
Возвращает список аллокаций пула адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) OperationServiceGetWithResponse ¶
func (c *ClientWithResponses) OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)
OperationServiceGetWithResponse performs a GET /v1/vpcs/operations/{operationId} (the `OperationServiceGet` operationId) request.
Возвращает операцию по идентификатору.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualIPServiceCreateResponse, error)
VirtualIPServiceCreateWithBodyWithResponse performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request, with any type of body and a specified content type.
Создает виртуальный IP-адрес.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceCreateWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceCreateWithResponse(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualIPServiceCreateResponse, error)
VirtualIPServiceCreateWithResponse performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Создает виртуальный IP-адрес.
func (*ClientWithResponses) VirtualIPServiceDeleteWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceDeleteResponse, error)
VirtualIPServiceDeleteWithResponse performs a DELETE /v1/vips/{id} (the `VirtualIPServiceDelete` operationId) request.
Удаляет виртуальный IP-адрес.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceGetWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceGetResponse, error)
VirtualIPServiceGetWithResponse performs a GET /v1/vips/{id} (the `VirtualIPServiceGet` operationId) request.
Возвращает виртуальный IP-адрес.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceListOperationsWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceListOperationsWithResponse(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, reqEditors ...RequestEditorFn) (*VirtualIPServiceListOperationsResponse, error)
VirtualIPServiceListOperationsWithResponse performs a GET /v1/vips/{id}/operations (the `VirtualIPServiceListOperations` operationId) request.
Возвращает список операций для виртуального IP-адреса.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceListWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceListWithResponse(ctx context.Context, params *VirtualIPServiceListParams, reqEditors ...RequestEditorFn) (*VirtualIPServiceListResponse, error)
VirtualIPServiceListWithResponse performs a GET /v1/vips (the `VirtualIPServiceList` operationId) request.
Возвращает список виртуальных IP-адресов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualIPServiceUpdateResponse, error)
VirtualIPServiceUpdateWithBodyWithResponse performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет виртуальный IP-адрес.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VirtualIPServiceUpdateWithResponse ¶
func (c *ClientWithResponses) VirtualIPServiceUpdateWithResponse(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualIPServiceUpdateResponse, error)
VirtualIPServiceUpdateWithResponse performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Обновляет виртуальный IP-адрес.
func (*ClientWithResponses) VpcRoutingServiceCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcRoutingServiceCreateResponse, error)
VpcRoutingServiceCreateWithBodyWithResponse performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request, with any type of body and a specified content type.
Создает статический маршрут.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceCreateWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceCreateWithResponse(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcRoutingServiceCreateResponse, error)
VpcRoutingServiceCreateWithResponse performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Создает статический маршрут.
func (*ClientWithResponses) VpcRoutingServiceDeleteWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceDeleteWithResponse(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*VpcRoutingServiceDeleteResponse, error)
VpcRoutingServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceDelete` operationId) request.
Удаляет статический маршрут.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceGetWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceGetWithResponse(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*VpcRoutingServiceGetResponse, error)
VpcRoutingServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceGet` operationId) request.
Возвращает статический маршрут.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceListOperationsWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceListOperationsWithResponse(ctx context.Context, vpcId string, staticRouteId string, params *VpcRoutingServiceListOperationsParams, reqEditors ...RequestEditorFn) (*VpcRoutingServiceListOperationsResponse, error)
VpcRoutingServiceListOperationsWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId}/operations (the `VpcRoutingServiceListOperations` operationId) request.
Возвращает список операций для статического маршрута.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceListWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceListWithResponse(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, reqEditors ...RequestEditorFn) (*VpcRoutingServiceListResponse, error)
VpcRoutingServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceList` operationId) request.
Возвращает список статических маршрутов.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, staticRouteId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcRoutingServiceUpdateResponse, error)
VpcRoutingServiceUpdateWithBodyWithResponse performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет статический маршрут.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcRoutingServiceUpdateWithResponse ¶
func (c *ClientWithResponses) VpcRoutingServiceUpdateWithResponse(ctx context.Context, vpcId string, staticRouteId string, body VpcRoutingServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcRoutingServiceUpdateResponse, error)
VpcRoutingServiceUpdateWithResponse performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Обновляет статический маршрут.
func (*ClientWithResponses) VpcServiceCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) VpcServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcServiceCreateResponse, error)
VpcServiceCreateWithBodyWithResponse performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request, with any type of body and a specified content type.
Создает новую VPC на основе переданного запроса.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcServiceCreateWithResponse ¶
func (c *ClientWithResponses) VpcServiceCreateWithResponse(ctx context.Context, body VpcServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcServiceCreateResponse, error)
VpcServiceCreateWithResponse performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Создает новую VPC на основе переданного запроса.
func (*ClientWithResponses) VpcServiceDeleteWithResponse ¶
func (c *ClientWithResponses) VpcServiceDeleteWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceDeleteResponse, error)
VpcServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId} (the `VpcServiceDelete` operationId) request.
Удаляет существующую VPC по указанному идентификатору.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcServiceGetWithResponse ¶
func (c *ClientWithResponses) VpcServiceGetWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceGetResponse, error)
VpcServiceGetWithResponse performs a GET /v1/vpcs/{vpcId} (the `VpcServiceGet` operationId) request.
Возвращает сведения о VPC по указанному идентификатору.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcServiceListWithResponse ¶
func (c *ClientWithResponses) VpcServiceListWithResponse(ctx context.Context, params *VpcServiceListParams, reqEditors ...RequestEditorFn) (*VpcServiceListResponse, error)
VpcServiceListWithResponse performs a GET /v1/vpcs (the `VpcServiceList` operationId) request.
Возвращает список VPC, соответствующих указанным фильтрам.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcServiceUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) VpcServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcServiceUpdateResponse, error)
VpcServiceUpdateWithBodyWithResponse performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request, with any type of body and a specified content type.
Обновляет существующую VPC новыми данными, указанными в запросе.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VpcServiceUpdateWithResponse ¶
func (c *ClientWithResponses) VpcServiceUpdateWithResponse(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcServiceUpdateResponse, error)
VpcServiceUpdateWithResponse performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Обновляет существующую VPC новыми данными, указанными в запросе.
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// VirtualIPServiceListWithResponse performs a GET /v1/vips (the `VirtualIPServiceList` operationId) request.
//
// Возвращает список виртуальных IP-адресов.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceListWithResponse(ctx context.Context, params *VirtualIPServiceListParams, reqEditors ...RequestEditorFn) (*VirtualIPServiceListResponse, error)
// VirtualIPServiceCreateWithBodyWithResponse performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает виртуальный IP-адрес.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualIPServiceCreateResponse, error)
// VirtualIPServiceCreateWithResponse performs a POST /v1/vips (the `VirtualIPServiceCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Создает виртуальный IP-адрес.
VirtualIPServiceCreateWithResponse(ctx context.Context, body VirtualIPServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualIPServiceCreateResponse, error)
// VirtualIPServiceDeleteWithResponse performs a DELETE /v1/vips/{id} (the `VirtualIPServiceDelete` operationId) request.
//
// Удаляет виртуальный IP-адрес.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceDeleteResponse, error)
// VirtualIPServiceGetWithResponse performs a GET /v1/vips/{id} (the `VirtualIPServiceGet` operationId) request.
//
// Возвращает виртуальный IP-адрес.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualIPServiceGetResponse, error)
// VirtualIPServiceUpdateWithBodyWithResponse performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет виртуальный IP-адрес.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualIPServiceUpdateResponse, error)
// VirtualIPServiceUpdateWithResponse performs a PUT /v1/vips/{id} (the `VirtualIPServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Обновляет виртуальный IP-адрес.
VirtualIPServiceUpdateWithResponse(ctx context.Context, id string, body VirtualIPServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualIPServiceUpdateResponse, error)
// VirtualIPServiceListOperationsWithResponse performs a GET /v1/vips/{id}/operations (the `VirtualIPServiceListOperations` operationId) request.
//
// Возвращает список операций для виртуального IP-адреса.
//
// Returns a wrapper object for the known response body format(s).
VirtualIPServiceListOperationsWithResponse(ctx context.Context, id string, params *VirtualIPServiceListOperationsParams, reqEditors ...RequestEditorFn) (*VirtualIPServiceListOperationsResponse, error)
// VpcServiceListWithResponse performs a GET /v1/vpcs (the `VpcServiceList` operationId) request.
//
// Возвращает список VPC, соответствующих указанным фильтрам.
//
// Returns a wrapper object for the known response body format(s).
VpcServiceListWithResponse(ctx context.Context, params *VpcServiceListParams, reqEditors ...RequestEditorFn) (*VpcServiceListResponse, error)
// VpcServiceCreateWithBodyWithResponse performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает новую VPC на основе переданного запроса.
//
// Returns a wrapper object for the known response body format(s).
VpcServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcServiceCreateResponse, error)
// VpcServiceCreateWithResponse performs a POST /v1/vpcs (the `VpcServiceCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Создает новую VPC на основе переданного запроса.
VpcServiceCreateWithResponse(ctx context.Context, body VpcServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcServiceCreateResponse, error)
// OperationServiceGetWithResponse performs a GET /v1/vpcs/operations/{operationId} (the `OperationServiceGet` operationId) request.
//
// Возвращает операцию по идентификатору.
//
// Returns a wrapper object for the known response body format(s).
OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)
// VpcServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId} (the `VpcServiceDelete` operationId) request.
//
// Удаляет существующую VPC по указанному идентификатору.
//
// Returns a wrapper object for the known response body format(s).
VpcServiceDeleteWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceDeleteResponse, error)
// VpcServiceGetWithResponse performs a GET /v1/vpcs/{vpcId} (the `VpcServiceGet` operationId) request.
//
// Возвращает сведения о VPC по указанному идентификатору.
//
// Returns a wrapper object for the known response body format(s).
VpcServiceGetWithResponse(ctx context.Context, vpcId string, reqEditors ...RequestEditorFn) (*VpcServiceGetResponse, error)
// VpcServiceUpdateWithBodyWithResponse performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет существующую VPC новыми данными, указанными в запросе.
//
// Returns a wrapper object for the known response body format(s).
VpcServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcServiceUpdateResponse, error)
// VpcServiceUpdateWithResponse performs a PUT /v1/vpcs/{vpcId} (the `VpcServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Обновляет существующую VPC новыми данными, указанными в запросе.
VpcServiceUpdateWithResponse(ctx context.Context, vpcId string, body VpcServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcServiceUpdateResponse, error)
// AddressPoolServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceList` operationId) request.
//
// Возвращает список пулов адресов VPC.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceListWithResponse(ctx context.Context, vpcId string, params *AddressPoolServiceListParams, reqEditors ...RequestEditorFn) (*AddressPoolServiceListResponse, error)
// AddressPoolServiceCreateWithBodyWithResponse performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает пул адресов в VPC.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddressPoolServiceCreateResponse, error)
// AddressPoolServiceCreateWithResponse performs a POST /v1/vpcs/{vpcId}/addressPools (the `AddressPoolServiceCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Создает пул адресов в VPC.
AddressPoolServiceCreateWithResponse(ctx context.Context, vpcId string, body AddressPoolServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AddressPoolServiceCreateResponse, error)
// AddressPoolServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceDelete` operationId) request.
//
// Удаляет пул адресов.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceDeleteWithResponse(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*AddressPoolServiceDeleteResponse, error)
// AddressPoolServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceGet` operationId) request.
//
// Возвращает сведения о пуле адресов.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, reqEditors ...RequestEditorFn) (*AddressPoolServiceGetResponse, error)
// AddressPoolServiceUpdateWithBodyWithResponse performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет пул адресов.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, addressPoolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddressPoolServiceUpdateResponse, error)
// AddressPoolServiceUpdateWithResponse performs a PATCH /v1/vpcs/{vpcId}/addressPools/{addressPoolId} (the `AddressPoolServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Обновляет пул адресов.
AddressPoolServiceUpdateWithResponse(ctx context.Context, vpcId string, addressPoolId string, body AddressPoolServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*AddressPoolServiceUpdateResponse, error)
// AllocationServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations (the `AllocationServiceList` operationId) request.
//
// Возвращает список аллокаций пула адресов.
//
// Returns a wrapper object for the known response body format(s).
AllocationServiceListWithResponse(ctx context.Context, vpcId string, addressPoolId string, params *AllocationServiceListParams, reqEditors ...RequestEditorFn) (*AllocationServiceListResponse, error)
// AllocationServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/allocations/{allocationId} (the `AllocationServiceGet` operationId) request.
//
// Возвращает информацию об аллокации из пула адресов.
//
// Returns a wrapper object for the known response body format(s).
AllocationServiceGetWithResponse(ctx context.Context, vpcId string, addressPoolId string, allocationId string, reqEditors ...RequestEditorFn) (*AllocationServiceGetResponse, error)
// AddressPoolServiceListOperationsWithResponse performs a GET /v1/vpcs/{vpcId}/addressPools/{addressPoolId}/operations (the `AddressPoolServiceListOperations` operationId) request.
//
// Возвращает список операций, выполненных над указанным пулом адресов.
//
// Returns a wrapper object for the known response body format(s).
AddressPoolServiceListOperationsWithResponse(ctx context.Context, vpcId string, addressPoolId string, params *AddressPoolServiceListOperationsParams, reqEditors ...RequestEditorFn) (*AddressPoolServiceListOperationsResponse, error)
// VpcRoutingServiceListWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceList` operationId) request.
//
// Возвращает список статических маршрутов.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceListWithResponse(ctx context.Context, vpcId string, params *VpcRoutingServiceListParams, reqEditors ...RequestEditorFn) (*VpcRoutingServiceListResponse, error)
// VpcRoutingServiceCreateWithBodyWithResponse performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создает статический маршрут.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceCreateWithBodyWithResponse(ctx context.Context, vpcId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcRoutingServiceCreateResponse, error)
// VpcRoutingServiceCreateWithResponse performs a POST /v1/vpcs/{vpcId}/routes/static (the `VpcRoutingServiceCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Создает статический маршрут.
VpcRoutingServiceCreateWithResponse(ctx context.Context, vpcId string, body VpcRoutingServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcRoutingServiceCreateResponse, error)
// VpcRoutingServiceDeleteWithResponse performs a DELETE /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceDelete` operationId) request.
//
// Удаляет статический маршрут.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceDeleteWithResponse(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*VpcRoutingServiceDeleteResponse, error)
// VpcRoutingServiceGetWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceGet` operationId) request.
//
// Возвращает статический маршрут.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceGetWithResponse(ctx context.Context, vpcId string, staticRouteId string, reqEditors ...RequestEditorFn) (*VpcRoutingServiceGetResponse, error)
// VpcRoutingServiceUpdateWithBodyWithResponse performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Обновляет статический маршрут.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceUpdateWithBodyWithResponse(ctx context.Context, vpcId string, staticRouteId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VpcRoutingServiceUpdateResponse, error)
// VpcRoutingServiceUpdateWithResponse performs a PUT /v1/vpcs/{vpcId}/routes/static/{staticRouteId} (the `VpcRoutingServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Обновляет статический маршрут.
VpcRoutingServiceUpdateWithResponse(ctx context.Context, vpcId string, staticRouteId string, body VpcRoutingServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*VpcRoutingServiceUpdateResponse, error)
// VpcRoutingServiceListOperationsWithResponse performs a GET /v1/vpcs/{vpcId}/routes/static/{staticRouteId}/operations (the `VpcRoutingServiceListOperations` operationId) request.
//
// Возвращает список операций для статического маршрута.
//
// Returns a wrapper object for the known response body format(s).
VpcRoutingServiceListOperationsWithResponse(ctx context.Context, vpcId string, staticRouteId string, params *VpcRoutingServiceListOperationsParams, reqEditors ...RequestEditorFn) (*VpcRoutingServiceListOperationsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAddressPoolRequest ¶
type CreateAddressPoolRequest struct {
// Cidr CIDR пула адресов.
//
// Example: 192.168.0.0/24
Cidr string `json:"cidr"`
// Description Описание пула адресов. Максимум 256 символов.
//
// Example: Address pool for production VPN gateways
Description *string `json:"description,omitempty"`
// Name Название пула адресов.
//
// Example: my-address-pool
Name string `json:"name"`
}
CreateAddressPoolRequest Создает пул адресов.
type CreateStaticRouteRequest ¶
type CreateStaticRouteRequest struct {
// Description Описание маршрута.
//
// Example: Route to internal network
Description *string `json:"description,omitempty"`
// NextHop Next Hop маршрута.
NextHop RouteNextHop `json:"nextHop"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
// Subnet Адрес назначения.
//
// Example: 192.168.0.0/24
Subnet string `json:"subnet"`
}
CreateStaticRouteRequest Запрос на создание статического маршрута.
type CreateVPCRequest ¶
type CreateVPCRequest struct {
// Description Описание создаваемой VPC.
//
// Example: Main VPC for production
Description *string `json:"description,omitempty"`
// Name Название создаваемой VPC.
//
// Example: my-vpc
Name string `json:"name"`
// ProjectId ID проекта, в котором создается VPC.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
}
CreateVPCRequest defines model for CreateVPCRequest.
type CreateVipRequest ¶
type CreateVipRequest struct {
// Description Описание виртуального IP-адреса.
//
// Example: Main VIP for production
Description *string `json:"description,omitempty"`
// Ip IP-адрес. Если не указан, генерируется автоматически из диапазона подсети.
//
// Example: 192.168.0.1
Ip *string `json:"ip,omitempty"`
// Name Название виртуального IP-адреса.
//
// Example: my-vip
Name string `json:"name"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
// Target Целевая платформа, в которой будет создан виртуальный IP-адрес.
Target VipTarget `json:"target"`
}
CreateVipRequest Запрос на создание виртуального IP-адреса.
type GoogleProtobufAny ¶
type GoogleProtobufAny struct {
// Type The type of the serialized message.
Type *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
GoogleProtobufAny Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
func (GoogleProtobufAny) Get ¶
func (a GoogleProtobufAny) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for GoogleProtobufAny. Returns the specified element and whether it was found
func (GoogleProtobufAny) MarshalJSON ¶
func (a GoogleProtobufAny) MarshalJSON() ([]byte, error)
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
func (*GoogleProtobufAny) Set ¶
func (a *GoogleProtobufAny) Set(fieldName string, value interface{})
Setter for additional properties for GoogleProtobufAny
func (*GoogleProtobufAny) UnmarshalJSON ¶
func (a *GoogleProtobufAny) UnmarshalJSON(b []byte) error
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InstanceReference ¶
type InstanceReference struct {
// InstanceId Идентификатор ресурса, использующего адрес из пула адресов.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
InstanceId *string `json:"instanceId,omitempty"`
// ProductIntName Название продукта, которому принадлежит ресурс.
//
// Example: vpn
ProductIntName *string `json:"productIntName,omitempty"`
}
InstanceReference Ссылка на аллокацию или ресурс, использующий пул адресов.
type Interface ¶
type Interface struct {
// Id Идентификатор интерфейса.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id string `json:"id"`
}
Interface Сетевой интерфейс.
type ListAddressPoolsOperationResponse ¶
type ListAddressPoolsOperationResponse struct {
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Operations Список операций.
Operations *[]Operation `json:"operations,omitempty"`
}
ListAddressPoolsOperationResponse Ответ со списком операций, выполненных над пулом адресов.
type ListAddressPoolsResponse ¶
type ListAddressPoolsResponse struct {
// AddressPools Список пулов адресов.
AddressPools *[]AddressPool `json:"addressPools,omitempty"`
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
}
ListAddressPoolsResponse Ответ со списком пулов адресов.
type ListAllocationsResponse ¶
type ListAllocationsResponse struct {
// Allocations Список аллокаций.
Allocations *[]Allocation `json:"allocations,omitempty"`
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
}
ListAllocationsResponse Ответ со списком аллокаций.
type ListStaticRoutesOperationResponse ¶
type ListStaticRoutesOperationResponse struct {
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Operations Список операций.
Operations *[]Operation `json:"operations,omitempty"`
// TotalCount Общее количество операций.
//
// Example: 100
TotalCount *uint32 `json:"totalCount,omitempty"`
}
ListStaticRoutesOperationResponse Ответ со списком операций для статического маршрута.
type ListStaticRoutesResponse ¶
type ListStaticRoutesResponse struct {
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Routes Список маршрутов.
Routes *[]StaticRoute `json:"routes,omitempty"`
// TotalCount Общее количество маршрутов.
//
// Example: 100
TotalCount *uint32 `json:"totalCount,omitempty"`
}
ListStaticRoutesResponse Ответ со списком статических маршрутов.
type ListVPCResponse ¶
type ListVPCResponse struct {
// NextPageToken Токен для получения следующей страницы результатов.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Vpcs Список найденных VPC.
Vpcs *[]Vpc `json:"vpcs,omitempty"`
}
ListVPCResponse defines model for ListVPCResponse.
type ListVipsOperationResponse ¶
type ListVipsOperationResponse struct {
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Operations Список операций.
Operations *[]Operation `json:"operations,omitempty"`
}
ListVipsOperationResponse Ответ со списком операций для виртуального IP-адреса.
type ListVipsResponse ¶
type ListVipsResponse struct {
// NextPageToken Токен следующей страницы.
//
// Example: j8eAMouA15uA0VHPZeicNWa7SL
NextPageToken *string `json:"nextPageToken,omitempty"`
// Vips Список виртуальных IP-адресов.
Vips *[]Vip `json:"vips,omitempty"`
}
ListVipsResponse Ответ со списком виртуальных IP-адресов.
type MagicRouter ¶
type MagicRouter struct {
// Id Идентификатор Magic Router.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id string `json:"id"`
}
MagicRouter Magic Router.
type NextHopIP ¶
type NextHopIP struct {
// Address IPv4-адрес Next Hop в подсети исходной VPC.
//
// Example: 192.168.0.10
Address string `json:"address"`
// Announce Признак распространения маршрута в другие зоны доступности этой VPC.
// Задается при создании маршрута. По умолчанию false.
// Укажите true, чтобы трафик из других зон доступности мог направляться к сети назначения через указанный Next Hop.
//
// Example: false
Announce *bool `json:"announce,omitempty"`
}
NextHopIP Параметры IP-адреса, используемого как Next Hop статического маршрута.
type NextHopMagicRouter ¶
type NextHopMagicRouter struct {
// AzName Зона доступности.
//
// Example: ru.AZ-1
AzName string `json:"azName"`
// MagicRouter Magic Router.
MagicRouter MagicRouter `json:"magicRouter"`
}
NextHopMagicRouter Next Hop маршрута — Magic Router.
type NextHopVIP ¶
type NextHopVIP struct {
// Vips Список виртуальных IP-адресов.
Vips []VipShort `json:"vips"`
}
NextHopVIP Next Hop маршрута — виртуальный IP-адрес.
type NextHopVirtualMachine ¶
type NextHopVirtualMachine struct {
// Interface Сетевой интерфейс.
Interface Interface `json:"interface"`
// VirtualMachine Виртуальная машина.
VirtualMachine VirtualMachine `json:"virtualMachine"`
}
NextHopVirtualMachine Next Hop маршрута — интерфейс виртуальной машины.
type Operation ¶
type Operation struct {
// CreatedAt Время создания операции.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Описание операции. От 0 до 255 символов.
Description *string `json:"description,omitempty"`
// Done Флаг завершенности операции.
// Если значение `false`, то операция в процессе выполнения.
// Если значение `true`, то операция завершена и поле `error` может быть заполнено.
Done *bool `json:"done,omitempty"`
// Error Результат операции в случае ошибки.
Error *Status `json:"error,omitempty"`
// Id Идентификатор операции.
Id *string `json:"id,omitempty"`
// ResourceId Уникальный идентификатор ресурса, над которым производится операция.
// Пример: 54295782-7aef-43e6-b33b-c9735938677a
ResourceId *string `json:"resourceId,omitempty"`
// ResourceName Информация о ресурсе, над которым производится операция.
// Строится следующим образом: urn:cloud:SERVICE:ZONE_OPT:PROJECT_OPT:RESOURCE_TYPE_OPT.
// Пример: urn:cloud:lbaas::54295782-7aef-43e6-b33b-c9735938677a:backend
ResourceName *string `json:"resourceName,omitempty"`
// UpdatedAt Время последнего изменения операции.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Operation defines model for Operation.
type OperationServiceGetResponse ¶
type OperationServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseOperationServiceGetResponse ¶
func ParseOperationServiceGetResponse(rsp *http.Response) (*OperationServiceGetResponse, error)
ParseOperationServiceGetResponse parses an HTTP response from a OperationServiceGetWithResponse call
func (OperationServiceGetResponse) ContentType ¶
func (r OperationServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OperationServiceGetResponse) GetBody ¶
func (r OperationServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OperationServiceGetResponse) GetJSON200 ¶
func (r OperationServiceGetResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (OperationServiceGetResponse) GetJSONDefault ¶
func (r OperationServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (OperationServiceGetResponse) Status ¶
func (r OperationServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (OperationServiceGetResponse) StatusCode ¶
func (r OperationServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RouteNextHop ¶
type RouteNextHop struct {
// Ip IP-адрес шлюза для передачи трафика по статическому маршруту.
Ip *NextHopIP `json:"ip,omitempty"`
// MagicRouter Next Hop маршрута — Magic Router.
MagicRouter *NextHopMagicRouter `json:"magicRouter,omitempty"`
// Vip Next Hop маршрута — виртуальный IP-адрес.
Vip *NextHopVIP `json:"vip,omitempty"`
// VirtualMachine Next Hop маршрута — интерфейс виртуальной машины.
VirtualMachine *NextHopVirtualMachine `json:"virtualMachine,omitempty"`
}
RouteNextHop Next Hop маршрута.
type StaticRoute ¶
type StaticRoute struct {
// CreatedAt Время создания маршрута (только для чтения).
//
// Example: 2024-01-15T10:30:00Z
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Описание маршрута.
//
// Example: Route to internal network
Description *string `json:"description,omitempty"`
// Id Уникальный идентификатор маршрута.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id *string `json:"id,omitempty"`
// NextHop Next Hop маршрута.
NextHop RouteNextHop `json:"nextHop"`
// NextHopType Тип Next Hop.
//
// Example: ROUTE_NEXT_HOP_TYPE_MAGIC_ROUTER
NextHopType *StaticRouteNextHopType `json:"nextHopType,omitempty"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
// Status Текущий статус маршрута (только для чтения).
//
// Example: ROUTE_STATUS_CREATED
Status *StaticRouteStatus `json:"status,omitempty"`
// Subnet Адрес назначения.
//
// Example: 192.168.0.0/24
Subnet string `json:"subnet"`
// Type Тип маршрута (только для чтения).
//
// Example: ROUTE_TYPE_CLIENT
Type *StaticRouteType `json:"type,omitempty"`
// UpdatedAt Время последнего обновления маршрута (только для чтения).
//
// Example: 2024-01-15T10:30:00Z
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// VpcId Идентификатор VPC, в которой создан маршрут.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
VpcId string `json:"vpcId"`
}
StaticRoute Статический маршрут в VPC.
type StaticRouteNextHopType ¶
type StaticRouteNextHopType string
StaticRouteNextHopType Тип Next Hop.
Example: ROUTE_NEXT_HOP_TYPE_MAGIC_ROUTER
const ( ROUTENEXTHOPTYPEIP StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_IP" ROUTENEXTHOPTYPEMAGICROUTER StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_MAGIC_ROUTER" ROUTENEXTHOPTYPEUNSPECIFIED StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_UNSPECIFIED" ROUTENEXTHOPTYPEVIP StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_VIP" ROUTENEXTHOPTYPEVIRTUALMACHINE StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_VIRTUAL_MACHINE" ROUTENEXTHOPTYPEVPC StaticRouteNextHopType = "ROUTE_NEXT_HOP_TYPE_VPC" )
Defines values for StaticRouteNextHopType.
func (StaticRouteNextHopType) Valid ¶
func (e StaticRouteNextHopType) Valid() bool
Valid indicates whether the value is a known member of the StaticRouteNextHopType enum.
type StaticRouteStatus ¶
type StaticRouteStatus string
StaticRouteStatus Текущий статус маршрута (только для чтения).
Example: ROUTE_STATUS_CREATED
const ( ROUTESTATUSCREATED StaticRouteStatus = "ROUTE_STATUS_CREATED" ROUTESTATUSCREATING StaticRouteStatus = "ROUTE_STATUS_CREATING" ROUTESTATUSDELETED StaticRouteStatus = "ROUTE_STATUS_DELETED" ROUTESTATUSDELETING StaticRouteStatus = "ROUTE_STATUS_DELETING" ROUTESTATUSFAILEDCREATE StaticRouteStatus = "ROUTE_STATUS_FAILED_CREATE" ROUTESTATUSFAILEDDELETE StaticRouteStatus = "ROUTE_STATUS_FAILED_DELETE" ROUTESTATUSNEW StaticRouteStatus = "ROUTE_STATUS_NEW" ROUTESTATUSUNSPECIFIED StaticRouteStatus = "ROUTE_STATUS_UNSPECIFIED" )
Defines values for StaticRouteStatus.
func (StaticRouteStatus) Valid ¶
func (e StaticRouteStatus) Valid() bool
Valid indicates whether the value is a known member of the StaticRouteStatus enum.
type StaticRouteType ¶
type StaticRouteType string
StaticRouteType Тип маршрута (только для чтения).
Example: ROUTE_TYPE_CLIENT
const ( ROUTETYPEADMIN StaticRouteType = "ROUTE_TYPE_ADMIN" ROUTETYPECLIENT StaticRouteType = "ROUTE_TYPE_CLIENT" ROUTETYPESERVICE StaticRouteType = "ROUTE_TYPE_SERVICE" ROUTETYPEUNSPECIFIED StaticRouteType = "ROUTE_TYPE_UNSPECIFIED" )
Defines values for StaticRouteType.
func (StaticRouteType) Valid ¶
func (e StaticRouteType) Valid() bool
Valid indicates whether the value is a known member of the StaticRouteType enum.
type Status ¶
type Status struct {
// Code The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
Code *int32 `json:"code,omitempty"`
// Details A list of messages that carry the error details. There is a common set of message types for APIs to use.
Details *[]GoogleProtobufAny `json:"details,omitempty"`
// Message A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
Message *string `json:"message,omitempty"`
}
Status The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
type UpdateAddressPoolRequest ¶
type UpdateAddressPoolRequest struct {
// Description Новое описание пула адресов. Если поле не передано, описание не меняется.
// Пустое значение не допускается. Максимум 256 символов.
//
// Example: Address pool for production VPN gateways
Description *string `json:"description,omitempty"`
// Name Новое название пула адресов. Если поле не передано, название не меняется.
// Пустое значение не допускается.
//
// Example: my-address-pool
Name *string `json:"name,omitempty"`
}
UpdateAddressPoolRequest Обновляет пул адресов. CIDR нельзя изменить после создания,
поэтому поле cidr отсутствует в запросе.
type UpdateStaticRouteRequest ¶
type UpdateStaticRouteRequest struct {
// Description Новое описание маршрута.
//
// Example: Route to internal network
Description *string `json:"description,omitempty"`
}
UpdateStaticRouteRequest Запрос на обновление статического маршрута.
type UpdateVPCRequest ¶
type UpdateVPCRequest struct {
// Description Новое описание VPC.
//
// Example: Main VPC for production
Description *string `json:"description,omitempty"`
// Name Новое название VPC.
//
// Example: my-vpc
Name *string `json:"name,omitempty"`
}
UpdateVPCRequest defines model for UpdateVPCRequest.
type UpdateVipRequest ¶
type UpdateVipRequest struct {
// Description Новое описание виртуального IP-адреса.
//
// Example: Main VIP for production
Description *string `json:"description,omitempty"`
// Name Новое название виртуального IP-адреса.
//
// Example: my-vip
Name string `json:"name"`
// Target Новые параметры целевой платформы для обновления виртуального IP-адреса.
// Если не указан, виртуальный IP-адрес будет снят со всех интерфейсов, на которых он был назначен.
Target *VipTarget `json:"target,omitempty"`
}
UpdateVipRequest Запрос на обновление виртуального IP-адреса.
type Vip ¶
type Vip struct {
// CreatedAt Время создания.
//
// Example: 2024-01-15T10:30:00Z
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Описание виртуального IP-адреса.
//
// Example: Main VIP for production
Description *string `json:"description,omitempty"`
// Id Идентификатор виртуального IP-адреса.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id *string `json:"id,omitempty"`
// Ip IP-адрес.
//
// Example: 192.168.0.1
Ip *string `json:"ip,omitempty"`
// Name Название виртуального IP-адреса.
//
// Example: my-vip
Name string `json:"name"`
// ProjectId Идентификатор проекта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
// Status Статус виртуального IP-адреса.
//
// Example: VIP_STATUS_CREATED
Status *VipStatus `json:"status,omitempty"`
// SubnetType Тип подсети, в которой выделен виртуальный IP-адрес.
//
// Example: VIP_SUBNET_TYPE_VIRTUALIZATION
SubnetType *VipSubnetType `json:"subnetType,omitempty"`
// Target Целевая платформа, в которой создан виртуальный IP-адрес.
Target VipTarget `json:"target"`
// UpdatedAt Время последнего обновления.
//
// Example: 2024-01-15T10:30:00Z
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// VpcId Идентификатор VPC. Отсутствует, если IP для виртуального IP-адреса выделен в изолированной подсети.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
VpcId *string `json:"vpcId,omitempty"`
}
Vip Виртуальный IP-адрес.
type VipShort ¶
type VipShort struct {
// Id Идентификатор виртуального IP-адреса.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id string `json:"id"`
}
VipShort Виртуальный IP-адрес.
type VipStatus ¶
type VipStatus string
VipStatus Статус виртуального IP-адреса.
Example: VIP_STATUS_CREATED
const ( VIPSTATUSCREATED VipStatus = "VIP_STATUS_CREATED" VIPSTATUSCREATING VipStatus = "VIP_STATUS_CREATING" VIPSTATUSDELETED VipStatus = "VIP_STATUS_DELETED" VIPSTATUSDELETING VipStatus = "VIP_STATUS_DELETING" VIPSTATUSFAILEDCREATE VipStatus = "VIP_STATUS_FAILED_CREATE" VIPSTATUSFAILEDDELETE VipStatus = "VIP_STATUS_FAILED_DELETE" VIPSTATUSFAILEDUPDATE VipStatus = "VIP_STATUS_FAILED_UPDATE" VIPSTATUSNEW VipStatus = "VIP_STATUS_NEW" VIPSTATUSUNSPECIFIED VipStatus = "VIP_STATUS_UNSPECIFIED" VIPSTATUSUPDATING VipStatus = "VIP_STATUS_UPDATING" )
Defines values for VipStatus.
type VipSubnetType ¶
type VipSubnetType string
VipSubnetType Тип подсети, в которой выделен виртуальный IP-адрес.
Example: VIP_SUBNET_TYPE_VIRTUALIZATION
const ( VIPSUBNETTYPEBAREMETAL VipSubnetType = "VIP_SUBNET_TYPE_BAREMETAL" VIPSUBNETTYPEUNSPECIFIED VipSubnetType = "VIP_SUBNET_TYPE_UNSPECIFIED" VIPSUBNETTYPEVIRTUALIZATION VipSubnetType = "VIP_SUBNET_TYPE_VIRTUALIZATION" )
Defines values for VipSubnetType.
func (VipSubnetType) Valid ¶
func (e VipSubnetType) Valid() bool
Valid indicates whether the value is a known member of the VipSubnetType enum.
type VipTarget ¶
type VipTarget struct {
// Baremetal Виртуальный IP-адрес в подсети Bare Metal.
Baremetal *Baremetal `json:"baremetal,omitempty"`
// Virtualization Виртуальный IP-адрес в виртуальной подсети.
Virtualization *Virtualization `json:"virtualization,omitempty"`
}
VipTarget Целевая платформа для создания виртуального IP-адреса.
type VirtualIPServiceCreateJSONRequestBody ¶
type VirtualIPServiceCreateJSONRequestBody = CreateVipRequest
VirtualIPServiceCreateJSONRequestBody defines body for VirtualIPServiceCreate for application/json ContentType.
type VirtualIPServiceCreateResponse ¶
type VirtualIPServiceCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceCreateResponse ¶
func ParseVirtualIPServiceCreateResponse(rsp *http.Response) (*VirtualIPServiceCreateResponse, error)
ParseVirtualIPServiceCreateResponse parses an HTTP response from a VirtualIPServiceCreateWithResponse call
func (VirtualIPServiceCreateResponse) ContentType ¶
func (r VirtualIPServiceCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceCreateResponse) GetBody ¶
func (r VirtualIPServiceCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceCreateResponse) GetJSON200 ¶
func (r VirtualIPServiceCreateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceCreateResponse) GetJSONDefault ¶
func (r VirtualIPServiceCreateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceCreateResponse) Status ¶
func (r VirtualIPServiceCreateResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceCreateResponse) StatusCode ¶
func (r VirtualIPServiceCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualIPServiceDeleteResponse ¶
type VirtualIPServiceDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceDeleteResponse ¶
func ParseVirtualIPServiceDeleteResponse(rsp *http.Response) (*VirtualIPServiceDeleteResponse, error)
ParseVirtualIPServiceDeleteResponse parses an HTTP response from a VirtualIPServiceDeleteWithResponse call
func (VirtualIPServiceDeleteResponse) ContentType ¶
func (r VirtualIPServiceDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceDeleteResponse) GetBody ¶
func (r VirtualIPServiceDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceDeleteResponse) GetJSON200 ¶
func (r VirtualIPServiceDeleteResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceDeleteResponse) GetJSONDefault ¶
func (r VirtualIPServiceDeleteResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceDeleteResponse) Status ¶
func (r VirtualIPServiceDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceDeleteResponse) StatusCode ¶
func (r VirtualIPServiceDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualIPServiceGetResponse ¶
type VirtualIPServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Vip
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceGetResponse ¶
func ParseVirtualIPServiceGetResponse(rsp *http.Response) (*VirtualIPServiceGetResponse, error)
ParseVirtualIPServiceGetResponse parses an HTTP response from a VirtualIPServiceGetWithResponse call
func (VirtualIPServiceGetResponse) ContentType ¶
func (r VirtualIPServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceGetResponse) GetBody ¶
func (r VirtualIPServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceGetResponse) GetJSON200 ¶
func (r VirtualIPServiceGetResponse) GetJSON200() *Vip
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceGetResponse) GetJSONDefault ¶
func (r VirtualIPServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceGetResponse) Status ¶
func (r VirtualIPServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceGetResponse) StatusCode ¶
func (r VirtualIPServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualIPServiceListOperationsParams ¶
type VirtualIPServiceListOperationsParams struct {
// PageSize Размер страницы.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен страницы.
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
VirtualIPServiceListOperationsParams defines parameters for VirtualIPServiceListOperations.
type VirtualIPServiceListOperationsResponse ¶
type VirtualIPServiceListOperationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListVipsOperationResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceListOperationsResponse ¶
func ParseVirtualIPServiceListOperationsResponse(rsp *http.Response) (*VirtualIPServiceListOperationsResponse, error)
ParseVirtualIPServiceListOperationsResponse parses an HTTP response from a VirtualIPServiceListOperationsWithResponse call
func (VirtualIPServiceListOperationsResponse) ContentType ¶
func (r VirtualIPServiceListOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceListOperationsResponse) GetBody ¶
func (r VirtualIPServiceListOperationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceListOperationsResponse) GetJSON200 ¶
func (r VirtualIPServiceListOperationsResponse) GetJSON200() *ListVipsOperationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceListOperationsResponse) GetJSONDefault ¶
func (r VirtualIPServiceListOperationsResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceListOperationsResponse) Status ¶
func (r VirtualIPServiceListOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceListOperationsResponse) StatusCode ¶
func (r VirtualIPServiceListOperationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualIPServiceListParams ¶
type VirtualIPServiceListParams struct {
// ProjectId Идентификатор проекта для получения списка виртуальных IP-адресов.
ProjectId string `form:"projectId" json:"projectId"`
// PageSize Максимальное количество элементов на странице.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы).
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
VirtualIPServiceListParams defines parameters for VirtualIPServiceList.
type VirtualIPServiceListResponse ¶
type VirtualIPServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListVipsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceListResponse ¶
func ParseVirtualIPServiceListResponse(rsp *http.Response) (*VirtualIPServiceListResponse, error)
ParseVirtualIPServiceListResponse parses an HTTP response from a VirtualIPServiceListWithResponse call
func (VirtualIPServiceListResponse) ContentType ¶
func (r VirtualIPServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceListResponse) GetBody ¶
func (r VirtualIPServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceListResponse) GetJSON200 ¶
func (r VirtualIPServiceListResponse) GetJSON200() *ListVipsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceListResponse) GetJSONDefault ¶
func (r VirtualIPServiceListResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceListResponse) Status ¶
func (r VirtualIPServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceListResponse) StatusCode ¶
func (r VirtualIPServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualIPServiceUpdateJSONRequestBody ¶
type VirtualIPServiceUpdateJSONRequestBody = UpdateVipRequest
VirtualIPServiceUpdateJSONRequestBody defines body for VirtualIPServiceUpdate for application/json ContentType.
type VirtualIPServiceUpdateResponse ¶
type VirtualIPServiceUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVirtualIPServiceUpdateResponse ¶
func ParseVirtualIPServiceUpdateResponse(rsp *http.Response) (*VirtualIPServiceUpdateResponse, error)
ParseVirtualIPServiceUpdateResponse parses an HTTP response from a VirtualIPServiceUpdateWithResponse call
func (VirtualIPServiceUpdateResponse) ContentType ¶
func (r VirtualIPServiceUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VirtualIPServiceUpdateResponse) GetBody ¶
func (r VirtualIPServiceUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VirtualIPServiceUpdateResponse) GetJSON200 ¶
func (r VirtualIPServiceUpdateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VirtualIPServiceUpdateResponse) GetJSONDefault ¶
func (r VirtualIPServiceUpdateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VirtualIPServiceUpdateResponse) Status ¶
func (r VirtualIPServiceUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (VirtualIPServiceUpdateResponse) StatusCode ¶
func (r VirtualIPServiceUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtualMachine ¶
type VirtualMachine struct {
// Id Идентификатор виртуальной машины.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id string `json:"id"`
}
VirtualMachine Виртуальная машина.
type Virtualization ¶
type Virtualization struct {
// SubnetId Идентификатор подсети, в которой размещается виртуальный IP-адрес.
// Не может быть изменен после создания виртуального IP-адреса.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
SubnetId string `json:"subnetId"`
// VmInterfaceIds Список идентификаторов интерфейсов виртуальных машин, на которые будет назначен виртуальный IP-адрес.
//
// Example: ["496e40f7-cc4b-4fa4-b42a-8cd2c9360716","496e40f7-cc4b-4fa4-b42a-8cd2c9360716"]
VmInterfaceIds *[]string `json:"vmInterfaceIds,omitempty"`
}
Virtualization defines model for Virtualization.
type Vpc ¶
type Vpc struct {
// CreatedAt Дата и время создания VPC.
//
// Example: 2024-01-15T10:30:00Z
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CustomerId Идентификатор клиента (владельца VPC).
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
CustomerId *string `json:"customerId,omitempty"`
// Default Флаг, указывающий является ли VPC дефолтной.
//
// Example: true
Default *bool `json:"default,omitempty"`
// Description Описание VPC.
//
// Example: Main VPC for production
Description *string `json:"description,omitempty"`
// Id Уникальный идентификатор VPC.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
Id *string `json:"id,omitempty"`
// Name Название VPC.
//
// Example: my-vpc
Name string `json:"name"`
// ProductInstanceId Идентификатор экземпляра продукта.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProductInstanceId *string `json:"productInstanceId,omitempty"`
// ProjectId Идентификатор проекта, к которому относится VPC.
//
// Example: 496e40f7-cc4b-4fa4-b42a-8cd2c9360716
ProjectId string `json:"projectId"`
// Type Тип VPC (клиентский/сервисный).
//
// Example: VPC_TYPE_CLIENT
Type *VpcType `json:"type,omitempty"`
// UpdatedAt Дата и время последнего обновления VPC.
//
// Example: 2024-01-15T10:30:00Z
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Vpc defines model for Vpc.
type VpcRoutingServiceCreateJSONRequestBody ¶
type VpcRoutingServiceCreateJSONRequestBody = CreateStaticRouteRequest
VpcRoutingServiceCreateJSONRequestBody defines body for VpcRoutingServiceCreate for application/json ContentType.
type VpcRoutingServiceCreateResponse ¶
type VpcRoutingServiceCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceCreateResponse ¶
func ParseVpcRoutingServiceCreateResponse(rsp *http.Response) (*VpcRoutingServiceCreateResponse, error)
ParseVpcRoutingServiceCreateResponse parses an HTTP response from a VpcRoutingServiceCreateWithResponse call
func (VpcRoutingServiceCreateResponse) ContentType ¶
func (r VpcRoutingServiceCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceCreateResponse) GetBody ¶
func (r VpcRoutingServiceCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceCreateResponse) GetJSON200 ¶
func (r VpcRoutingServiceCreateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceCreateResponse) GetJSONDefault ¶
func (r VpcRoutingServiceCreateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceCreateResponse) Status ¶
func (r VpcRoutingServiceCreateResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceCreateResponse) StatusCode ¶
func (r VpcRoutingServiceCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcRoutingServiceDeleteResponse ¶
type VpcRoutingServiceDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceDeleteResponse ¶
func ParseVpcRoutingServiceDeleteResponse(rsp *http.Response) (*VpcRoutingServiceDeleteResponse, error)
ParseVpcRoutingServiceDeleteResponse parses an HTTP response from a VpcRoutingServiceDeleteWithResponse call
func (VpcRoutingServiceDeleteResponse) ContentType ¶
func (r VpcRoutingServiceDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceDeleteResponse) GetBody ¶
func (r VpcRoutingServiceDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceDeleteResponse) GetJSON200 ¶
func (r VpcRoutingServiceDeleteResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceDeleteResponse) GetJSONDefault ¶
func (r VpcRoutingServiceDeleteResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceDeleteResponse) Status ¶
func (r VpcRoutingServiceDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceDeleteResponse) StatusCode ¶
func (r VpcRoutingServiceDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcRoutingServiceGetResponse ¶
type VpcRoutingServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *StaticRoute
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceGetResponse ¶
func ParseVpcRoutingServiceGetResponse(rsp *http.Response) (*VpcRoutingServiceGetResponse, error)
ParseVpcRoutingServiceGetResponse parses an HTTP response from a VpcRoutingServiceGetWithResponse call
func (VpcRoutingServiceGetResponse) ContentType ¶
func (r VpcRoutingServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceGetResponse) GetBody ¶
func (r VpcRoutingServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceGetResponse) GetJSON200 ¶
func (r VpcRoutingServiceGetResponse) GetJSON200() *StaticRoute
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceGetResponse) GetJSONDefault ¶
func (r VpcRoutingServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceGetResponse) Status ¶
func (r VpcRoutingServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceGetResponse) StatusCode ¶
func (r VpcRoutingServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcRoutingServiceListOperationsParams ¶
type VpcRoutingServiceListOperationsParams struct {
// PageSize Размер страницы.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен страницы.
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
}
VpcRoutingServiceListOperationsParams defines parameters for VpcRoutingServiceListOperations.
type VpcRoutingServiceListOperationsResponse ¶
type VpcRoutingServiceListOperationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListStaticRoutesOperationResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceListOperationsResponse ¶
func ParseVpcRoutingServiceListOperationsResponse(rsp *http.Response) (*VpcRoutingServiceListOperationsResponse, error)
ParseVpcRoutingServiceListOperationsResponse parses an HTTP response from a VpcRoutingServiceListOperationsWithResponse call
func (VpcRoutingServiceListOperationsResponse) ContentType ¶
func (r VpcRoutingServiceListOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceListOperationsResponse) GetBody ¶
func (r VpcRoutingServiceListOperationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceListOperationsResponse) GetJSON200 ¶
func (r VpcRoutingServiceListOperationsResponse) GetJSON200() *ListStaticRoutesOperationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceListOperationsResponse) GetJSONDefault ¶
func (r VpcRoutingServiceListOperationsResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceListOperationsResponse) Status ¶
func (r VpcRoutingServiceListOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceListOperationsResponse) StatusCode ¶
func (r VpcRoutingServiceListOperationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcRoutingServiceListParams ¶
type VpcRoutingServiceListParams struct {
// PageSize Максимальное количество элементов на странице.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы).
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// Filter Поле filter - это [cel-выражениe](https://github.com/google/cel-spec/blob/master/doc/langdef.md), состоящее из фильтрующих выражений, каждое выражение соединяется оператором && (логическое и).
// Поддерживаемые поля:
// 1. ids []string опциональное. Поддерживаемые операторы: 'in'.
// Пример выражения: ids in ['5e45ad32-7fca-4dd8-bab6-f334c9f8e553', "4507e4d1-0e92-438b-9c2e-2a5b91f2f755"].
// 2. next_hop_types []string опциональное. Поддерживаемые операторы: 'in'.
// Пример выражения: next_hop_types in ['ROUTE_NEXT_HOP_TYPE_IP'].
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}
VpcRoutingServiceListParams defines parameters for VpcRoutingServiceList.
type VpcRoutingServiceListResponse ¶
type VpcRoutingServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListStaticRoutesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceListResponse ¶
func ParseVpcRoutingServiceListResponse(rsp *http.Response) (*VpcRoutingServiceListResponse, error)
ParseVpcRoutingServiceListResponse parses an HTTP response from a VpcRoutingServiceListWithResponse call
func (VpcRoutingServiceListResponse) ContentType ¶
func (r VpcRoutingServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceListResponse) GetBody ¶
func (r VpcRoutingServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceListResponse) GetJSON200 ¶
func (r VpcRoutingServiceListResponse) GetJSON200() *ListStaticRoutesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceListResponse) GetJSONDefault ¶
func (r VpcRoutingServiceListResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceListResponse) Status ¶
func (r VpcRoutingServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceListResponse) StatusCode ¶
func (r VpcRoutingServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcRoutingServiceUpdateJSONRequestBody ¶
type VpcRoutingServiceUpdateJSONRequestBody = UpdateStaticRouteRequest
VpcRoutingServiceUpdateJSONRequestBody defines body for VpcRoutingServiceUpdate for application/json ContentType.
type VpcRoutingServiceUpdateResponse ¶
type VpcRoutingServiceUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcRoutingServiceUpdateResponse ¶
func ParseVpcRoutingServiceUpdateResponse(rsp *http.Response) (*VpcRoutingServiceUpdateResponse, error)
ParseVpcRoutingServiceUpdateResponse parses an HTTP response from a VpcRoutingServiceUpdateWithResponse call
func (VpcRoutingServiceUpdateResponse) ContentType ¶
func (r VpcRoutingServiceUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcRoutingServiceUpdateResponse) GetBody ¶
func (r VpcRoutingServiceUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcRoutingServiceUpdateResponse) GetJSON200 ¶
func (r VpcRoutingServiceUpdateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcRoutingServiceUpdateResponse) GetJSONDefault ¶
func (r VpcRoutingServiceUpdateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcRoutingServiceUpdateResponse) Status ¶
func (r VpcRoutingServiceUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (VpcRoutingServiceUpdateResponse) StatusCode ¶
func (r VpcRoutingServiceUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcServiceCreateJSONRequestBody ¶
type VpcServiceCreateJSONRequestBody = CreateVPCRequest
VpcServiceCreateJSONRequestBody defines body for VpcServiceCreate for application/json ContentType.
type VpcServiceCreateResponse ¶
type VpcServiceCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcServiceCreateResponse ¶
func ParseVpcServiceCreateResponse(rsp *http.Response) (*VpcServiceCreateResponse, error)
ParseVpcServiceCreateResponse parses an HTTP response from a VpcServiceCreateWithResponse call
func (VpcServiceCreateResponse) ContentType ¶
func (r VpcServiceCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcServiceCreateResponse) GetBody ¶
func (r VpcServiceCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcServiceCreateResponse) GetJSON200 ¶
func (r VpcServiceCreateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcServiceCreateResponse) GetJSONDefault ¶
func (r VpcServiceCreateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcServiceCreateResponse) Status ¶
func (r VpcServiceCreateResponse) Status() string
Status returns HTTPResponse.Status
func (VpcServiceCreateResponse) StatusCode ¶
func (r VpcServiceCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcServiceDeleteResponse ¶
type VpcServiceDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcServiceDeleteResponse ¶
func ParseVpcServiceDeleteResponse(rsp *http.Response) (*VpcServiceDeleteResponse, error)
ParseVpcServiceDeleteResponse parses an HTTP response from a VpcServiceDeleteWithResponse call
func (VpcServiceDeleteResponse) ContentType ¶
func (r VpcServiceDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcServiceDeleteResponse) GetBody ¶
func (r VpcServiceDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcServiceDeleteResponse) GetJSON200 ¶
func (r VpcServiceDeleteResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcServiceDeleteResponse) GetJSONDefault ¶
func (r VpcServiceDeleteResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcServiceDeleteResponse) Status ¶
func (r VpcServiceDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (VpcServiceDeleteResponse) StatusCode ¶
func (r VpcServiceDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcServiceGetResponse ¶
type VpcServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Vpc
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcServiceGetResponse ¶
func ParseVpcServiceGetResponse(rsp *http.Response) (*VpcServiceGetResponse, error)
ParseVpcServiceGetResponse parses an HTTP response from a VpcServiceGetWithResponse call
func (VpcServiceGetResponse) ContentType ¶
func (r VpcServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcServiceGetResponse) GetBody ¶
func (r VpcServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcServiceGetResponse) GetJSON200 ¶
func (r VpcServiceGetResponse) GetJSON200() *Vpc
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcServiceGetResponse) GetJSONDefault ¶
func (r VpcServiceGetResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcServiceGetResponse) Status ¶
func (r VpcServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (VpcServiceGetResponse) StatusCode ¶
func (r VpcServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcServiceListParams ¶
type VpcServiceListParams struct {
// ProjectId Идентификатор проекта для получения списка VPC.
ProjectId string `form:"projectId" json:"projectId"`
// PageSize Максимальное количество элементов на странице.
PageSize *uint32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken Токен для пагинации (получения следующей страницы).
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// Filter Поле filter - это [cel-выражениe](https://github.com/google/cel-spec/blob/master/doc/langdef.md), состоящее из фильтрующих выражений, каждое выражение соединяется оператором && (логическое и).
// Поддерживаемые поля:
// 1. ids []string опциональное. Поддерживаемые операторы: 'in'.
// Пример выражения: ids in ['5e45ad32-7fca-4dd8-bab6-f334c9f8e553', "4507e4d1-0e92-438b-9c2e-2a5b91f2f755"].
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}
VpcServiceListParams defines parameters for VpcServiceList.
type VpcServiceListResponse ¶
type VpcServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListVPCResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcServiceListResponse ¶
func ParseVpcServiceListResponse(rsp *http.Response) (*VpcServiceListResponse, error)
ParseVpcServiceListResponse parses an HTTP response from a VpcServiceListWithResponse call
func (VpcServiceListResponse) ContentType ¶
func (r VpcServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcServiceListResponse) GetBody ¶
func (r VpcServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcServiceListResponse) GetJSON200 ¶
func (r VpcServiceListResponse) GetJSON200() *ListVPCResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcServiceListResponse) GetJSONDefault ¶
func (r VpcServiceListResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcServiceListResponse) Status ¶
func (r VpcServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (VpcServiceListResponse) StatusCode ¶
func (r VpcServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VpcServiceUpdateJSONRequestBody ¶
type VpcServiceUpdateJSONRequestBody = UpdateVPCRequest
VpcServiceUpdateJSONRequestBody defines body for VpcServiceUpdate for application/json ContentType.
type VpcServiceUpdateResponse ¶
type VpcServiceUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Operation
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Status
}
func ParseVpcServiceUpdateResponse ¶
func ParseVpcServiceUpdateResponse(rsp *http.Response) (*VpcServiceUpdateResponse, error)
ParseVpcServiceUpdateResponse parses an HTTP response from a VpcServiceUpdateWithResponse call
func (VpcServiceUpdateResponse) ContentType ¶
func (r VpcServiceUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VpcServiceUpdateResponse) GetBody ¶
func (r VpcServiceUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VpcServiceUpdateResponse) GetJSON200 ¶
func (r VpcServiceUpdateResponse) GetJSON200() *Operation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VpcServiceUpdateResponse) GetJSONDefault ¶
func (r VpcServiceUpdateResponse) GetJSONDefault() *Status
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VpcServiceUpdateResponse) Status ¶
func (r VpcServiceUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (VpcServiceUpdateResponse) StatusCode ¶
func (r VpcServiceUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode