github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/upgrade/aws_gateway_instance_status.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package upgrade
     7  
     8  import (
     9  	"github.com/vmware/go-vmware-nsxt/common"
    10  )
    11  
    12  type AwsGatewayInstanceStatus struct {
    13  
    14  	// The server will populate this field when returing the resource. Ignored on PUT and POST.
    15  	Links []common.ResourceLink `json:"_links,omitempty"`
    16  
    17  	Schema string `json:"_schema,omitempty"`
    18  
    19  	Self *common.SelfResourceLink `json:"_self,omitempty"`
    20  
    21  	// Different states of gateway deployment
    22  	DeploymentState string `json:"deployment_state,omitempty"`
    23  
    24  	// Status of gateway instance deployment in percentage
    25  	DeploymentStatus int64 `json:"deployment_status,omitempty"`
    26  
    27  	// Error code for gateway deployment/undeployment failure
    28  	ErrorCode int64 `json:"error_code,omitempty"`
    29  
    30  	// Error message for gateway deployment/undeployment failure
    31  	ErrorMessage string `json:"error_message,omitempty"`
    32  
    33  	// Index of HA that indicates whether gateway is primary or secondary. If index is 0, then it is primary gateway. Else secondary gateway.
    34  	GatewayHaIndex int64 `json:"gateway_ha_index,omitempty"`
    35  
    36  	// ID of the gateway instance
    37  	GatewayInstanceId string `json:"gateway_instance_id,omitempty"`
    38  
    39  	// Name of the gateway instance
    40  	GatewayName string `json:"gateway_name,omitempty"`
    41  
    42  	// NSX Node ID of the public cloud gateway
    43  	GatewayNodeId string `json:"gateway_node_id,omitempty"`
    44  
    45  	// Gateway instance status
    46  	GatewayStatus string `json:"gateway_status,omitempty"`
    47  
    48  	// NSX transport node id of the public cloud gateway
    49  	GatewayTnId string `json:"gateway_tn_id,omitempty"`
    50  
    51  	// Flag to identify if this is an active gateway
    52  	IsGatewayActive bool `json:"is_gateway_active,omitempty"`
    53  
    54  	// Private IP address of the virtual machine
    55  	PrivateIp string `json:"private_ip,omitempty"`
    56  
    57  	// Public IP address of the virtual machine
    58  	PublicIp string `json:"public_ip,omitempty"`
    59  }