diff --git a/apis/id/id.go b/apis/id/id.go index 7d7f5df..49d5155 100644 --- a/apis/id/id.go +++ b/apis/id/id.go @@ -38,6 +38,19 @@ type PartitionNodeID struct { Node string `json:"node" yaml:"node" protobuf:"bytes,3,opt,name=node"` } +type PartitionProviderNodeID struct { + // Partition defines the partition this resource belongs to + Partition string `json:"partition" yaml:"partition" protobuf:"bytes,1,opt,name=partition"` + // SiteID define the siteid of the node + SiteID `json:",inline" yaml:",inline" protobuf:"bytes,2,opt,name=siteID"` + // Node defines the name of the node + Node string `json:"node" yaml:"node" protobuf:"bytes,3,opt,name=node"` + // Provider defines the provider implementing this resource. + Provider string `json:"provider" yaml:"provider" protobuf:"bytes,4,opt,name=provider"` + // PlatformType define the type of platform implementing the nodespec + PlatformType string `json:"platformType" yaml:"platformType" protobuf:"bytes,5,opt,name=platformType"` +} + type PartitionPortID struct { PartitionNodeID `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=nodeID"` // ModuleBay defines the moduleBay reference id @@ -48,6 +61,8 @@ type PartitionPortID struct { Port int `json:"port" yaml:"port" protobuf:"bytes,4,opt,name=port"` } + + type PartitionAdaptorID struct { PartitionPortID `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=nodeID"` // Adaptor defines the name of the adaptor @@ -87,6 +102,22 @@ type PartitionEndpointID struct { Name *string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,8,opt,name=name"` } +type PartitionProviderEndpointID struct { + PartitionProviderNodeID `json:",inline" yaml:",inline" protobuf:"bytes,2,opt,name=nodeID"` + // ModuleBay defines the moduleBay reference id + ModuleBay *int `json:"moduleBay,omitempty" yaml:"moduleBay,omitempty" protobuf:"bytes,3,opt,name=moduleBay"` + // Module defines the module reference id + Module *int `json:"module,omitempty" yaml:"module,omitempty" protobuf:"bytes,4,opt,name=module"` + // Port defines the id of the port + Port int `json:"port" yaml:"port" protobuf:"bytes,5,opt,name=port"` + // Adaptor defines the name of the adaptor + Adaptor *string `json:"adaptor,omitempty" yaml:"adaptor,omitempty" protobuf:"bytes,6,opt,name=adaptor"` + // Endpoint defines the name of the endpoint + Endpoint int `json:"endpoint" yaml:"endpoint" protobuf:"bytes,7,opt,name=endpoint"` + // Name is used to refer to internal names of the node + Name *string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,8,opt,name=name"` +} + type ClusterID struct { SiteID `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=siteID"` // Cluster defines the name of the cluster diff --git a/apis/id/zz_generated.deepcopy.go b/apis/id/zz_generated.deepcopy.go index 6dbd370..5a34a3c 100644 --- a/apis/id/zz_generated.deepcopy.go +++ b/apis/id/zz_generated.deepcopy.go @@ -228,6 +228,60 @@ func (in *PartitionPortID) DeepCopy() *PartitionPortID { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PartitionProviderEndpointID) DeepCopyInto(out *PartitionProviderEndpointID) { + *out = *in + out.PartitionProviderNodeID = in.PartitionProviderNodeID + if in.ModuleBay != nil { + in, out := &in.ModuleBay, &out.ModuleBay + *out = new(int) + **out = **in + } + if in.Module != nil { + in, out := &in.Module, &out.Module + *out = new(int) + **out = **in + } + if in.Adaptor != nil { + in, out := &in.Adaptor, &out.Adaptor + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionProviderEndpointID. +func (in *PartitionProviderEndpointID) DeepCopy() *PartitionProviderEndpointID { + if in == nil { + return nil + } + out := new(PartitionProviderEndpointID) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PartitionProviderNodeID) DeepCopyInto(out *PartitionProviderNodeID) { + *out = *in + out.SiteID = in.SiteID + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionProviderNodeID. +func (in *PartitionProviderNodeID) DeepCopy() *PartitionProviderNodeID { + if in == nil { + return nil + } + out := new(PartitionProviderNodeID) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SiteID) DeepCopyInto(out *SiteID) { *out = *in diff --git a/apis/infra/v1alpha1/zz_generated.conversion.go b/apis/infra/v1alpha1/zz_generated.conversion.go index d67c13f..ff0c49c 100644 --- a/apis/infra/v1alpha1/zz_generated.conversion.go +++ b/apis/infra/v1alpha1/zz_generated.conversion.go @@ -1433,7 +1433,6 @@ func Convert_infra_LinkSetList_To_v1alpha1_LinkSetList(in *infra.LinkSetList, ou return autoConvert_infra_LinkSetList_To_v1alpha1_LinkSetList(in, out, s) } - func autoConvert_v1alpha1_LinkSetStatus_To_infra_LinkSetStatus(in *LinkSetStatus, out *infra.LinkSetStatus, s conversion.Scope) error { if err := asv1alpha1.Convert_v1alpha1_ConditionedStatus_To_condition_ConditionedStatus(&in.ConditionedStatus, &out.ConditionedStatus, s); err != nil { return err