Skip to content

Commit 239ba63

Browse files
committed
Update vpc_v1.go
1 parent 1d8f549 commit 239ba63

File tree

1 file changed

+9
-5
lines changed
  • common/github.com/IBM/vpc-go-sdk/vpcv1

1 file changed

+9
-5
lines changed

common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2025.
2+
* (C) Copyright IBM Corp. 2023, 2024, 2025.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ import (
3838
// VpcV1 : The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage virtual
3939
// server instances, along with subnets, volumes, load balancers, and more.
4040
//
41-
// API Version: today
41+
// API Version: 2025-07-08
4242
type VpcV1 struct {
4343
Service *core.BaseService
4444

@@ -52,7 +52,7 @@ type VpcV1 struct {
5252
}
5353

5454
// DefaultServiceURL is the default URL to make service requests to.
55-
const DefaultServiceURL = "https://au-syd.iaas.cloud.ibm.com/v1"
55+
const DefaultServiceURL = "https://us-south.iaas.cloud.ibm.com/v1"
5656

5757
// DefaultServiceName is the default key used to find external configuration information.
5858
const DefaultServiceName = "vpc"
@@ -69,7 +69,7 @@ type VpcV1Options struct {
6969

7070
// The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2025-06-30`
7171
// and `2025-07-15`.
72-
Version *string `validate:"required"`
72+
Version *string
7373
}
7474

7575
// NewVpcV1UsingExternalConfig : constructs an instance of VpcV1 with passed in options and external configuration.
@@ -132,6 +132,10 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) {
132132
}
133133
}
134134

135+
if options.Version == nil {
136+
options.Version = core.StringPtr("2025-07-08")
137+
}
138+
135139
service = &VpcV1{
136140
Service: baseService,
137141
Generation: options.Generation,
@@ -34813,7 +34817,7 @@ func (vpc *VpcV1) UnpublishPrivatePathServiceGatewayWithContext(ctx context.Cont
3481334817
return
3481434818
}
3481534819
func getServiceComponentInfo() *core.ProblemComponent {
34816-
return core.NewProblemComponent(DefaultServiceName, "today")
34820+
return core.NewProblemComponent(DefaultServiceName, "2025-07-08")
3481734821
}
3481834822

3481934823
// AccountIdentity : Identifies an account by a unique property.

0 commit comments

Comments
 (0)