mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Update dependencies (#723)
* go get -u github.com/Azure/azure-sdk-for-go * github.com/aws/aws-sdk-go upgrade => v1.30.11 * github.com/digitalocean/godo upgrade => v1.35.1 * go get -u github.com/golang/protobuf
This commit is contained in:
30
vendor/github.com/digitalocean/godo/vpcs.go
generated
vendored
30
vendor/github.com/digitalocean/godo/vpcs.go
generated
vendored
@@ -29,13 +29,16 @@ type VPCsServiceOp struct {
|
||||
|
||||
// VPCCreateRequest represents a request to create a Virtual Private Cloud.
|
||||
type VPCCreateRequest struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
RegionSlug string `json:"region,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
RegionSlug string `json:"region,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
IPRange string `json:"ip_range,omitempty"`
|
||||
}
|
||||
|
||||
// VPCUpdateRequest represents a request to update a Virtual Private Cloud.
|
||||
type VPCUpdateRequest struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// VPCSetField allows one to set individual fields within a VPC configuration.
|
||||
@@ -47,13 +50,20 @@ type VPCSetField interface {
|
||||
// Ex.: VPCs.Set(..., VPCSetName("new-name"))
|
||||
type VPCSetName string
|
||||
|
||||
// VPCSetDescription is used when one want to set the `description` field of a VPC.
|
||||
// Ex.: VPCs.Set(..., VPCSetDescription("vpc description"))
|
||||
type VPCSetDescription string
|
||||
|
||||
// VPC represents a DigitalOcean Virtual Private Cloud configuration.
|
||||
type VPC struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
RegionSlug string `json:"region,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||
Default bool `json:"default,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
URN string `json:"urn"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
IPRange string `json:"ip_range,omitempty"`
|
||||
RegionSlug string `json:"region,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||
Default bool `json:"default,omitempty"`
|
||||
}
|
||||
|
||||
type vpcRoot struct {
|
||||
@@ -147,6 +157,10 @@ func (n VPCSetName) vpcSetField(in map[string]interface{}) {
|
||||
in["name"] = n
|
||||
}
|
||||
|
||||
func (n VPCSetDescription) vpcSetField(in map[string]interface{}) {
|
||||
in["description"] = n
|
||||
}
|
||||
|
||||
// Set updates specific properties of a Virtual Private Cloud.
|
||||
func (v *VPCsServiceOp) Set(ctx context.Context, id string, fields ...VPCSetField) (*VPC, *Response, error) {
|
||||
path := vpcsBasePath + "/" + id
|
||||
|
Reference in New Issue
Block a user