vpcv1

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Default_ListVPCsRequest_Page     = int32(1)
	Default_ListVPCsRequest_PageSize = int32(10)
)

Default values for ListVPCsRequest fields.

View Source
const (
	VPCService_CreateVPC_FullMethodName = "/cloudstack.vpc.v1.VPCService/CreateVPC"
	VPCService_ListVPCs_FullMethodName  = "/cloudstack.vpc.v1.VPCService/ListVPCs"
)

Variables

View Source
var File_cloudstack_common_samples_v1_vpc_sample_proto protoreflect.FileDescriptor
View Source
var VPCService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.vpc.v1.VPCService",
	HandlerType: (*VPCServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVPC",
			Handler:    _VPCService_CreateVPC_Handler,
		},
		{
			MethodName: "ListVPCs",
			Handler:    _VPCService_ListVPCs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/common/samples/v1/vpc_sample.proto",
}

VPCService_ServiceDesc is the grpc.ServiceDesc for VPCService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVPCServiceServer

func RegisterVPCServiceServer(s grpc.ServiceRegistrar, srv VPCServiceServer)

Types

type CreateVPCRequest

type CreateVPCRequest struct {

	// The name of the VPC
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The display text of the VPC
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The CIDR of the VPC
	Cidr *string `protobuf:"bytes,3,opt,name=cidr" json:"cidr,omitempty"`
	// The CIDR size of the VPC
	CidrSize *int32 `protobuf:"varint,4,opt,name=cidr_size,json=cidrSize" json:"cidr_size,omitempty"`
	// The ID of the VPC offering
	VpcOfferingId *string `protobuf:"bytes,5,opt,name=vpc_offering_id,json=vpcOfferingId" json:"vpc_offering_id,omitempty"`
	// The ID of the availability zone
	ZoneId *string `protobuf:"bytes,6,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// The network domain for the VPC
	NetworkDomain *string `protobuf:"bytes,7,opt,name=network_domain,json=networkDomain" json:"network_domain,omitempty"`
	// Whether to start the VPC immediately
	Start *bool `protobuf:"varint,8,opt,name=start" json:"start,omitempty"`
	// Whether to display the VPC to end users
	Display *bool `protobuf:"varint,9,opt,name=display" json:"display,omitempty"`
	// The MTU for the network VR's public facing interfaces
	PublicMtu  *int32                       `protobuf:"varint,10,opt,name=public_mtu,json=publicMtu" json:"public_mtu,omitempty"`
	DnsServers *CreateVPCRequest_DNSServers `protobuf:"bytes,11,opt,name=dns_servers,json=dnsServers" json:"dns_servers,omitempty"`
	// The source NAT IP address
	SourceNatIp *string `protobuf:"bytes,12,opt,name=source_nat_ip,json=sourceNatIp" json:"source_nat_ip,omitempty"`
	// The AS Number for the VPC tiers
	AsNumber *int64 `protobuf:"varint,13,opt,name=as_number,json=asNumber" json:"as_number,omitempty"`
	// contains filtered or unexported fields
}

CreateVPCRequest represents the parameters for creating a VPC

func (*CreateVPCRequest) Descriptor deprecated

func (*CreateVPCRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateVPCRequest.ProtoReflect.Descriptor instead.

func (*CreateVPCRequest) GetAsNumber

func (x *CreateVPCRequest) GetAsNumber() int64

func (*CreateVPCRequest) GetCidr

func (x *CreateVPCRequest) GetCidr() string

func (*CreateVPCRequest) GetCidrSize

func (x *CreateVPCRequest) GetCidrSize() int32

func (*CreateVPCRequest) GetDisplay

func (x *CreateVPCRequest) GetDisplay() bool

func (*CreateVPCRequest) GetDisplayText

func (x *CreateVPCRequest) GetDisplayText() string

func (*CreateVPCRequest) GetDnsServers

func (x *CreateVPCRequest) GetDnsServers() *CreateVPCRequest_DNSServers

func (*CreateVPCRequest) GetName

func (x *CreateVPCRequest) GetName() string

func (*CreateVPCRequest) GetNetworkDomain

func (x *CreateVPCRequest) GetNetworkDomain() string

func (*CreateVPCRequest) GetPublicMtu

func (x *CreateVPCRequest) GetPublicMtu() int32

func (*CreateVPCRequest) GetSourceNatIp

func (x *CreateVPCRequest) GetSourceNatIp() string

func (*CreateVPCRequest) GetStart

func (x *CreateVPCRequest) GetStart() bool

func (*CreateVPCRequest) GetVpcOfferingId

func (x *CreateVPCRequest) GetVpcOfferingId() string

func (*CreateVPCRequest) GetZoneId

func (x *CreateVPCRequest) GetZoneId() string

func (*CreateVPCRequest) ProtoMessage

func (*CreateVPCRequest) ProtoMessage()

func (*CreateVPCRequest) ProtoReflect

func (x *CreateVPCRequest) ProtoReflect() protoreflect.Message

func (*CreateVPCRequest) Reset

func (x *CreateVPCRequest) Reset()

func (*CreateVPCRequest) String

func (x *CreateVPCRequest) String() string

type CreateVPCRequest_DNSServers

type CreateVPCRequest_DNSServers struct {
	Ipv4Dns1 *string `protobuf:"bytes,1,opt,name=ipv4_dns1,json=ipv4Dns1" json:"ipv4_dns1,omitempty"`
	Ipv4Dns2 *string `protobuf:"bytes,2,opt,name=ipv4_dns2,json=ipv4Dns2" json:"ipv4_dns2,omitempty"`
	Ipv6Dns1 *string `protobuf:"bytes,3,opt,name=ipv6_dns1,json=ipv6Dns1" json:"ipv6_dns1,omitempty"`
	Ipv6Dns2 *string `protobuf:"bytes,4,opt,name=ipv6_dns2,json=ipv6Dns2" json:"ipv6_dns2,omitempty"`
	// contains filtered or unexported fields
}

DNS servers for the VPC

func (*CreateVPCRequest_DNSServers) Descriptor deprecated

func (*CreateVPCRequest_DNSServers) Descriptor() ([]byte, []int)

Deprecated: Use CreateVPCRequest_DNSServers.ProtoReflect.Descriptor instead.

func (*CreateVPCRequest_DNSServers) GetIpv4Dns1

func (x *CreateVPCRequest_DNSServers) GetIpv4Dns1() string

func (*CreateVPCRequest_DNSServers) GetIpv4Dns2

func (x *CreateVPCRequest_DNSServers) GetIpv4Dns2() string

func (*CreateVPCRequest_DNSServers) GetIpv6Dns1

func (x *CreateVPCRequest_DNSServers) GetIpv6Dns1() string

func (*CreateVPCRequest_DNSServers) GetIpv6Dns2

func (x *CreateVPCRequest_DNSServers) GetIpv6Dns2() string

func (*CreateVPCRequest_DNSServers) ProtoMessage

func (*CreateVPCRequest_DNSServers) ProtoMessage()

func (*CreateVPCRequest_DNSServers) ProtoReflect

func (*CreateVPCRequest_DNSServers) Reset

func (x *CreateVPCRequest_DNSServers) Reset()

func (*CreateVPCRequest_DNSServers) String

func (x *CreateVPCRequest_DNSServers) String() string

type CreateVPCResponse

type CreateVPCResponse struct {

	// The created VPC
	Vpc *VPC `protobuf:"bytes,1,opt,name=vpc" json:"vpc,omitempty"`
	// contains filtered or unexported fields
}

CreateVPCResponse represents the response from creating a VPC

func (*CreateVPCResponse) Descriptor deprecated

func (*CreateVPCResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateVPCResponse.ProtoReflect.Descriptor instead.

func (*CreateVPCResponse) GetVpc

func (x *CreateVPCResponse) GetVpc() *VPC

func (*CreateVPCResponse) ProtoMessage

func (*CreateVPCResponse) ProtoMessage()

func (*CreateVPCResponse) ProtoReflect

func (x *CreateVPCResponse) ProtoReflect() protoreflect.Message

func (*CreateVPCResponse) Reset

func (x *CreateVPCResponse) Reset()

func (*CreateVPCResponse) String

func (x *CreateVPCResponse) String() string

type ListVPCsRequest

type ListVPCsRequest struct {

	// The ID of the VPC to list
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The ID of the zone to list VPCs from
	ZoneId *string `protobuf:"bytes,2,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// The name of the VPC to list
	Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	// The display text to filter by
	DisplayText *string `protobuf:"bytes,4,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The CIDR to filter by
	Cidr *string `protobuf:"bytes,5,opt,name=cidr" json:"cidr,omitempty"`
	// The ID of the VPC offering to filter by
	VpcOfferingId *string `protobuf:"bytes,6,opt,name=vpc_offering_id,json=vpcOfferingId" json:"vpc_offering_id,omitempty"`
	// The state to filter by
	State *string `protobuf:"bytes,7,opt,name=state" json:"state,omitempty"`
	// Whether to filter by restart required
	RestartRequired *bool `protobuf:"varint,8,opt,name=restart_required,json=restartRequired" json:"restart_required,omitempty"`
	// Whether to show resource icons
	ShowResourceIcon *bool `protobuf:"varint,9,opt,name=show_resource_icon,json=showResourceIcon" json:"show_resource_icon,omitempty"`
	// The page number to list
	Page *int32 `protobuf:"varint,10,opt,name=page,def=1" json:"page,omitempty"`
	// The page size
	PageSize *int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize,def=10" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

ListVPCsRequest represents the parameters for listing VPCs

func (*ListVPCsRequest) Descriptor deprecated

func (*ListVPCsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListVPCsRequest.ProtoReflect.Descriptor instead.

func (*ListVPCsRequest) GetCidr

func (x *ListVPCsRequest) GetCidr() string

func (*ListVPCsRequest) GetDisplayText

func (x *ListVPCsRequest) GetDisplayText() string

func (*ListVPCsRequest) GetId

func (x *ListVPCsRequest) GetId() string

func (*ListVPCsRequest) GetName

func (x *ListVPCsRequest) GetName() string

func (*ListVPCsRequest) GetPage

func (x *ListVPCsRequest) GetPage() int32

func (*ListVPCsRequest) GetPageSize

func (x *ListVPCsRequest) GetPageSize() int32

func (*ListVPCsRequest) GetRestartRequired

func (x *ListVPCsRequest) GetRestartRequired() bool

func (*ListVPCsRequest) GetShowResourceIcon

func (x *ListVPCsRequest) GetShowResourceIcon() bool

func (*ListVPCsRequest) GetState

func (x *ListVPCsRequest) GetState() string

func (*ListVPCsRequest) GetVpcOfferingId

func (x *ListVPCsRequest) GetVpcOfferingId() string

func (*ListVPCsRequest) GetZoneId

func (x *ListVPCsRequest) GetZoneId() string

func (*ListVPCsRequest) ProtoMessage

func (*ListVPCsRequest) ProtoMessage()

func (*ListVPCsRequest) ProtoReflect

func (x *ListVPCsRequest) ProtoReflect() protoreflect.Message

func (*ListVPCsRequest) Reset

func (x *ListVPCsRequest) Reset()

func (*ListVPCsRequest) String

func (x *ListVPCsRequest) String() string

type ListVPCsResponse

type ListVPCsResponse struct {

	// The list of VPCs
	Vpcs []*VPC `protobuf:"bytes,1,rep,name=vpcs" json:"vpcs,omitempty"`
	// The total count of VPCs
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListVPCsResponse represents the response from listing VPCs

func (*ListVPCsResponse) Descriptor deprecated

func (*ListVPCsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListVPCsResponse.ProtoReflect.Descriptor instead.

func (*ListVPCsResponse) GetTotalCount

func (x *ListVPCsResponse) GetTotalCount() int32

func (*ListVPCsResponse) GetVpcs

func (x *ListVPCsResponse) GetVpcs() []*VPC

func (*ListVPCsResponse) ProtoMessage

func (*ListVPCsResponse) ProtoMessage()

func (*ListVPCsResponse) ProtoReflect

func (x *ListVPCsResponse) ProtoReflect() protoreflect.Message

func (*ListVPCsResponse) Reset

func (x *ListVPCsResponse) Reset()

func (*ListVPCsResponse) String

func (x *ListVPCsResponse) String() string

type UnimplementedVPCServiceServer

type UnimplementedVPCServiceServer struct{}

UnimplementedVPCServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedVPCServiceServer) CreateVPC

func (UnimplementedVPCServiceServer) ListVPCs

type UnsafeVPCServiceServer

type UnsafeVPCServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVPCServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VPCServiceServer will result in compilation errors.

type VPC

type VPC struct {

	// The ID of the VPC
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the VPC
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display text of the VPC
	DisplayText *string `protobuf:"bytes,3,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The CIDR of the VPC
	Cidr *string `protobuf:"bytes,4,opt,name=cidr" json:"cidr,omitempty"`
	// The state of the VPC
	State *string `protobuf:"bytes,5,opt,name=state" json:"state,omitempty"`
	// The ID of the VPC offering
	VpcOfferingId *string `protobuf:"bytes,6,opt,name=vpc_offering_id,json=vpcOfferingId" json:"vpc_offering_id,omitempty"`
	// The ID of the zone
	ZoneId *string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// The network domain
	NetworkDomain *string `protobuf:"bytes,8,opt,name=network_domain,json=networkDomain" json:"network_domain,omitempty"`
	// Whether the VPC is displayed
	Display *bool `protobuf:"varint,9,opt,name=display" json:"display,omitempty"`
	// The public MTU
	PublicMtu  *int32          `protobuf:"varint,10,opt,name=public_mtu,json=publicMtu" json:"public_mtu,omitempty"`
	DnsServers *VPC_DNSServers `protobuf:"bytes,11,opt,name=dns_servers,json=dnsServers" json:"dns_servers,omitempty"`
	// The source NAT IP
	SourceNatIp *string `protobuf:"bytes,12,opt,name=source_nat_ip,json=sourceNatIp" json:"source_nat_ip,omitempty"`
	// The AS Number
	AsNumber *int64 `protobuf:"varint,13,opt,name=as_number,json=asNumber" json:"as_number,omitempty"`
	// The creation time
	Created *string `protobuf:"bytes,14,opt,name=created" json:"created,omitempty"`
	// The last update time
	Updated *string `protobuf:"bytes,15,opt,name=updated" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

VPC represents a Virtual Private Cloud

func (*VPC) Descriptor deprecated

func (*VPC) Descriptor() ([]byte, []int)

Deprecated: Use VPC.ProtoReflect.Descriptor instead.

func (*VPC) GetAsNumber

func (x *VPC) GetAsNumber() int64

func (*VPC) GetCidr

func (x *VPC) GetCidr() string

func (*VPC) GetCreated

func (x *VPC) GetCreated() string

func (*VPC) GetDisplay

func (x *VPC) GetDisplay() bool

func (*VPC) GetDisplayText

func (x *VPC) GetDisplayText() string

func (*VPC) GetDnsServers

func (x *VPC) GetDnsServers() *VPC_DNSServers

func (*VPC) GetId

func (x *VPC) GetId() string

func (*VPC) GetName

func (x *VPC) GetName() string

func (*VPC) GetNetworkDomain

func (x *VPC) GetNetworkDomain() string

func (*VPC) GetPublicMtu

func (x *VPC) GetPublicMtu() int32

func (*VPC) GetSourceNatIp

func (x *VPC) GetSourceNatIp() string

func (*VPC) GetState

func (x *VPC) GetState() string

func (*VPC) GetUpdated

func (x *VPC) GetUpdated() string

func (*VPC) GetVpcOfferingId

func (x *VPC) GetVpcOfferingId() string

func (*VPC) GetZoneId

func (x *VPC) GetZoneId() string

func (*VPC) ProtoMessage

func (*VPC) ProtoMessage()

func (*VPC) ProtoReflect

func (x *VPC) ProtoReflect() protoreflect.Message

func (*VPC) Reset

func (x *VPC) Reset()

func (*VPC) String

func (x *VPC) String() string

type VPCServiceClient

type VPCServiceClient interface {
	// CreateVPC creates a new VPC
	CreateVPC(ctx context.Context, in *CreateVPCRequest, opts ...grpc.CallOption) (*CreateVPCResponse, error)
	// ListVPCs lists VPCs with optional filtering
	ListVPCs(ctx context.Context, in *ListVPCsRequest, opts ...grpc.CallOption) (*ListVPCsResponse, error)
}

VPCServiceClient is the client API for VPCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

VPCService provides operations for managing VPCs

func NewVPCServiceClient

func NewVPCServiceClient(cc grpc.ClientConnInterface) VPCServiceClient

type VPCServiceServer

type VPCServiceServer interface {
	// CreateVPC creates a new VPC
	CreateVPC(context.Context, *CreateVPCRequest) (*CreateVPCResponse, error)
	// ListVPCs lists VPCs with optional filtering
	ListVPCs(context.Context, *ListVPCsRequest) (*ListVPCsResponse, error)
	// contains filtered or unexported methods
}

VPCServiceServer is the server API for VPCService service. All implementations must embed UnimplementedVPCServiceServer for forward compatibility.

VPCService provides operations for managing VPCs

type VPC_DNSServers

type VPC_DNSServers struct {
	Ipv4Dns1 *string `protobuf:"bytes,1,opt,name=ipv4_dns1,json=ipv4Dns1" json:"ipv4_dns1,omitempty"`
	Ipv4Dns2 *string `protobuf:"bytes,2,opt,name=ipv4_dns2,json=ipv4Dns2" json:"ipv4_dns2,omitempty"`
	Ipv6Dns1 *string `protobuf:"bytes,3,opt,name=ipv6_dns1,json=ipv6Dns1" json:"ipv6_dns1,omitempty"`
	Ipv6Dns2 *string `protobuf:"bytes,4,opt,name=ipv6_dns2,json=ipv6Dns2" json:"ipv6_dns2,omitempty"`
	// contains filtered or unexported fields
}

DNS servers

func (*VPC_DNSServers) Descriptor deprecated

func (*VPC_DNSServers) Descriptor() ([]byte, []int)

Deprecated: Use VPC_DNSServers.ProtoReflect.Descriptor instead.

func (*VPC_DNSServers) GetIpv4Dns1

func (x *VPC_DNSServers) GetIpv4Dns1() string

func (*VPC_DNSServers) GetIpv4Dns2

func (x *VPC_DNSServers) GetIpv4Dns2() string

func (*VPC_DNSServers) GetIpv6Dns1

func (x *VPC_DNSServers) GetIpv6Dns1() string

func (*VPC_DNSServers) GetIpv6Dns2

func (x *VPC_DNSServers) GetIpv6Dns2() string

func (*VPC_DNSServers) ProtoMessage

func (*VPC_DNSServers) ProtoMessage()

func (*VPC_DNSServers) ProtoReflect

func (x *VPC_DNSServers) ProtoReflect() protoreflect.Message

func (*VPC_DNSServers) Reset

func (x *VPC_DNSServers) Reset()

func (*VPC_DNSServers) String

func (x *VPC_DNSServers) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL