// 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"
)

// HashicorpCloudConsulTelemetry20230414GetServiceTopologyRequestServiceFilter A service filter is a service used to limit the response of GetServiceTopology.
//
// swagger:model hashicorp.cloud.consul_telemetry_20230414.GetServiceTopologyRequest.ServiceFilter
type HashicorpCloudConsulTelemetry20230414GetServiceTopologyRequestServiceFilter struct {

	// Cluster ID is the name of the cluster in GNM. This is the user settable name.
	ClusterID string `json:"cluster_id,omitempty"`

	// The internal id the Consul cluster the service is registered with. This is from global-network-manager.
	ClusterInternalID string `json:"cluster_internal_id,omitempty"`

	// Name of the service.
	Name string `json:"name,omitempty"`

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

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

	// trust_domain of the cluster. This is a globally unique UUID created by the Consul cluster on startup
	// for its certificate authority if connect is enabled: https://developer.hashicorp.com/consul/api-docs/connect/ca#sample-request.
	TrustDomain string `json:"trust_domain,omitempty"`
}

// Validate validates this hashicorp cloud consul telemetry 20230414 get service topology request service filter
func (m *HashicorpCloudConsulTelemetry20230414GetServiceTopologyRequestServiceFilter) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud consul telemetry 20230414 get service topology request service filter based on context it is used
func (m *HashicorpCloudConsulTelemetry20230414GetServiceTopologyRequestServiceFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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