/
hashicorp_cloud_consul_telemetry20230414_get_service_topology_request_service_filter.go
66 lines (51 loc) · 2.56 KB
/
hashicorp_cloud_consul_telemetry20230414_get_service_topology_request_service_filter.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// 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
}