// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// HashicorpCloudGlobalNetworkManager20220215ServiceInstance hashicorp cloud global network manager 20220215 service instance
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.ServiceInstance
type HashicorpCloudGlobalNetworkManager20220215ServiceInstance struct {

	// Service-specific IP address or hostname. If no value is specified, the IP address of the agent node is used by default.
	Address string `json:"address,omitempty"`

	// The unique identifier of the Consul cluster the service is registered with
	ClusterID string `json:"cluster_id,omitempty"`

	// V2 resource id for parent cluster
	ClusterResourceID string `json:"cluster_resource_id,omitempty"`

	// V2 resource name for parent cluster
	ClusterResourceName string `json:"cluster_resource_name,omitempty"`

	// True if the service is connected to an Envoy mesh proxy.
	ConnectedWithProxy bool `json:"connected_with_proxy,omitempty"`

	// external source
	ExternalSource string `json:"external_source,omitempty"`

	// Service instance ID
	ID string `json:"id,omitempty"`

	// `Kind` of service
	Kind string `json:"kind,omitempty"`

	// meta
	Meta map[string]string `json:"meta,omitempty"`

	// Service name
	Name string `json:"name,omitempty"`

	// Namespace where the service is deployed.
	Namespace string `json:"namespace,omitempty"`

	// Consul node the service is registered on
	Node string `json:"node,omitempty"`

	// node checks critical
	NodeChecksCritical int32 `json:"node_checks_critical,omitempty"`

	// node checks passing
	NodeChecksPassing int32 `json:"node_checks_passing,omitempty"`

	// node checks warning
	NodeChecksWarning int32 `json:"node_checks_warning,omitempty"`

	// Partition where the service is deployed.
	Partition string `json:"partition,omitempty"`

	// Port number of the service
	Port int32 `json:"port,omitempty"`

	// proxy checks critical
	ProxyChecksCritical int32 `json:"proxy_checks_critical,omitempty"`

	// proxy checks passing
	ProxyChecksPassing int32 `json:"proxy_checks_passing,omitempty"`

	// proxy checks warning
	ProxyChecksWarning int32 `json:"proxy_checks_warning,omitempty"`

	// service checks critical
	ServiceChecksCritical int32 `json:"service_checks_critical,omitempty"`

	// service checks passing
	ServiceChecksPassing int32 `json:"service_checks_passing,omitempty"`

	// service checks warning
	ServiceChecksWarning int32 `json:"service_checks_warning,omitempty"`

	// Represents overall service instance health status as determined by the highest elevated health check
	// This can be any of "passing", "warning", "critical", "none"
	Status string `json:"status,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

// Validate validates this hashicorp cloud global network manager 20220215 service instance
func (m *HashicorpCloudGlobalNetworkManager20220215ServiceInstance) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud global network manager 20220215 service instance based on context it is used
func (m *HashicorpCloudGlobalNetworkManager20220215ServiceInstance) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *HashicorpCloudGlobalNetworkManager20220215ServiceInstance) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *HashicorpCloudGlobalNetworkManager20220215ServiceInstance) UnmarshalBinary(b []byte) error {
	var res HashicorpCloudGlobalNetworkManager20220215ServiceInstance
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
