Comments (2)
In order to use VolumeAttachmentDetails
I had to copy the private struct into my project.
type AttachVolumeDetails struct {
InstanceID *string `mandatory:"true" json:"instanceId,omitempty"`
VolumeID *string `mandatory:"true" json:"volumeId,omitempty"`
DisplayName *string `mandatory:"false" json:"displayName,omitempty"`
Type string `json:"type"`
}
func (m AttachVolumeDetails) GetInstanceID() *string {
return m.InstanceID
}
func (m AttachVolumeDetails) GetVolumeID() *string {
return m.VolumeID
}
func (m AttachVolumeDetails) GetDisplayName() *string {
return m.DisplayName
}
so I could call
coreClient.AttachVolume(ctx, core.AttachVolumeRequest{
AttachVolumeDetails: AttachVolumeDetails{
InstanceID: &instance.Status.ID,
VolumeID: &instance.Status.VolumeID,
DisplayName: &instance.Name,
},
})
from oci-go-sdk.
Hi @jhorwit2, yes the documentation is a little light on this, I apologize.
Per the specificiation of the the service AttachVolumeDetails
is polymorphic parameter that should at least contain the values listed in the interface.
Currently the only input parameter that the compute service supports for this call is the AttachIScsiVolumeDetails struct. AttachIScsiVolumeDetails
implements the AttachVolumeDetails interface, thus you should not need access to the private structure
Your call could look like this:
core.AttachVolumeRequest(ctx, core.AttachVolumeRequest{
AttachVolumeDetails: core.AttachIScsiVolumeDetails{
InstanceID: common.String("id"),
VolumeID: common.String("volume"),
DisplayName: common.String("display"),
UseChap: common.Bool(false),
}
}
from oci-go-sdk.
Related Issues (20)
- Support creating and managing users and groups within an identity domain HOT 3
- golang database/sql HOT 9
- OCID doesn't match expected pattern or contains invalid characters. HOT 13
- Identity domain structs missing json `omitempty` parameter
- Is there any existing/new API for getting the number of child table available in a NoSQL table? HOT 4
- Is there any way to add max-content-length for pre-autheticated requests of object storage?
- PutObject doesn't work (if able to retry) HOT 2
- OkeWorkloadIdentityConfigurationProvider example HOT 1
- Operation fails with NotAuthorizedOrNotFound but same operation succeeds when using CLI HOT 7
- SDK testability and mocks HOT 5
- `UploadRequest` creates `ObjectStorageClient` when uploading request is processing. HOT 1
- Unable to retrieve actual object storage bucket size HOT 4
- Retry policy does not retry ephemeral network errors HOT 6
- Token not present in Identity Domains' `CreateAuthTokenResponse` and `CreateMyAuthTokenResponse` HOT 6
- missing LaunchOptions in CreateImageDetails struct HOT 3
- ListExternalContainerDatabases is not returning list of all databases in that region HOT 3
- Support MappedAttributes for IdentityDomains HOT 3
- Support Policies for Identity Domains HOT 1
- Support Rules for Identity Domains HOT 1
- Issue with endpoint - Oracle Queue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oci-go-sdk.