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

Add missing API fields for structs #80

Merged
merged 2 commits into from
Apr 2, 2020
Merged
Changes from all commits
Commits
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
11 changes: 10 additions & 1 deletion client/v3/v3_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ type VMResources struct {
// NICs attached to the VM.
NicList []*VMNic `json:"nic_list,omitempty"`

// Number of threads per core
NumThreads *int64 `json:"num_threads_per_core,omitempty"`

// Number of vCPU sockets.
NumSockets *int64 `json:"num_sockets,omitempty"`

Expand Down Expand Up @@ -836,6 +839,9 @@ type ImageResources struct {

// The image version
Version *ImageVersionResources `json:"version,omitempty"`

// Reference to the source image such as 'vm_disk
DataSourceReference *Reference `json:"data_source_reference,omitempty"`
}

// Image An intentful representation of a image spec
Expand Down Expand Up @@ -1620,6 +1626,9 @@ type Metadata struct {
OwnerReference *Reference `json:"owner_reference,omitempty"`
Categories map[string]string `json:"categories,omitempty"`
Name *string `json:"name,omitempty"`

// Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
ShouldForceTranslate *bool `json:"should_force_translate,omitempty"`
}

// NetworkSecurityRuleIntentInput An intentful representation of a network_security_rule
Expand All @@ -1631,7 +1640,7 @@ type NetworkSecurityRuleIntentInput struct {

// NetworkSecurityRuleDefStatus ... Network security rule status
type NetworkSecurityRuleDefStatus struct {
Resources *NetworkSecurityRuleResources `json:"resources,omitmepty"`
Resources *NetworkSecurityRuleResources `json:"resources,omitempty"`
State *string `json:"state,omitempty"`
ExecutionContext *ExecutionContext `json:"execution_context,omitempty"`
Name *string `json:"name,omitempty"`
Expand Down