Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual serial number #484

Merged
merged 124 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
f233072
Gate ibmi 500 (#414)
michaelkad Jun 18, 2024
e90e3ae
Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7
dependabot[bot] Jun 24, 2024
a9c7e1b
Get the supported storage tiers of a cloud instance (#446)
kishen-v Aug 20, 2024
bd839aa
Fix go.mod version (#419)
michaelkad Aug 26, 2024
4bae719
Q3 Release 2024 (#459)
ismirlia Sep 11, 2024
d4bae35
Reenable bulk-detach and bulk-delete for Q3 (#460)
ismirlia Sep 11, 2024
3d21f55
Add network-interfaces for Q3 (#464)
ismirlia Sep 16, 2024
0ce30af
Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#355)
dependabot[bot] Sep 30, 2024
71c8792
Revert "Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#355…
michaelkad Sep 30, 2024
53ca6b4
Bump github.com/IBM/platform-services-go-sdk from 0.59.1 to 0.69.2 (#…
dependabot[bot] Oct 8, 2024
aeceda8
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#478)
dependabot[bot] Oct 8, 2024
3eb8e22
Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#477)
dependabot[bot] Oct 8, 2024
9e1f4e0
Add hostgroups (#326)
michaelkad Mar 1, 2024
06936d8
Update swagger client and models to service-broker v1.140.0 (#337)
powervs-ibm Mar 1, 2024
85d1a44
Update swagger client and models to service-broker v1.140.0 (#346)
powervs-ibm Mar 13, 2024
0e828f6
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
9b33f44
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
da994e7
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
c1c2bab
Remove duplicate go setup step (#348)
yussufsh Mar 13, 2024
0d6d27d
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
48f421e
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
19f366f
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
e9d1368
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
a750aef
Update swagger client and models to service-broker v1.140.0 (#337)
powervs-ibm Mar 1, 2024
14b7f9a
Update swagger client and models to service-broker v1.140.0 (#346)
powervs-ibm Mar 13, 2024
7dbe60d
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
ecea259
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
a1c09d1
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
4cfa097
Update swagger client and models to service-broker v1.140.0 (#337)
powervs-ibm Mar 1, 2024
678babe
Update swagger client and models to service-broker v1.140.0 (#336)
powervs-ibm Mar 1, 2024
259def9
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
61a4503
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
5da54e1
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
c89ffcf
Remove duplicate go setup step (#348)
yussufsh Mar 13, 2024
78eddcb
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
112a9d8
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
0717116
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
34c8299
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
e29f5e7
Remove duplicate go setup step (#348)
yussufsh Mar 13, 2024
3dd4a77
Update swagger client and models to service-broker v1.140.0 (#337)
powervs-ibm Mar 1, 2024
2721b1a
Update swagger client and models to service-broker v1.140.0 (#346)
powervs-ibm Mar 13, 2024
384490d
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
31a4db0
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
8df9adf
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
5408ea0
Generated Swagger client from service-broker commit 70b0722398f5a64ea…
powervs-ibm Mar 26, 2024
0bd5de1
Generated Swagger client from service-broker commit 384961399c43e0ea9…
powervs-ibm Mar 28, 2024
085edec
Update Hostgroup client and add stratos validation (#361)
michaelkad Mar 28, 2024
2156a96
Generated Swagger client from service-broker commit e43ad9dd41dd11d02…
powervs-ibm Apr 4, 2024
2f0fbb4
Fix error in host-group example (#376)
ismirlia Apr 15, 2024
26a4893
Generated Swagger client from service-broker commit 5fa65c3c11cd0c147…
powervs-ibm Jun 17, 2024
ba20c2d
Generated Swagger client from service-broker commit f856adaa776020988…
powervs-ibm Jun 17, 2024
c67552e
Generated Swagger client from service-broker commit b7a20105660b86a19…
powervs-ibm Jun 17, 2024
31f7fb5
Generated Swagger client from service-broker commit 35aa4910370044d82…
powervs-ibm Jul 16, 2024
c7d8dbf
Generated Swagger client from service-broker commit 01eebb83bef64e16e…
powervs-ibm Jul 25, 2024
84f5e01
Block gateway network update for stratos (#429)
ismirlia Jul 29, 2024
e3b972b
Generated Swagger client from service-broker commit f82abb1277ab5b723…
powervs-ibm Aug 6, 2024
db60d1a
Add Network Address Group (#435)
michaelkad Aug 6, 2024
9709fc6
Network Security Group (#434)
michaelkad Aug 7, 2024
aa5beac
Generated Swagger client from service-broker commit 8ef4989190f08ba35…
powervs-ibm Aug 7, 2024
d0b68a7
Fix typo in file name (#442)
michaelkad Aug 8, 2024
2ea3361
Generated Swagger client from service-broker commit dcdebb6b0053044d8…
powervs-ibm Aug 8, 2024
affe2a4
Revert "Block gateway network update for stratos (#429)" (#441)
ismirlia Aug 8, 2024
cf7659c
Update NSG[rm direction], NI[ch PvmInstance ->Instance, rm NetworkSec…
powervs-ibm Aug 15, 2024
fca60ce
Update [M]NAg,NSG: member, rules; SysPool: CoreIncrement SB commit c7…
powervs-ibm Aug 23, 2024
a422e72
Update NSG and NAG types (#452)
Alexander-Kita Aug 26, 2024
270913e
[M] NetworkSecurityGroupRuleProtocol: IcmpTypes float64-> int64 SB co…
powervs-ibm Aug 27, 2024
3720392
[M] NetworkSecurityGroupRulePort: min and max limit, NSG Rule: rm Dir…
powervs-ibm Aug 28, 2024
beae8f9
Update [M] NAG, NSG: UserTags add omitempty SB commit 6b88f9d59f3ce12…
powervs-ibm Sep 5, 2024
39cc5bf
Fix NAG Update (#457)
michaelkad Sep 6, 2024
64f1057
Fix NAG Member Create (#458)
michaelkad Sep 6, 2024
de4d4ba
Generated Swagger client from service-broker commit eb93d29b12a45ca1b…
powervs-ibm Sep 16, 2024
bb8cca8
Remove stratos safeguards for GRS changes (#467)
ismirlia Sep 25, 2024
eef3e72
Add deployment-type safeguard for stratos (#465)
ismirlia Sep 26, 2024
35286e4
Allow spp-plement-group commands on stratos (#469)
ismirlia Sep 26, 2024
41c7bed
Generated Swagger client from service-broker commit 6ca735ef9b45f2e11…
powervs-ibm Sep 30, 2024
15a1994
Add Virtual Serial Number[A]: VSN, [M]: PVMInstance SB commit 51e56f4…
powervs-ibm Sep 30, 2024
657068b
add private datacenter capabilities to datacenter get and getAll (#480)
Alexander-Kita Oct 3, 2024
f2a0dae
Update VSN:[A] client, create & delete model, SB commit 206f48ce91567…
powervs-ibm Oct 8, 2024
053f37e
Add Virtual Serial Number
michaelkad Oct 9, 2024
234f0b1
Gate ibmi 500 (#414)
michaelkad Jun 18, 2024
0e3d3a3
Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7
dependabot[bot] Jun 24, 2024
62b1425
Get the supported storage tiers of a cloud instance (#446)
kishen-v Aug 20, 2024
c58a6d8
Reenable bulk-detach and bulk-delete for Q3 (#460)
ismirlia Sep 11, 2024
fe91ca8
Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#355)
dependabot[bot] Sep 30, 2024
b41f00f
Revert "Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#355…
michaelkad Sep 30, 2024
439d150
Bump github.com/IBM/platform-services-go-sdk from 0.59.1 to 0.69.2 (#…
dependabot[bot] Oct 8, 2024
d7ae009
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#478)
dependabot[bot] Oct 8, 2024
d135f7f
Bump github.com/go-openapi/errors from 0.21.0 to 0.22.0 (#477)
dependabot[bot] Oct 8, 2024
07c9323
Update swagger client and models to service-broker v1.140.0 (#337)
powervs-ibm Mar 1, 2024
9729644
Update swagger client and models to service-broker v1.140.0 (#346)
powervs-ibm Mar 13, 2024
f896895
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
c763ca5
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
4502bc0
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
9b9e322
Remove duplicate go setup step (#348)
yussufsh Mar 13, 2024
1524fbe
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
7301fef
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
50e39a0
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
74a2b7c
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
4a39877
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
674f195
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
6b31d5c
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
2f15119
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
d2d05be
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
ace4403
Remove duplicate go setup step (#348)
yussufsh Mar 13, 2024
8460911
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
167a414
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
cecda19
Fix golangci-lint action v4 requirement
yussufsh Mar 4, 2024
2a8bc92
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
a95976a
Add branch to dependabot (#338)
michaelkad Mar 4, 2024
2b3351e
Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3
dependabot[bot] Feb 28, 2024
1324160
Generated Swagger client from service-broker commit 70b0722398f5a64ea…
powervs-ibm Mar 26, 2024
824e362
Generated Swagger client from service-broker commit 384961399c43e0ea9…
powervs-ibm Mar 28, 2024
123a02f
Update Hostgroup client and add stratos validation (#361)
michaelkad Mar 28, 2024
56d5b76
Generated Swagger client from service-broker commit e43ad9dd41dd11d02…
powervs-ibm Apr 4, 2024
2f28144
Fix error in host-group example (#376)
ismirlia Apr 15, 2024
85a7e18
Generated Swagger client from service-broker commit 5fa65c3c11cd0c147…
powervs-ibm Jun 17, 2024
096206e
Generated Swagger client from service-broker commit f856adaa776020988…
powervs-ibm Jun 17, 2024
d09191f
Generated Swagger client from service-broker commit b7a20105660b86a19…
powervs-ibm Jun 17, 2024
50b6f9e
Generated Swagger client from service-broker commit 35aa4910370044d82…
powervs-ibm Jul 16, 2024
5cd8085
Generated Swagger client from service-broker commit f82abb1277ab5b723…
powervs-ibm Aug 6, 2024
a7d882d
Add Virtual Serial Number
michaelkad Oct 9, 2024
f95015a
Merge remote-tracking branch 'origin/virtual-serial-number' into virt…
michaelkad Oct 9, 2024
850979c
Remove space
michaelkad Oct 9, 2024
7c373c9
Add ID to getall VSN
michaelkad Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions clients/instance/ibm-pi-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ func (f *IBMPIInstanceClient) Delete(id string) error {
return nil
}

// Delete an Instance with body
func (f *IBMPIInstanceClient) DeleteWithBody(id string, body *models.PVMInstanceDelete) error {
params := p_cloud_p_vm_instances.NewPcloudPvminstancesDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PIDeleteTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithPvmInstanceID(id).WithBody(body)
_, err := f.session.Power.PCloudpVMInstances.PcloudPvminstancesDelete(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return fmt.Errorf("failed to Delete PVM Instance %s :%w", id, err)
}
return nil
}

// Update an Instance
func (f *IBMPIInstanceClient) Update(id string, body *models.PVMInstanceUpdate) (*models.PVMInstanceUpdateResponse, error) {
// Check for satellite differences in this endpoint
Expand Down
52 changes: 52 additions & 0 deletions clients/instance/ibm-pi-virtual-serial-number.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package instance

import (
"context"
"fmt"

"github.com/IBM-Cloud/power-go-client/helpers"
"github.com/IBM-Cloud/power-go-client/ibmpisession"
"github.com/IBM-Cloud/power-go-client/power/client/p_cloud_virtual_serial_number"
"github.com/IBM-Cloud/power-go-client/power/models"
)

// IBMPIVSNClient

type IBMPIVSNClient struct {
IBMPIClient
}

// NewIBMPIVSNClient
func NewIBMPIVSNClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIVSNClient {
return &IBMPIVSNClient{
*NewIBMPIClient(ctx, sess, cloudInstanceID),
}
}

// Get Virtual Serial Number
func (f *IBMPIVSNClient) Get(id string) (*models.VirtualSerialNumber, error) {
params := p_cloud_virtual_serial_number.NewPcloudVirtualserialnumberGetParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithVirtualSerialNumber(id)
resp, err := f.session.Power.PCloudVirtualSerialNumber.PcloudVirtualserialnumberGet(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to Get virtual serial number %s :%w", id, err))
}
if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to Get virtual serial number %s", id)
}
return resp.Payload, nil
}

// Get All Virtual Serial Numbers
func (f *IBMPIVSNClient) GetAll() (models.VirtualSerialNumberList, error) {
params := p_cloud_virtual_serial_number.NewPcloudVirtualserialnumberGetallParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut)
resp, err := f.session.Power.PCloudVirtualSerialNumber.PcloudVirtualserialnumberGetall(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to Get all virtual serial numbers in %s :%w", f.cloudInstanceID, err))
}
if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to Get all virtual serial numbers in %s", f.cloudInstanceID)
}
return resp.Payload, nil
}
43 changes: 0 additions & 43 deletions power/models/s_a_p_profile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.