diff --git a/apis/healthcareapis/v1beta1/zz_generated.deepcopy.go b/apis/healthcareapis/v1beta1/zz_generated.deepcopy.go index 3f81a663a..3dda03281 100644 --- a/apis/healthcareapis/v1beta1/zz_generated.deepcopy.go +++ b/apis/healthcareapis/v1beta1/zz_generated.deepcopy.go @@ -792,6 +792,451 @@ func (in *HealthcareFHIRServiceStatus) DeepCopy() *HealthcareFHIRServiceStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechService) DeepCopyInto(out *HealthcareMedtechService) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechService. +func (in *HealthcareMedtechService) DeepCopy() *HealthcareMedtechService { + if in == nil { + return nil + } + out := new(HealthcareMedtechService) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *HealthcareMedtechService) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestination) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestination) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestination. +func (in *HealthcareMedtechServiceFHIRDestination) DeepCopy() *HealthcareMedtechServiceFHIRDestination { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestination) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *HealthcareMedtechServiceFHIRDestination) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestinationList) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestinationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HealthcareMedtechServiceFHIRDestination, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestinationList. +func (in *HealthcareMedtechServiceFHIRDestinationList) DeepCopy() *HealthcareMedtechServiceFHIRDestinationList { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestinationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *HealthcareMedtechServiceFHIRDestinationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestinationObservation) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestinationObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestinationObservation. +func (in *HealthcareMedtechServiceFHIRDestinationObservation) DeepCopy() *HealthcareMedtechServiceFHIRDestinationObservation { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestinationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestinationParameters) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestinationParameters) { + *out = *in + if in.DestinationFHIRMappingJSON != nil { + in, out := &in.DestinationFHIRMappingJSON, &out.DestinationFHIRMappingJSON + *out = new(string) + **out = **in + } + if in.DestinationFHIRServiceID != nil { + in, out := &in.DestinationFHIRServiceID, &out.DestinationFHIRServiceID + *out = new(string) + **out = **in + } + if in.DestinationFHIRServiceIDRef != nil { + in, out := &in.DestinationFHIRServiceIDRef, &out.DestinationFHIRServiceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.DestinationFHIRServiceIDSelector != nil { + in, out := &in.DestinationFHIRServiceIDSelector, &out.DestinationFHIRServiceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.DestinationIdentityResolutionType != nil { + in, out := &in.DestinationIdentityResolutionType, &out.DestinationIdentityResolutionType + *out = new(string) + **out = **in + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.MedtechServiceID != nil { + in, out := &in.MedtechServiceID, &out.MedtechServiceID + *out = new(string) + **out = **in + } + if in.MedtechServiceIDRef != nil { + in, out := &in.MedtechServiceIDRef, &out.MedtechServiceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.MedtechServiceIDSelector != nil { + in, out := &in.MedtechServiceIDSelector, &out.MedtechServiceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestinationParameters. +func (in *HealthcareMedtechServiceFHIRDestinationParameters) DeepCopy() *HealthcareMedtechServiceFHIRDestinationParameters { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestinationParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestinationSpec) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestinationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestinationSpec. +func (in *HealthcareMedtechServiceFHIRDestinationSpec) DeepCopy() *HealthcareMedtechServiceFHIRDestinationSpec { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestinationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceFHIRDestinationStatus) DeepCopyInto(out *HealthcareMedtechServiceFHIRDestinationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceFHIRDestinationStatus. +func (in *HealthcareMedtechServiceFHIRDestinationStatus) DeepCopy() *HealthcareMedtechServiceFHIRDestinationStatus { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceFHIRDestinationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceIdentityObservation) DeepCopyInto(out *HealthcareMedtechServiceIdentityObservation) { + *out = *in + if in.PrincipalID != nil { + in, out := &in.PrincipalID, &out.PrincipalID + *out = new(string) + **out = **in + } + if in.TenantID != nil { + in, out := &in.TenantID, &out.TenantID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceIdentityObservation. +func (in *HealthcareMedtechServiceIdentityObservation) DeepCopy() *HealthcareMedtechServiceIdentityObservation { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceIdentityObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceIdentityParameters) DeepCopyInto(out *HealthcareMedtechServiceIdentityParameters) { + *out = *in + if in.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceIdentityParameters. +func (in *HealthcareMedtechServiceIdentityParameters) DeepCopy() *HealthcareMedtechServiceIdentityParameters { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceIdentityParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceList) DeepCopyInto(out *HealthcareMedtechServiceList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HealthcareMedtechService, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceList. +func (in *HealthcareMedtechServiceList) DeepCopy() *HealthcareMedtechServiceList { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *HealthcareMedtechServiceList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceObservation) DeepCopyInto(out *HealthcareMedtechServiceObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]HealthcareMedtechServiceIdentityObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceObservation. +func (in *HealthcareMedtechServiceObservation) DeepCopy() *HealthcareMedtechServiceObservation { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceParameters) DeepCopyInto(out *HealthcareMedtechServiceParameters) { + *out = *in + if in.DeviceMappingJSON != nil { + in, out := &in.DeviceMappingJSON, &out.DeviceMappingJSON + *out = new(string) + **out = **in + } + if in.EventHubConsumerGroupName != nil { + in, out := &in.EventHubConsumerGroupName, &out.EventHubConsumerGroupName + *out = new(string) + **out = **in + } + if in.EventHubConsumerGroupNameRef != nil { + in, out := &in.EventHubConsumerGroupNameRef, &out.EventHubConsumerGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EventHubConsumerGroupNameSelector != nil { + in, out := &in.EventHubConsumerGroupNameSelector, &out.EventHubConsumerGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.EventHubName != nil { + in, out := &in.EventHubName, &out.EventHubName + *out = new(string) + **out = **in + } + if in.EventHubNameRef != nil { + in, out := &in.EventHubNameRef, &out.EventHubNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EventHubNameSelector != nil { + in, out := &in.EventHubNameSelector, &out.EventHubNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.EventHubNamespaceName != nil { + in, out := &in.EventHubNamespaceName, &out.EventHubNamespaceName + *out = new(string) + **out = **in + } + if in.EventHubNamespaceNameRef != nil { + in, out := &in.EventHubNamespaceNameRef, &out.EventHubNamespaceNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EventHubNamespaceNameSelector != nil { + in, out := &in.EventHubNamespaceNameSelector, &out.EventHubNamespaceNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]HealthcareMedtechServiceIdentityParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.WorkspaceID != nil { + in, out := &in.WorkspaceID, &out.WorkspaceID + *out = new(string) + **out = **in + } + if in.WorkspaceIDRef != nil { + in, out := &in.WorkspaceIDRef, &out.WorkspaceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.WorkspaceIDSelector != nil { + in, out := &in.WorkspaceIDSelector, &out.WorkspaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceParameters. +func (in *HealthcareMedtechServiceParameters) DeepCopy() *HealthcareMedtechServiceParameters { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceSpec) DeepCopyInto(out *HealthcareMedtechServiceSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceSpec. +func (in *HealthcareMedtechServiceSpec) DeepCopy() *HealthcareMedtechServiceSpec { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HealthcareMedtechServiceStatus) DeepCopyInto(out *HealthcareMedtechServiceStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthcareMedtechServiceStatus. +func (in *HealthcareMedtechServiceStatus) DeepCopy() *HealthcareMedtechServiceStatus { + if in == nil { + return nil + } + out := new(HealthcareMedtechServiceStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HealthcareService) DeepCopyInto(out *HealthcareService) { *out = *in diff --git a/apis/healthcareapis/v1beta1/zz_generated.managed.go b/apis/healthcareapis/v1beta1/zz_generated.managed.go index eb1b9d63e..3580d36bd 100644 --- a/apis/healthcareapis/v1beta1/zz_generated.managed.go +++ b/apis/healthcareapis/v1beta1/zz_generated.managed.go @@ -139,6 +139,138 @@ func (mg *HealthcareFHIRService) SetWriteConnectionSecretToReference(r *xpv1.Sec mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this HealthcareMedtechService. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *HealthcareMedtechService) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this HealthcareMedtechService. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *HealthcareMedtechService) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this HealthcareMedtechServiceFHIRDestination. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *HealthcareMedtechServiceFHIRDestination) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this HealthcareMedtechServiceFHIRDestination. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *HealthcareMedtechServiceFHIRDestination) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this HealthcareService. func (mg *HealthcareService) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/healthcareapis/v1beta1/zz_generated.managedlist.go b/apis/healthcareapis/v1beta1/zz_generated.managedlist.go index 9a3f142bd..72250c89d 100644 --- a/apis/healthcareapis/v1beta1/zz_generated.managedlist.go +++ b/apis/healthcareapis/v1beta1/zz_generated.managedlist.go @@ -25,6 +25,24 @@ func (l *HealthcareFHIRServiceList) GetItems() []resource.Managed { return items } +// GetItems of this HealthcareMedtechServiceFHIRDestinationList. +func (l *HealthcareMedtechServiceFHIRDestinationList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this HealthcareMedtechServiceList. +func (l *HealthcareMedtechServiceList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this HealthcareServiceList. func (l *HealthcareServiceList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/healthcareapis/v1beta1/zz_generated.resolvers.go b/apis/healthcareapis/v1beta1/zz_generated.resolvers.go index 8058f0608..5235458a8 100644 --- a/apis/healthcareapis/v1beta1/zz_generated.resolvers.go +++ b/apis/healthcareapis/v1beta1/zz_generated.resolvers.go @@ -10,6 +10,8 @@ import ( reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" v1beta1 "github.com/upbound/provider-azure/apis/azure/v1beta1" + v1beta11 "github.com/upbound/provider-azure/apis/eventhub/v1beta1" + rconfig "github.com/upbound/provider-azure/apis/rconfig" resource "github.com/upbound/upjet/pkg/resource" client "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -82,6 +84,122 @@ func (mg *HealthcareFHIRService) ResolveReferences(ctx context.Context, c client return nil } +// ResolveReferences of this HealthcareMedtechService. +func (mg *HealthcareMedtechService) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EventHubConsumerGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.EventHubConsumerGroupNameRef, + Selector: mg.Spec.ForProvider.EventHubConsumerGroupNameSelector, + To: reference.To{ + List: &v1beta11.ConsumerGroupList{}, + Managed: &v1beta11.ConsumerGroup{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EventHubConsumerGroupName") + } + mg.Spec.ForProvider.EventHubConsumerGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EventHubConsumerGroupNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EventHubName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.EventHubNameRef, + Selector: mg.Spec.ForProvider.EventHubNameSelector, + To: reference.To{ + List: &v1beta11.EventHubList{}, + Managed: &v1beta11.EventHub{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EventHubName") + } + mg.Spec.ForProvider.EventHubName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EventHubNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EventHubNamespaceName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.EventHubNamespaceNameRef, + Selector: mg.Spec.ForProvider.EventHubNamespaceNameSelector, + To: reference.To{ + List: &v1beta11.EventHubNamespaceList{}, + Managed: &v1beta11.EventHubNamespace{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EventHubNamespaceName") + } + mg.Spec.ForProvider.EventHubNamespaceName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EventHubNamespaceNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.WorkspaceID), + Extract: rconfig.ExtractResourceID(), + Reference: mg.Spec.ForProvider.WorkspaceIDRef, + Selector: mg.Spec.ForProvider.WorkspaceIDSelector, + To: reference.To{ + List: &HealthcareWorkspaceList{}, + Managed: &HealthcareWorkspace{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.WorkspaceID") + } + mg.Spec.ForProvider.WorkspaceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.WorkspaceIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this HealthcareMedtechServiceFHIRDestination. +func (mg *HealthcareMedtechServiceFHIRDestination) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.DestinationFHIRServiceID), + Extract: rconfig.ExtractResourceID(), + Reference: mg.Spec.ForProvider.DestinationFHIRServiceIDRef, + Selector: mg.Spec.ForProvider.DestinationFHIRServiceIDSelector, + To: reference.To{ + List: &HealthcareFHIRServiceList{}, + Managed: &HealthcareFHIRService{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.DestinationFHIRServiceID") + } + mg.Spec.ForProvider.DestinationFHIRServiceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.DestinationFHIRServiceIDRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.MedtechServiceID), + Extract: rconfig.ExtractResourceID(), + Reference: mg.Spec.ForProvider.MedtechServiceIDRef, + Selector: mg.Spec.ForProvider.MedtechServiceIDSelector, + To: reference.To{ + List: &HealthcareMedtechServiceList{}, + Managed: &HealthcareMedtechService{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.MedtechServiceID") + } + mg.Spec.ForProvider.MedtechServiceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.MedtechServiceIDRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this HealthcareService. func (mg *HealthcareService) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) diff --git a/apis/healthcareapis/v1beta1/zz_generated_terraformed.go b/apis/healthcareapis/v1beta1/zz_generated_terraformed.go index 8deef901e..ea36aa5f8 100755 --- a/apis/healthcareapis/v1beta1/zz_generated_terraformed.go +++ b/apis/healthcareapis/v1beta1/zz_generated_terraformed.go @@ -161,6 +161,154 @@ func (tr *HealthcareFHIRService) GetTerraformSchemaVersion() int { return 1 } +// GetTerraformResourceType returns Terraform resource type for this HealthcareMedtechService +func (mg *HealthcareMedtechService) GetTerraformResourceType() string { + return "azurerm_healthcare_medtech_service" +} + +// GetConnectionDetailsMapping for this HealthcareMedtechService +func (tr *HealthcareMedtechService) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this HealthcareMedtechService +func (tr *HealthcareMedtechService) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this HealthcareMedtechService +func (tr *HealthcareMedtechService) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this HealthcareMedtechService +func (tr *HealthcareMedtechService) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this HealthcareMedtechService +func (tr *HealthcareMedtechService) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this HealthcareMedtechService +func (tr *HealthcareMedtechService) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this HealthcareMedtechService using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *HealthcareMedtechService) LateInitialize(attrs []byte) (bool, error) { + params := &HealthcareMedtechServiceParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *HealthcareMedtechService) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this HealthcareMedtechServiceFHIRDestination +func (mg *HealthcareMedtechServiceFHIRDestination) GetTerraformResourceType() string { + return "azurerm_healthcare_medtech_service_fhir_destination" +} + +// GetConnectionDetailsMapping for this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this HealthcareMedtechServiceFHIRDestination +func (tr *HealthcareMedtechServiceFHIRDestination) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this HealthcareMedtechServiceFHIRDestination using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *HealthcareMedtechServiceFHIRDestination) LateInitialize(attrs []byte) (bool, error) { + params := &HealthcareMedtechServiceFHIRDestinationParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *HealthcareMedtechServiceFHIRDestination) GetTerraformSchemaVersion() int { + return 1 +} + // GetTerraformResourceType returns Terraform resource type for this HealthcareService func (mg *HealthcareService) GetTerraformResourceType() string { return "azurerm_healthcare_service" diff --git a/apis/healthcareapis/v1beta1/zz_healthcaremedtechservice_types.go b/apis/healthcareapis/v1beta1/zz_healthcaremedtechservice_types.go new file mode 100755 index 000000000..4fd5e82b9 --- /dev/null +++ b/apis/healthcareapis/v1beta1/zz_healthcaremedtechservice_types.go @@ -0,0 +1,160 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type HealthcareMedtechServiceIdentityObservation struct { + + // The Principal ID associated with this System Assigned Managed Service Identity. + PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"` + + // The Tenant ID associated with this System Assigned Managed Service Identity. + TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"` +} + +type HealthcareMedtechServiceIdentityParameters struct { + + // Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are SystemAssigned. + // +kubebuilder:validation:Required + Type *string `json:"type" tf:"type,omitempty"` +} + +type HealthcareMedtechServiceObservation struct { + + // The ID of the Healthcare Med Tech Service. + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // An identity block as defined below. + // +kubebuilder:validation:Optional + Identity []HealthcareMedtechServiceIdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"` +} + +type HealthcareMedtechServiceParameters struct { + + // Specifies the Device Mappings of the Med Tech Service. + // +kubebuilder:validation:Required + DeviceMappingJSON *string `json:"deviceMappingJson" tf:"device_mapping_json,omitempty"` + + // Specifies the Consumer Group of the Event Hub to connect to. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.ConsumerGroup + // +kubebuilder:validation:Optional + EventHubConsumerGroupName *string `json:"eventhubConsumerGroupName,omitempty" tf:"eventhub_consumer_group_name,omitempty"` + + // Reference to a ConsumerGroup in eventhub to populate eventhubConsumerGroupName. + // +kubebuilder:validation:Optional + EventHubConsumerGroupNameRef *v1.Reference `json:"eventhubConsumerGroupNameRef,omitempty" tf:"-"` + + // Selector for a ConsumerGroup in eventhub to populate eventhubConsumerGroupName. + // +kubebuilder:validation:Optional + EventHubConsumerGroupNameSelector *v1.Selector `json:"eventhubConsumerGroupNameSelector,omitempty" tf:"-"` + + // Specifies the name of the Event Hub to connect to. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHub + // +kubebuilder:validation:Optional + EventHubName *string `json:"eventhubName,omitempty" tf:"eventhub_name,omitempty"` + + // Reference to a EventHub in eventhub to populate eventhubName. + // +kubebuilder:validation:Optional + EventHubNameRef *v1.Reference `json:"eventhubNameRef,omitempty" tf:"-"` + + // Selector for a EventHub in eventhub to populate eventhubName. + // +kubebuilder:validation:Optional + EventHubNameSelector *v1.Selector `json:"eventhubNameSelector,omitempty" tf:"-"` + + // Specifies the namespace name of the Event Hub to connect to. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHubNamespace + // +kubebuilder:validation:Optional + EventHubNamespaceName *string `json:"eventhubNamespaceName,omitempty" tf:"eventhub_namespace_name,omitempty"` + + // Reference to a EventHubNamespace in eventhub to populate eventhubNamespaceName. + // +kubebuilder:validation:Optional + EventHubNamespaceNameRef *v1.Reference `json:"eventhubNamespaceNameRef,omitempty" tf:"-"` + + // Selector for a EventHubNamespace in eventhub to populate eventhubNamespaceName. + // +kubebuilder:validation:Optional + EventHubNamespaceNameSelector *v1.Selector `json:"eventhubNamespaceNameSelector,omitempty" tf:"-"` + + // An identity block as defined below. + // +kubebuilder:validation:Optional + Identity []HealthcareMedtechServiceIdentityParameters `json:"identity,omitempty" tf:"identity,omitempty"` + + // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` + + // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. + // +crossplane:generate:reference:type=HealthcareWorkspace + // +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID() + // +kubebuilder:validation:Optional + WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"` + + // Reference to a HealthcareWorkspace to populate workspaceId. + // +kubebuilder:validation:Optional + WorkspaceIDRef *v1.Reference `json:"workspaceIdRef,omitempty" tf:"-"` + + // Selector for a HealthcareWorkspace to populate workspaceId. + // +kubebuilder:validation:Optional + WorkspaceIDSelector *v1.Selector `json:"workspaceIdSelector,omitempty" tf:"-"` +} + +// HealthcareMedtechServiceSpec defines the desired state of HealthcareMedtechService +type HealthcareMedtechServiceSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider HealthcareMedtechServiceParameters `json:"forProvider"` +} + +// HealthcareMedtechServiceStatus defines the observed state of HealthcareMedtechService. +type HealthcareMedtechServiceStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider HealthcareMedtechServiceObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// HealthcareMedtechService is the Schema for the HealthcareMedtechServices API. Manages a Healthcare MedTech (Internet of Medical Things) devices Service. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type HealthcareMedtechService struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec HealthcareMedtechServiceSpec `json:"spec"` + Status HealthcareMedtechServiceStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// HealthcareMedtechServiceList contains a list of HealthcareMedtechServices +type HealthcareMedtechServiceList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []HealthcareMedtechService `json:"items"` +} + +// Repository type metadata. +var ( + HealthcareMedtechService_Kind = "HealthcareMedtechService" + HealthcareMedtechService_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: HealthcareMedtechService_Kind}.String() + HealthcareMedtechService_KindAPIVersion = HealthcareMedtechService_Kind + "." + CRDGroupVersion.String() + HealthcareMedtechService_GroupVersionKind = CRDGroupVersion.WithKind(HealthcareMedtechService_Kind) +) + +func init() { + SchemeBuilder.Register(&HealthcareMedtechService{}, &HealthcareMedtechServiceList{}) +} diff --git a/apis/healthcareapis/v1beta1/zz_healthcaremedtechservicefhirdestination_types.go b/apis/healthcareapis/v1beta1/zz_healthcaremedtechservicefhirdestination_types.go new file mode 100755 index 000000000..24968d8b3 --- /dev/null +++ b/apis/healthcareapis/v1beta1/zz_healthcaremedtechservicefhirdestination_types.go @@ -0,0 +1,112 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type HealthcareMedtechServiceFHIRDestinationObservation struct { + + // The ID of the Healthcare Med Tech Service Fhir Destination. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type HealthcareMedtechServiceFHIRDestinationParameters struct { + + // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. + // +kubebuilder:validation:Required + DestinationFHIRMappingJSON *string `json:"destinationFhirMappingJson" tf:"destination_fhir_mapping_json,omitempty"` + + // The ID of the Healthcare Med Tech Service Fhir Destination. + // +crossplane:generate:reference:type=HealthcareFHIRService + // +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID() + // +kubebuilder:validation:Optional + DestinationFHIRServiceID *string `json:"destinationFhirServiceId,omitempty" tf:"destination_fhir_service_id,omitempty"` + + // Reference to a HealthcareFHIRService to populate destinationFhirServiceId. + // +kubebuilder:validation:Optional + DestinationFHIRServiceIDRef *v1.Reference `json:"destinationFhirServiceIdRef,omitempty" tf:"-"` + + // Selector for a HealthcareFHIRService to populate destinationFhirServiceId. + // +kubebuilder:validation:Optional + DestinationFHIRServiceIDSelector *v1.Selector `json:"destinationFhirServiceIdSelector,omitempty" tf:"-"` + + // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are Create, Lookup. + // +kubebuilder:validation:Required + DestinationIdentityResolutionType *string `json:"destinationIdentityResolutionType" tf:"destination_identity_resolution_type,omitempty"` + + // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. + // +crossplane:generate:reference:type=HealthcareMedtechService + // +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID() + // +kubebuilder:validation:Optional + MedtechServiceID *string `json:"medtechServiceId,omitempty" tf:"medtech_service_id,omitempty"` + + // Reference to a HealthcareMedtechService to populate medtechServiceId. + // +kubebuilder:validation:Optional + MedtechServiceIDRef *v1.Reference `json:"medtechServiceIdRef,omitempty" tf:"-"` + + // Selector for a HealthcareMedtechService to populate medtechServiceId. + // +kubebuilder:validation:Optional + MedtechServiceIDSelector *v1.Selector `json:"medtechServiceIdSelector,omitempty" tf:"-"` +} + +// HealthcareMedtechServiceFHIRDestinationSpec defines the desired state of HealthcareMedtechServiceFHIRDestination +type HealthcareMedtechServiceFHIRDestinationSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider HealthcareMedtechServiceFHIRDestinationParameters `json:"forProvider"` +} + +// HealthcareMedtechServiceFHIRDestinationStatus defines the observed state of HealthcareMedtechServiceFHIRDestination. +type HealthcareMedtechServiceFHIRDestinationStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider HealthcareMedtechServiceFHIRDestinationObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// HealthcareMedtechServiceFHIRDestination is the Schema for the HealthcareMedtechServiceFHIRDestinations API. Manages a Healthcare Med Tech (Internet of Medical Things) Service Fhir Destination. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type HealthcareMedtechServiceFHIRDestination struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec HealthcareMedtechServiceFHIRDestinationSpec `json:"spec"` + Status HealthcareMedtechServiceFHIRDestinationStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// HealthcareMedtechServiceFHIRDestinationList contains a list of HealthcareMedtechServiceFHIRDestinations +type HealthcareMedtechServiceFHIRDestinationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []HealthcareMedtechServiceFHIRDestination `json:"items"` +} + +// Repository type metadata. +var ( + HealthcareMedtechServiceFHIRDestination_Kind = "HealthcareMedtechServiceFHIRDestination" + HealthcareMedtechServiceFHIRDestination_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: HealthcareMedtechServiceFHIRDestination_Kind}.String() + HealthcareMedtechServiceFHIRDestination_KindAPIVersion = HealthcareMedtechServiceFHIRDestination_Kind + "." + CRDGroupVersion.String() + HealthcareMedtechServiceFHIRDestination_GroupVersionKind = CRDGroupVersion.WithKind(HealthcareMedtechServiceFHIRDestination_Kind) +) + +func init() { + SchemeBuilder.Register(&HealthcareMedtechServiceFHIRDestination{}, &HealthcareMedtechServiceFHIRDestinationList{}) +} diff --git a/apis/timeseriesinsights/v1beta1/zz_eventsourceeventhub_types.go b/apis/timeseriesinsights/v1beta1/zz_eventsourceeventhub_types.go new file mode 100755 index 000000000..2c5b801f6 --- /dev/null +++ b/apis/timeseriesinsights/v1beta1/zz_eventsourceeventhub_types.go @@ -0,0 +1,168 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type EventSourceEventHubObservation struct { + + // The ID of the IoT Time Series Insights EventHub Event Source. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type EventSourceEventHubParameters struct { + + // Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.ConsumerGroup + // +kubebuilder:validation:Optional + ConsumerGroupName *string `json:"consumerGroupName,omitempty" tf:"consumer_group_name,omitempty"` + + // Reference to a ConsumerGroup in eventhub to populate consumerGroupName. + // +kubebuilder:validation:Optional + ConsumerGroupNameRef *v1.Reference `json:"consumerGroupNameRef,omitempty" tf:"-"` + + // Selector for a ConsumerGroup in eventhub to populate consumerGroupName. + // +kubebuilder:validation:Optional + ConsumerGroupNameSelector *v1.Selector `json:"consumerGroupNameSelector,omitempty" tf:"-"` + + // Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/timeseriesinsights/v1beta1.Gen2Environment + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + EnvironmentID *string `json:"environmentId,omitempty" tf:"environment_id,omitempty"` + + // Reference to a Gen2Environment in timeseriesinsights to populate environmentId. + // +kubebuilder:validation:Optional + EnvironmentIDRef *v1.Reference `json:"environmentIdRef,omitempty" tf:"-"` + + // Selector for a Gen2Environment in timeseriesinsights to populate environmentId. + // +kubebuilder:validation:Optional + EnvironmentIDSelector *v1.Selector `json:"environmentIdSelector,omitempty" tf:"-"` + + // Specifies the name of the EventHub which will be associated with this resource. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHub + // +kubebuilder:validation:Optional + EventHubName *string `json:"eventhubName,omitempty" tf:"eventhub_name,omitempty"` + + // Reference to a EventHub in eventhub to populate eventhubName. + // +kubebuilder:validation:Optional + EventHubNameRef *v1.Reference `json:"eventhubNameRef,omitempty" tf:"-"` + + // Selector for a EventHub in eventhub to populate eventhubName. + // +kubebuilder:validation:Optional + EventHubNameSelector *v1.Selector `json:"eventhubNameSelector,omitempty" tf:"-"` + + // Specifies the resource id where events will be coming from. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHub + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + EventSourceResourceID *string `json:"eventSourceResourceId,omitempty" tf:"event_source_resource_id,omitempty"` + + // Reference to a EventHub in eventhub to populate eventSourceResourceId. + // +kubebuilder:validation:Optional + EventSourceResourceIDRef *v1.Reference `json:"eventSourceResourceIdRef,omitempty" tf:"-"` + + // Selector for a EventHub in eventhub to populate eventSourceResourceId. + // +kubebuilder:validation:Optional + EventSourceResourceIDSelector *v1.Selector `json:"eventSourceResourceIdSelector,omitempty" tf:"-"` + + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // Specifies the EventHub Namespace name. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHubNamespace + // +kubebuilder:validation:Optional + NamespaceName *string `json:"namespaceName,omitempty" tf:"namespace_name,omitempty"` + + // Reference to a EventHubNamespace in eventhub to populate namespaceName. + // +kubebuilder:validation:Optional + NamespaceNameRef *v1.Reference `json:"namespaceNameRef,omitempty" tf:"-"` + + // Selector for a EventHubNamespace in eventhub to populate namespaceName. + // +kubebuilder:validation:Optional + NamespaceNameSelector *v1.Selector `json:"namespaceNameSelector,omitempty" tf:"-"` + + // Specifies the name of the Shared Access key that grants the Event Source access to the EventHub. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.AuthorizationRule + // +kubebuilder:validation:Optional + SharedAccessKeyName *string `json:"sharedAccessKeyName,omitempty" tf:"shared_access_key_name,omitempty"` + + // Reference to a AuthorizationRule in eventhub to populate sharedAccessKeyName. + // +kubebuilder:validation:Optional + SharedAccessKeyNameRef *v1.Reference `json:"sharedAccessKeyNameRef,omitempty" tf:"-"` + + // Selector for a AuthorizationRule in eventhub to populate sharedAccessKeyName. + // +kubebuilder:validation:Optional + SharedAccessKeyNameSelector *v1.Selector `json:"sharedAccessKeyNameSelector,omitempty" tf:"-"` + + // Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub. + // +kubebuilder:validation:Required + SharedAccessKeySecretRef v1.SecretKeySelector `json:"sharedAccessKeySecretRef" tf:"-"` + + // A mapping of tags to assign to the resource. + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` + + // Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time. + // +kubebuilder:validation:Optional + TimestampPropertyName *string `json:"timestampPropertyName,omitempty" tf:"timestamp_property_name,omitempty"` +} + +// EventSourceEventHubSpec defines the desired state of EventSourceEventHub +type EventSourceEventHubSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider EventSourceEventHubParameters `json:"forProvider"` +} + +// EventSourceEventHubStatus defines the observed state of EventSourceEventHub. +type EventSourceEventHubStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider EventSourceEventHubObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// EventSourceEventHub is the Schema for the EventSourceEventHubs API. Manages an Azure IoT Time Series Insights EventHub Event Source. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type EventSourceEventHub struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec EventSourceEventHubSpec `json:"spec"` + Status EventSourceEventHubStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EventSourceEventHubList contains a list of EventSourceEventHubs +type EventSourceEventHubList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EventSourceEventHub `json:"items"` +} + +// Repository type metadata. +var ( + EventSourceEventHub_Kind = "EventSourceEventHub" + EventSourceEventHub_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EventSourceEventHub_Kind}.String() + EventSourceEventHub_KindAPIVersion = EventSourceEventHub_Kind + "." + CRDGroupVersion.String() + EventSourceEventHub_GroupVersionKind = CRDGroupVersion.WithKind(EventSourceEventHub_Kind) +) + +func init() { + SchemeBuilder.Register(&EventSourceEventHub{}, &EventSourceEventHubList{}) +} diff --git a/apis/timeseriesinsights/v1beta1/zz_generated.deepcopy.go b/apis/timeseriesinsights/v1beta1/zz_generated.deepcopy.go index e39ff9f0a..ceb3bf3f5 100644 --- a/apis/timeseriesinsights/v1beta1/zz_generated.deepcopy.go +++ b/apis/timeseriesinsights/v1beta1/zz_generated.deepcopy.go @@ -14,6 +14,250 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHub) DeepCopyInto(out *EventSourceEventHub) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHub. +func (in *EventSourceEventHub) DeepCopy() *EventSourceEventHub { + if in == nil { + return nil + } + out := new(EventSourceEventHub) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EventSourceEventHub) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHubList) DeepCopyInto(out *EventSourceEventHubList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EventSourceEventHub, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHubList. +func (in *EventSourceEventHubList) DeepCopy() *EventSourceEventHubList { + if in == nil { + return nil + } + out := new(EventSourceEventHubList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EventSourceEventHubList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHubObservation) DeepCopyInto(out *EventSourceEventHubObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHubObservation. +func (in *EventSourceEventHubObservation) DeepCopy() *EventSourceEventHubObservation { + if in == nil { + return nil + } + out := new(EventSourceEventHubObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHubParameters) DeepCopyInto(out *EventSourceEventHubParameters) { + *out = *in + if in.ConsumerGroupName != nil { + in, out := &in.ConsumerGroupName, &out.ConsumerGroupName + *out = new(string) + **out = **in + } + if in.ConsumerGroupNameRef != nil { + in, out := &in.ConsumerGroupNameRef, &out.ConsumerGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ConsumerGroupNameSelector != nil { + in, out := &in.ConsumerGroupNameSelector, &out.ConsumerGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.EnvironmentID != nil { + in, out := &in.EnvironmentID, &out.EnvironmentID + *out = new(string) + **out = **in + } + if in.EnvironmentIDRef != nil { + in, out := &in.EnvironmentIDRef, &out.EnvironmentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EnvironmentIDSelector != nil { + in, out := &in.EnvironmentIDSelector, &out.EnvironmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.EventHubName != nil { + in, out := &in.EventHubName, &out.EventHubName + *out = new(string) + **out = **in + } + if in.EventHubNameRef != nil { + in, out := &in.EventHubNameRef, &out.EventHubNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EventHubNameSelector != nil { + in, out := &in.EventHubNameSelector, &out.EventHubNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.EventSourceResourceID != nil { + in, out := &in.EventSourceResourceID, &out.EventSourceResourceID + *out = new(string) + **out = **in + } + if in.EventSourceResourceIDRef != nil { + in, out := &in.EventSourceResourceIDRef, &out.EventSourceResourceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.EventSourceResourceIDSelector != nil { + in, out := &in.EventSourceResourceIDSelector, &out.EventSourceResourceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.NamespaceName != nil { + in, out := &in.NamespaceName, &out.NamespaceName + *out = new(string) + **out = **in + } + if in.NamespaceNameRef != nil { + in, out := &in.NamespaceNameRef, &out.NamespaceNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.NamespaceNameSelector != nil { + in, out := &in.NamespaceNameSelector, &out.NamespaceNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.SharedAccessKeyName != nil { + in, out := &in.SharedAccessKeyName, &out.SharedAccessKeyName + *out = new(string) + **out = **in + } + if in.SharedAccessKeyNameRef != nil { + in, out := &in.SharedAccessKeyNameRef, &out.SharedAccessKeyNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.SharedAccessKeyNameSelector != nil { + in, out := &in.SharedAccessKeyNameSelector, &out.SharedAccessKeyNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + out.SharedAccessKeySecretRef = in.SharedAccessKeySecretRef + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.TimestampPropertyName != nil { + in, out := &in.TimestampPropertyName, &out.TimestampPropertyName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHubParameters. +func (in *EventSourceEventHubParameters) DeepCopy() *EventSourceEventHubParameters { + if in == nil { + return nil + } + out := new(EventSourceEventHubParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHubSpec) DeepCopyInto(out *EventSourceEventHubSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHubSpec. +func (in *EventSourceEventHubSpec) DeepCopy() *EventSourceEventHubSpec { + if in == nil { + return nil + } + out := new(EventSourceEventHubSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventSourceEventHubStatus) DeepCopyInto(out *EventSourceEventHubStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceEventHubStatus. +func (in *EventSourceEventHubStatus) DeepCopy() *EventSourceEventHubStatus { + if in == nil { + return nil + } + out := new(EventSourceEventHubStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EventSourceIOTHub) DeepCopyInto(out *EventSourceIOTHub) { *out = *in diff --git a/apis/timeseriesinsights/v1beta1/zz_generated.managed.go b/apis/timeseriesinsights/v1beta1/zz_generated.managed.go index 34937bbde..7cd749d4a 100644 --- a/apis/timeseriesinsights/v1beta1/zz_generated.managed.go +++ b/apis/timeseriesinsights/v1beta1/zz_generated.managed.go @@ -7,6 +7,72 @@ package v1beta1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +// GetCondition of this EventSourceEventHub. +func (mg *EventSourceEventHub) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this EventSourceEventHub. +func (mg *EventSourceEventHub) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this EventSourceEventHub. +func (mg *EventSourceEventHub) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this EventSourceEventHub. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *EventSourceEventHub) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this EventSourceEventHub. +func (mg *EventSourceEventHub) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this EventSourceEventHub. +func (mg *EventSourceEventHub) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this EventSourceEventHub. +func (mg *EventSourceEventHub) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this EventSourceEventHub. +func (mg *EventSourceEventHub) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this EventSourceEventHub. +func (mg *EventSourceEventHub) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this EventSourceEventHub. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *EventSourceEventHub) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this EventSourceEventHub. +func (mg *EventSourceEventHub) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this EventSourceEventHub. +func (mg *EventSourceEventHub) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this EventSourceIOTHub. func (mg *EventSourceIOTHub) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/timeseriesinsights/v1beta1/zz_generated.managedlist.go b/apis/timeseriesinsights/v1beta1/zz_generated.managedlist.go index bd884f53f..57592d62b 100644 --- a/apis/timeseriesinsights/v1beta1/zz_generated.managedlist.go +++ b/apis/timeseriesinsights/v1beta1/zz_generated.managedlist.go @@ -7,6 +7,15 @@ package v1beta1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" +// GetItems of this EventSourceEventHubList. +func (l *EventSourceEventHubList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this EventSourceIOTHubList. func (l *EventSourceIOTHubList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/timeseriesinsights/v1beta1/zz_generated.resolvers.go b/apis/timeseriesinsights/v1beta1/zz_generated.resolvers.go index 73425d75e..6c4500f31 100644 --- a/apis/timeseriesinsights/v1beta1/zz_generated.resolvers.go +++ b/apis/timeseriesinsights/v1beta1/zz_generated.resolvers.go @@ -9,13 +9,120 @@ import ( "context" reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" - v1beta11 "github.com/upbound/provider-azure/apis/azure/v1beta1" - v1beta1 "github.com/upbound/provider-azure/apis/devices/v1beta1" - v1beta12 "github.com/upbound/provider-azure/apis/storage/v1beta1" + v1beta12 "github.com/upbound/provider-azure/apis/azure/v1beta1" + v1beta11 "github.com/upbound/provider-azure/apis/devices/v1beta1" + v1beta1 "github.com/upbound/provider-azure/apis/eventhub/v1beta1" + v1beta13 "github.com/upbound/provider-azure/apis/storage/v1beta1" resource "github.com/upbound/upjet/pkg/resource" client "sigs.k8s.io/controller-runtime/pkg/client" ) +// ResolveReferences of this EventSourceEventHub. +func (mg *EventSourceEventHub) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ConsumerGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ConsumerGroupNameRef, + Selector: mg.Spec.ForProvider.ConsumerGroupNameSelector, + To: reference.To{ + List: &v1beta1.ConsumerGroupList{}, + Managed: &v1beta1.ConsumerGroup{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ConsumerGroupName") + } + mg.Spec.ForProvider.ConsumerGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ConsumerGroupNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.EnvironmentIDRef, + Selector: mg.Spec.ForProvider.EnvironmentIDSelector, + To: reference.To{ + List: &Gen2EnvironmentList{}, + Managed: &Gen2Environment{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EnvironmentID") + } + mg.Spec.ForProvider.EnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EnvironmentIDRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EventHubName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.EventHubNameRef, + Selector: mg.Spec.ForProvider.EventHubNameSelector, + To: reference.To{ + List: &v1beta1.EventHubList{}, + Managed: &v1beta1.EventHub{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EventHubName") + } + mg.Spec.ForProvider.EventHubName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EventHubNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EventSourceResourceID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.EventSourceResourceIDRef, + Selector: mg.Spec.ForProvider.EventSourceResourceIDSelector, + To: reference.To{ + List: &v1beta1.EventHubList{}, + Managed: &v1beta1.EventHub{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.EventSourceResourceID") + } + mg.Spec.ForProvider.EventSourceResourceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EventSourceResourceIDRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NamespaceName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.NamespaceNameRef, + Selector: mg.Spec.ForProvider.NamespaceNameSelector, + To: reference.To{ + List: &v1beta1.EventHubNamespaceList{}, + Managed: &v1beta1.EventHubNamespace{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.NamespaceName") + } + mg.Spec.ForProvider.NamespaceName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.NamespaceNameRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.SharedAccessKeyName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.SharedAccessKeyNameRef, + Selector: mg.Spec.ForProvider.SharedAccessKeyNameSelector, + To: reference.To{ + List: &v1beta1.AuthorizationRuleList{}, + Managed: &v1beta1.AuthorizationRule{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.SharedAccessKeyName") + } + mg.Spec.ForProvider.SharedAccessKeyName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.SharedAccessKeyNameRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this EventSourceIOTHub. func (mg *EventSourceIOTHub) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) @@ -29,8 +136,8 @@ func (mg *EventSourceIOTHub) ResolveReferences(ctx context.Context, c client.Rea Reference: mg.Spec.ForProvider.ConsumerGroupNameRef, Selector: mg.Spec.ForProvider.ConsumerGroupNameSelector, To: reference.To{ - List: &v1beta1.IOTHubConsumerGroupList{}, - Managed: &v1beta1.IOTHubConsumerGroup{}, + List: &v1beta11.IOTHubConsumerGroupList{}, + Managed: &v1beta11.IOTHubConsumerGroup{}, }, }) if err != nil { @@ -61,8 +168,8 @@ func (mg *EventSourceIOTHub) ResolveReferences(ctx context.Context, c client.Rea Reference: mg.Spec.ForProvider.EventSourceResourceIDRef, Selector: mg.Spec.ForProvider.EventSourceResourceIDSelector, To: reference.To{ - List: &v1beta1.IOTHubList{}, - Managed: &v1beta1.IOTHub{}, + List: &v1beta11.IOTHubList{}, + Managed: &v1beta11.IOTHub{}, }, }) if err != nil { @@ -77,8 +184,8 @@ func (mg *EventSourceIOTHub) ResolveReferences(ctx context.Context, c client.Rea Reference: mg.Spec.ForProvider.IOTHubNameRef, Selector: mg.Spec.ForProvider.IOTHubNameSelector, To: reference.To{ - List: &v1beta1.IOTHubList{}, - Managed: &v1beta1.IOTHub{}, + List: &v1beta11.IOTHubList{}, + Managed: &v1beta11.IOTHub{}, }, }) if err != nil { @@ -103,8 +210,8 @@ func (mg *Gen2Environment) ResolveReferences(ctx context.Context, c client.Reade Reference: mg.Spec.ForProvider.ResourceGroupNameRef, Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, To: reference.To{ - List: &v1beta11.ResourceGroupList{}, - Managed: &v1beta11.ResourceGroup{}, + List: &v1beta12.ResourceGroupList{}, + Managed: &v1beta12.ResourceGroup{}, }, }) if err != nil { @@ -120,8 +227,8 @@ func (mg *Gen2Environment) ResolveReferences(ctx context.Context, c client.Reade Reference: mg.Spec.ForProvider.Storage[i3].NameRef, Selector: mg.Spec.ForProvider.Storage[i3].NameSelector, To: reference.To{ - List: &v1beta12.AccountList{}, - Managed: &v1beta12.Account{}, + List: &v1beta13.AccountList{}, + Managed: &v1beta13.Account{}, }, }) if err != nil { @@ -174,8 +281,8 @@ func (mg *StandardEnvironment) ResolveReferences(ctx context.Context, c client.R Reference: mg.Spec.ForProvider.ResourceGroupNameRef, Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, To: reference.To{ - List: &v1beta11.ResourceGroupList{}, - Managed: &v1beta11.ResourceGroup{}, + List: &v1beta12.ResourceGroupList{}, + Managed: &v1beta12.ResourceGroup{}, }, }) if err != nil { diff --git a/apis/timeseriesinsights/v1beta1/zz_generated_terraformed.go b/apis/timeseriesinsights/v1beta1/zz_generated_terraformed.go index 7362a04f7..31c72e0b1 100755 --- a/apis/timeseriesinsights/v1beta1/zz_generated_terraformed.go +++ b/apis/timeseriesinsights/v1beta1/zz_generated_terraformed.go @@ -13,6 +13,80 @@ import ( "github.com/upbound/upjet/pkg/resource/json" ) +// GetTerraformResourceType returns Terraform resource type for this EventSourceEventHub +func (mg *EventSourceEventHub) GetTerraformResourceType() string { + return "azurerm_iot_time_series_insights_event_source_eventhub" +} + +// GetConnectionDetailsMapping for this EventSourceEventHub +func (tr *EventSourceEventHub) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"shared_access_key": "spec.forProvider.sharedAccessKeySecretRef"} +} + +// GetObservation of this EventSourceEventHub +func (tr *EventSourceEventHub) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EventSourceEventHub +func (tr *EventSourceEventHub) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EventSourceEventHub +func (tr *EventSourceEventHub) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EventSourceEventHub +func (tr *EventSourceEventHub) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EventSourceEventHub +func (tr *EventSourceEventHub) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this EventSourceEventHub using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EventSourceEventHub) LateInitialize(attrs []byte) (bool, error) { + params := &EventSourceEventHubParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EventSourceEventHub) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this EventSourceIOTHub func (mg *EventSourceIOTHub) GetTerraformResourceType() string { return "azurerm_iot_time_series_insights_event_source_iothub" diff --git a/config/externalname.go b/config/externalname.go index 4a443c8e4..21b140909 100644 --- a/config/externalname.go +++ b/config/externalname.go @@ -1639,6 +1639,18 @@ var ExternalNameConfigs = map[string]config.ExternalName{ // // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlServer1/devOpsAuditingSettings/default "azurerm_mssql_server_microsoft_support_auditing_policy": config.TemplatedStringAsIdentifier("", "{{ .parameters.server_id }}/devOpsAuditingSettings/default"), + + // healthcare + // + // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1 + "azurerm_healthcare_medtech_service": config.TemplatedStringAsIdentifier("name", "{{ .parameters.workspace_id }}/iotConnectors/{{ .external_name }}"), + // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1/fhirDestinations/destination1 + "azurerm_healthcare_medtech_service_fhir_destination": config.TemplatedStringAsIdentifier("name", "{{ .parameters.medtech_service_id }}/fhirDestinations/{{ .external_name }}"), + + // iot + // + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/environment1/eventSources/example + "azurerm_iot_time_series_insights_event_source_eventhub": config.TemplatedStringAsIdentifier("name", "{{ .parameters.environment_id }}/eventSources/{{ .external_name }}"), } func keyVaultURLIDConf(resourceType string) config.ExternalName { diff --git a/config/externalnamenottested.go b/config/externalnamenottested.go index 1900d0bb8..6573d424e 100644 --- a/config/externalnamenottested.go +++ b/config/externalnamenottested.go @@ -638,18 +638,6 @@ var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/timeSeriesDatabaseConnections/connection1 "azurerm_digital_twins_time_series_database_connection": config.TemplatedStringAsIdentifier("name", "{{ .parameters.digital_twins_id }}/timeSeriesDatabaseConnections/{{ .external_name }}"), - // healthcare - // - // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1 - "azurerm_healthcare_medtech_service": config.TemplatedStringAsIdentifier("name", "{{ .parameters.workspace_id }}/iotConnectors/{{ .external_name }}"), - // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1/fhirDestinations/destination1 - "azurerm_healthcare_medtech_service_fhir_destination": config.TemplatedStringAsIdentifier("name", "{{ .parameters.medtech_service_id }}/fhirDestinations/{{ .external_name }}"), - - // iot - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/environment1/eventSources/example - "azurerm_iot_time_series_insights_event_source_eventhub": config.TemplatedStringAsIdentifier("name", "{{ .parameters.environment_id }}/eventSources/{{ .external_name }}"), - // machinelearningservices // // Machine Learning Workspace can be imported using the resource id diff --git a/config/generated.lst b/config/generated.lst index 3ca27945f..90d722411 100644 --- a/config/generated.lst +++ b/config/generated.lst @@ -1 +1 @@ -["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_capacity_reservation","azurerm_capacity_reservation_group","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_access_connector","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_eventhub_namespace_schema_group","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_federated_identity_credential","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_fluid_relay_server","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_active_slot","azurerm_function_app_function","azurerm_function_app_slot","azurerm_gallery_application","azurerm_gallery_application_version","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_management_group","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_microsoft_support_auditing_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_manager","azurerm_network_manager_network_group","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_search_shared_private_link_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_application_live_view","azurerm_spring_cloud_certificate","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_eventhub","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_reference_input_mssql","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_sql_aad_admin","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_site","azurerm_web_application_firewall_policy","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set"] \ No newline at end of file +["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_capacity_reservation","azurerm_capacity_reservation_group","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_access_connector","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_eventhub_namespace_schema_group","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_federated_identity_credential","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_fluid_relay_server","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_active_slot","azurerm_function_app_function","azurerm_function_app_slot","azurerm_gallery_application","azurerm_gallery_application_version","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_medtech_service","azurerm_healthcare_medtech_service_fhir_destination","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_eventhub","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_management_group","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_microsoft_support_auditing_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_manager","azurerm_network_manager_network_group","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_search_shared_private_link_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_application_live_view","azurerm_spring_cloud_certificate","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_eventhub","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_reference_input_mssql","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_sql_aad_admin","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_site","azurerm_web_application_firewall_policy","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set"] \ No newline at end of file diff --git a/config/healthcareapis/config.go b/config/healthcareapis/config.go new file mode 100644 index 000000000..de4ba854b --- /dev/null +++ b/config/healthcareapis/config.go @@ -0,0 +1,53 @@ +/* +Copyright 2022 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package healthcareapis + +import ( + "github.com/upbound/upjet/pkg/config" + + "github.com/upbound/provider-azure/apis/rconfig" +) + +// Configure healthcareapis resource group +func Configure(p *config.Provider) { + p.AddResourceConfigurator("azurerm_healthcare_medtech_service", func(r *config.Resource) { + r.References["workspace_id"] = config.Reference{ + Type: "HealthcareWorkspace", + Extractor: rconfig.ExtractResourceIDFuncPath, + } + r.References["eventhub_namespace_name"] = config.Reference{ + Type: rconfig.APISPackagePath + "/eventhub/v1beta1.EventHubNamespace", + } + r.References["eventhub_name"] = config.Reference{ + Type: rconfig.APISPackagePath + "/eventhub/v1beta1.EventHub", + } + r.References["eventhub_consumer_group_name"] = config.Reference{ + Type: rconfig.APISPackagePath + "/eventhub/v1beta1.ConsumerGroup", + } + }) + + p.AddResourceConfigurator("azurerm_healthcare_medtech_service_fhir_destination", func(r *config.Resource) { + r.References["medtech_service_id"] = config.Reference{ + Type: "HealthcareMedtechService", + Extractor: rconfig.ExtractResourceIDFuncPath, + } + r.References["destination_fhir_service_id"] = config.Reference{ + Type: "HealthcareFHIRService", + Extractor: rconfig.ExtractResourceIDFuncPath, + } + }) +} diff --git a/config/provider.go b/config/provider.go index 8c52553e7..fa436264c 100644 --- a/config/provider.go +++ b/config/provider.go @@ -43,6 +43,7 @@ import ( "github.com/upbound/provider-azure/config/dbformysql" "github.com/upbound/provider-azure/config/devices" "github.com/upbound/provider-azure/config/eventhub" + "github.com/upbound/provider-azure/config/healthcareapis" "github.com/upbound/provider-azure/config/insights" "github.com/upbound/provider-azure/config/keyvault" "github.com/upbound/provider-azure/config/kusto" @@ -177,6 +178,7 @@ func GetProvider() *tjconfig.Provider { devices.Configure, datafactory.Configure, apimanagement.Configure, + healthcareapis.Configure, logic.Configure, security.Configure, base.Configure, diff --git a/examples-generated/healthcareapis/healthcaremedtechservice.yaml b/examples-generated/healthcareapis/healthcaremedtechservice.yaml new file mode 100644 index 000000000..0c4b5d64f --- /dev/null +++ b/examples-generated/healthcareapis/healthcaremedtechservice.yaml @@ -0,0 +1,50 @@ +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareMedtechService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + deviceMappingJson: | + { + "templateType": "CollectionContent", + "template": [ + { + "templateType": "JsonPathContent", + "template": { + "typeName": "heartrate", + "typeMatchExpression": "$..[?(@heartrate)]", + "deviceIdExpression": "$.deviceid", + "timestampExpression": "$.measurementdatetime", + "values": [ + { + "required": "true", + "valueExpression": "$.heartrate", + "valueName": "hr" + } + ] + } + } + ] + } + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNamespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + - type: SystemAssigned + location: east us + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/healthcareapis/healthcaremedtechservicefhirdestination.yaml b/examples-generated/healthcareapis/healthcaremedtechservicefhirdestination.yaml new file mode 100644 index 000000000..b66776017 --- /dev/null +++ b/examples-generated/healthcareapis/healthcaremedtechservicefhirdestination.yaml @@ -0,0 +1,47 @@ +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareMedtechServiceFHIRDestination +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + destinationFhirMappingJson: |2 + { + "templateType": "CollectionFhirTemplate", + "template": [ + { + "templateType": "CodeValueFhir", + "template": { + "codes": [ + { + "code": "8867-4", + "system": "http://loinc.org", + "display": "Heart rate" + } + ], + "periodInterval": 60, + "typeName": "heartrate", + "value": { + "defaultPeriod": 5000, + "unit": "count/min", + "valueName": "hr", + "valueType": "SampledData" + } + } + } + ] + } + destinationFhirServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + destinationIdentityResolutionType: Create + location: east us + medtechServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/timeseriesinsights/eventsourceeventhub.yaml b/examples-generated/timeseriesinsights/eventsourceeventhub.yaml new file mode 100644 index 000000000..355ef1125 --- /dev/null +++ b/examples-generated/timeseriesinsights/eventsourceeventhub.yaml @@ -0,0 +1,183 @@ +apiVersion: timeseriesinsights.azure.upbound.io/v1beta1 +kind: EventSourceEventHub +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + consumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + environmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + eventSourceResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessKeyNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessKeySecretRef: + key: attribute.primary_key + name: example-eventhub-authorization-rule + namespace: upbound-system + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + messageRetention: 7 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: AuthorizationRule +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + listen: true + manage: false + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + send: false + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: timeseriesinsights.azure.upbound.io/v1beta1 +kind: Gen2Environment +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + idProperties: + - id + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: L1 + storage: + - keySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + nameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples/healthcareapis/healthcaremedtechservice.yaml b/examples/healthcareapis/healthcaremedtechservice.yaml new file mode 100644 index 000000000..d22aebd15 --- /dev/null +++ b/examples/healthcareapis/healthcaremedtechservice.yaml @@ -0,0 +1,140 @@ +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareMedtechService +metadata: + annotations: + uptest.upbound.io/timeout: "3600" + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + deviceMappingJson: | + { + "templateType": "CollectionContent", + "template": [ + { + "templateType": "JsonPathContent", + "template": { + "typeName": "heartrate", + "typeMatchExpression": "$..[?(@heartrate)]", + "deviceIdExpression": "$.deviceid", + "timestampExpression": "$.measurementdatetime", + "values": [ + { + "required": "true", + "valueExpression": "$.heartrate", + "valueName": "hr" + } + ] + } + } + ] + } + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNamespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + - type: SystemAssigned + location: east us + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareWorkspace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 1 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard diff --git a/examples/healthcareapis/healthcaremedtechservicefhirdestination.yaml b/examples/healthcareapis/healthcaremedtechservicefhirdestination.yaml new file mode 100644 index 000000000..cfd2eba8d --- /dev/null +++ b/examples/healthcareapis/healthcaremedtechservicefhirdestination.yaml @@ -0,0 +1,247 @@ +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareMedtechServiceFHIRDestination +metadata: + annotations: + uptest.upbound.io/timeout: "3600" + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + destinationFhirMappingJson: |2 + { + "templateType": "CollectionFhirTemplate", + "template": [ + { + "templateType": "CodeValueFhir", + "template": { + "codes": [ + { + "code": "8867-4", + "system": "http://loinc.org", + "display": "Heart rate" + } + ], + "periodInterval": 60, + "typeName": "heartrate", + "value": { + "defaultPeriod": 5000, + "unit": "count/min", + "valueName": "hr", + "valueType": "SampledData" + } + } + } + ] + } + destinationFhirServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + destinationIdentityResolutionType: Create + location: east us + medtechServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareFHIRService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + accessPolicyObjectIds: + - d949679c-f7ed-4e18-a8ac-0f5560ed3fdc + authentication: + - audience: https://tfexfhir.fhir.azurehealthcareapis.com + authority: https://login.microsoftonline.com/b9925bc4-8383-4c37-b9d2-fa456d1bb1c7 + configurationExportStorageAccountName: hmsfdex + cors: + - allowedHeaders: + - '*' + allowedMethods: + - GET + - DELETE + - PUT + allowedOrigins: + - https://tfex.com:123 + - https://tfex1.com:3389 + credentialsAllowed: true + maxAgeInSeconds: 3600 + identity: + - type: SystemAssigned + kind: fhir-R4 + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareWorkspace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + location: East US + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareMedtechService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + deviceMappingJson: | + { + "templateType": "CollectionContent", + "template": [ + { + "templateType": "JsonPathContent", + "template": { + "typeName": "heartrate", + "typeMatchExpression": "$..[?(@heartrate)]", + "deviceIdExpression": "$.deviceid", + "timestampExpression": "$.measurementdatetime", + "values": [ + { + "required": "true", + "valueExpression": "$.heartrate", + "valueName": "hr" + } + ] + } + } + ] + } + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNamespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + - type: SystemAssigned + location: east us + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 1 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservicefhirdestination + labels: + testing.upbound.io/example-name: example + name: hmsfdex +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard diff --git a/examples/healthcareapis/healthcareservice.yaml b/examples/healthcareapis/healthcareservice.yaml index 7b30df4bc..d41379879 100644 --- a/examples/healthcareapis/healthcareservice.yaml +++ b/examples/healthcareapis/healthcareservice.yaml @@ -34,7 +34,7 @@ apiVersion: azure.upbound.io/v1beta1 kind: ResourceGroup metadata: annotations: - meta.upbound.io/example-id: elastic/v1beta1/healthcareservice + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcareservice labels: testing.upbound.io/example-name: example name: hstest diff --git a/examples/timeseriesinsights/eventsourceeventhub.yaml b/examples/timeseriesinsights/eventsourceeventhub.yaml new file mode 100644 index 000000000..d0e27a7f3 --- /dev/null +++ b/examples/timeseriesinsights/eventsourceeventhub.yaml @@ -0,0 +1,205 @@ +apiVersion: timeseriesinsights.azure.upbound.io/v1beta1 +kind: EventSourceEventHub +metadata: + annotations: + upjet.upbound.io/manual-intervention: "Depends on resource with manual intervention" + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + consumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + environmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + eventSourceResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessKeyNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessKeySecretRef: + key: example-key + name: example-eventhub-authorization-rule + namespace: upbound-system + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-eventhub-authorization-rule + namespace: upbound-system +type: Opaque +stringData: + example-key: T4dQFBLKEf28cGzSwrFI2pL6egeYUyGKMldQIhutT4o= + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + messageRetention: 7 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: AuthorizationRule +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + listen: true + manage: false + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + send: false + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: timeseriesinsights.azure.upbound.io/v1beta1 +kind: Gen2Environment +metadata: + annotations: + upjet.upbound.io/manual-intervention: "Resource require account primary key." + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + idProperties: + - id + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: L1 + storage: + - keySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + nameSelector: + matchLabels: + testing.upbound.io/example-name: example + warmStoreDataRetentionTime: P30D + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque +stringData: + example-key: wdxZSZG/AznGVni1Wa2h23i3cXDMfaN5Tfkq2ZE11i+prq8iJYM2mSzu6q6pRpyAS2lB51EBLS5H+AStbglnRg== + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/eventsourceeventhub + labels: + testing.upbound.io/example-name: example + name: esehexample +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/internal/controller/healthcareapis/healthcaremedtechservice/zz_controller.go b/internal/controller/healthcareapis/healthcaremedtechservice/zz_controller.go new file mode 100755 index 000000000..0bf3766ce --- /dev/null +++ b/internal/controller/healthcareapis/healthcaremedtechservice/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package healthcaremedtechservice + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/healthcareapis/v1beta1" +) + +// Setup adds a controller that reconciles HealthcareMedtechService managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.HealthcareMedtechService_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.HealthcareMedtechService_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_healthcare_medtech_service"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.HealthcareMedtechService_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.HealthcareMedtechService{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/healthcareapis/healthcaremedtechservicefhirdestination/zz_controller.go b/internal/controller/healthcareapis/healthcaremedtechservicefhirdestination/zz_controller.go new file mode 100755 index 000000000..5624ef023 --- /dev/null +++ b/internal/controller/healthcareapis/healthcaremedtechservicefhirdestination/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package healthcaremedtechservicefhirdestination + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/healthcareapis/v1beta1" +) + +// Setup adds a controller that reconciles HealthcareMedtechServiceFHIRDestination managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.HealthcareMedtechServiceFHIRDestination_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.HealthcareMedtechServiceFHIRDestination_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_healthcare_medtech_service_fhir_destination"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.HealthcareMedtechServiceFHIRDestination_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.HealthcareMedtechServiceFHIRDestination{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/timeseriesinsights/eventsourceeventhub/zz_controller.go b/internal/controller/timeseriesinsights/eventsourceeventhub/zz_controller.go new file mode 100755 index 000000000..5312be8f4 --- /dev/null +++ b/internal/controller/timeseriesinsights/eventsourceeventhub/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package eventsourceeventhub + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/timeseriesinsights/v1beta1" +) + +// Setup adds a controller that reconciles EventSourceEventHub managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.EventSourceEventHub_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.EventSourceEventHub_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_iot_time_series_insights_event_source_eventhub"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.EventSourceEventHub_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.EventSourceEventHub{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index ae15a016a..881cedb36 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -301,6 +301,8 @@ import ( healthbot "github.com/upbound/provider-azure/internal/controller/healthbot/healthbot" healthcaredicomservice "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcaredicomservice" healthcarefhirservice "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcarefhirservice" + healthcaremedtechservice "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcaremedtechservice" + healthcaremedtechservicefhirdestination "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcaremedtechservicefhirdestination" healthcareservice "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcareservice" healthcareworkspace "github.com/upbound/provider-azure/internal/controller/healthcareapis/healthcareworkspace" applicationinsights "github.com/upbound/provider-azure/internal/controller/insights/applicationinsights" @@ -627,6 +629,7 @@ import ( workspacesecurityalertpolicy "github.com/upbound/provider-azure/internal/controller/synapse/workspacesecurityalertpolicy" workspacesqlaadadmin "github.com/upbound/provider-azure/internal/controller/synapse/workspacesqlaadadmin" workspacevulnerabilityassessment "github.com/upbound/provider-azure/internal/controller/synapse/workspacevulnerabilityassessment" + eventsourceeventhub "github.com/upbound/provider-azure/internal/controller/timeseriesinsights/eventsourceeventhub" eventsourceiothub "github.com/upbound/provider-azure/internal/controller/timeseriesinsights/eventsourceiothub" gen2environment "github.com/upbound/provider-azure/internal/controller/timeseriesinsights/gen2environment" referencedataset "github.com/upbound/provider-azure/internal/controller/timeseriesinsights/referencedataset" @@ -941,6 +944,8 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { healthbot.Setup, healthcaredicomservice.Setup, healthcarefhirservice.Setup, + healthcaremedtechservice.Setup, + healthcaremedtechservicefhirdestination.Setup, healthcareservice.Setup, healthcareworkspace.Setup, applicationinsights.Setup, @@ -1267,6 +1272,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { workspacesecurityalertpolicy.Setup, workspacesqlaadadmin.Setup, workspacevulnerabilityassessment.Setup, + eventsourceeventhub.Setup, eventsourceiothub.Setup, gen2environment.Setup, referencedataset.Setup, diff --git a/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservicefhirdestinations.yaml b/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservicefhirdestinations.yaml new file mode 100644 index 000000000..f58295a6c --- /dev/null +++ b/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservicefhirdestinations.yaml @@ -0,0 +1,475 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: healthcaremedtechservicefhirdestinations.healthcareapis.azure.upbound.io +spec: + group: healthcareapis.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: HealthcareMedtechServiceFHIRDestination + listKind: HealthcareMedtechServiceFHIRDestinationList + plural: healthcaremedtechservicefhirdestinations + singular: healthcaremedtechservicefhirdestination + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: HealthcareMedtechServiceFHIRDestination is the Schema for the + HealthcareMedtechServiceFHIRDestinations API. Manages a Healthcare Med Tech + (Internet of Medical Things) Service Fhir Destination. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: HealthcareMedtechServiceFHIRDestinationSpec defines the desired + state of HealthcareMedtechServiceFHIRDestination + properties: + deletionPolicy: + default: Delete + description: DeletionPolicy specifies what will happen to the underlying + external when this managed resource is deleted - either "Delete" + or "Orphan" the external resource. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + destinationFhirMappingJson: + description: Specifies the destination Fhir mappings of the Med + Tech Service Fhir Destination. + type: string + destinationFhirServiceId: + description: The ID of the Healthcare Med Tech Service Fhir Destination. + type: string + destinationFhirServiceIdRef: + description: Reference to a HealthcareFHIRService to populate + destinationFhirServiceId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + destinationFhirServiceIdSelector: + description: Selector for a HealthcareFHIRService to populate + destinationFhirServiceId. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + destinationIdentityResolutionType: + description: Specifies the destination identity resolution type + where the Healthcare Med Tech Service Fhir Destination should + be created. Possible values are Create, Lookup. + type: string + location: + description: Specifies the Azure Region where the Healthcare Med + Tech Service Fhir Destination should be created. Changing this + forces a new Healthcare Med Tech Service Fhir Destination to + be created. + type: string + medtechServiceId: + description: Specifies the name of the Healthcare Med Tech Service + where the Healthcare Med Tech Service Fhir Destination should + exist. Changing this forces a new Healthcare Med Tech Service + Fhir Destination to be created. + type: string + medtechServiceIdRef: + description: Reference to a HealthcareMedtechService to populate + medtechServiceId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + medtechServiceIdSelector: + description: Selector for a HealthcareMedtechService to populate + medtechServiceId. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + required: + - destinationFhirMappingJson + - destinationIdentityResolutionType + - location + type: object + providerConfigRef: + default: + name: default + description: ProviderConfigReference specifies how the provider that + will be used to create, observe, update, and delete this managed + resource should be configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: WriteConnectionSecretToReference specifies the namespace + and name of a Secret to which any connection details for this managed + resource should be written. Connection details frequently include + the endpoint, username, and password required to connect to the + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + status: + description: HealthcareMedtechServiceFHIRDestinationStatus defines the + observed state of HealthcareMedtechServiceFHIRDestination. + properties: + atProvider: + properties: + id: + description: The ID of the Healthcare Med Tech Service Fhir Destination. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: LastTransitionTime is the last time this condition + transitioned from one status to another. + format: date-time + type: string + message: + description: A Message containing details about this condition's + last transition from one status to another, if any. + type: string + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: Type of this condition. At most one of each condition + type may apply to a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservices.yaml b/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservices.yaml new file mode 100644 index 000000000..b00a1132b --- /dev/null +++ b/package/crds/healthcareapis.azure.upbound.io_healthcaremedtechservices.yaml @@ -0,0 +1,650 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: healthcaremedtechservices.healthcareapis.azure.upbound.io +spec: + group: healthcareapis.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: HealthcareMedtechService + listKind: HealthcareMedtechServiceList + plural: healthcaremedtechservices + singular: healthcaremedtechservice + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: HealthcareMedtechService is the Schema for the HealthcareMedtechServices + API. Manages a Healthcare MedTech (Internet of Medical Things) devices Service. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: HealthcareMedtechServiceSpec defines the desired state of + HealthcareMedtechService + properties: + deletionPolicy: + default: Delete + description: DeletionPolicy specifies what will happen to the underlying + external when this managed resource is deleted - either "Delete" + or "Orphan" the external resource. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + deviceMappingJson: + description: Specifies the Device Mappings of the Med Tech Service. + type: string + eventhubConsumerGroupName: + description: Specifies the Consumer Group of the Event Hub to + connect to. + type: string + eventhubConsumerGroupNameRef: + description: Reference to a ConsumerGroup in eventhub to populate + eventhubConsumerGroupName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + eventhubConsumerGroupNameSelector: + description: Selector for a ConsumerGroup in eventhub to populate + eventhubConsumerGroupName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + eventhubName: + description: Specifies the name of the Event Hub to connect to. + type: string + eventhubNameRef: + description: Reference to a EventHub in eventhub to populate eventhubName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + eventhubNameSelector: + description: Selector for a EventHub in eventhub to populate eventhubName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + eventhubNamespaceName: + description: Specifies the namespace name of the Event Hub to + connect to. + type: string + eventhubNamespaceNameRef: + description: Reference to a EventHubNamespace in eventhub to populate + eventhubNamespaceName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + eventhubNamespaceNameSelector: + description: Selector for a EventHubNamespace in eventhub to populate + eventhubNamespaceName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + identity: + description: An identity block as defined below. + items: + properties: + type: + description: Specifies the type of Managed Service Identity + that should be configured on this Healthcare Med Tech + Service. Possible values are SystemAssigned. + type: string + required: + - type + type: object + type: array + location: + description: Specifies the Azure Region where the Healthcare Med + Tech Service should be created. Changing this forces a new Healthcare + Med Tech Service to be created. + type: string + tags: + additionalProperties: + type: string + type: object + workspaceId: + description: Specifies the id of the Healthcare Workspace where + the Healthcare Med Tech Service should exist. Changing this + forces a new Healthcare Med Tech Service to be created. + type: string + workspaceIdRef: + description: Reference to a HealthcareWorkspace to populate workspaceId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + workspaceIdSelector: + description: Selector for a HealthcareWorkspace to populate workspaceId. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + required: + - deviceMappingJson + - location + type: object + providerConfigRef: + default: + name: default + description: ProviderConfigReference specifies how the provider that + will be used to create, observe, update, and delete this managed + resource should be configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: WriteConnectionSecretToReference specifies the namespace + and name of a Secret to which any connection details for this managed + resource should be written. Connection details frequently include + the endpoint, username, and password required to connect to the + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + status: + description: HealthcareMedtechServiceStatus defines the observed state + of HealthcareMedtechService. + properties: + atProvider: + properties: + id: + description: The ID of the Healthcare Med Tech Service. + type: string + identity: + description: An identity block as defined below. + items: + properties: + principalId: + description: The Principal ID associated with this System + Assigned Managed Service Identity. + type: string + tenantId: + description: The Tenant ID associated with this System Assigned + Managed Service Identity. + type: string + type: object + type: array + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: LastTransitionTime is the last time this condition + transitioned from one status to another. + format: date-time + type: string + message: + description: A Message containing details about this condition's + last transition from one status to another, if any. + type: string + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: Type of this condition. At most one of each condition + type may apply to a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/timeseriesinsights.azure.upbound.io_eventsourceeventhubs.yaml b/package/crds/timeseriesinsights.azure.upbound.io_eventsourceeventhubs.yaml new file mode 100644 index 000000000..f71ba6272 --- /dev/null +++ b/package/crds/timeseriesinsights.azure.upbound.io_eventsourceeventhubs.yaml @@ -0,0 +1,801 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: eventsourceeventhubs.timeseriesinsights.azure.upbound.io +spec: + group: timeseriesinsights.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: EventSourceEventHub + listKind: EventSourceEventHubList + plural: eventsourceeventhubs + singular: eventsourceeventhub + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: EventSourceEventHub is the Schema for the EventSourceEventHubs + API. Manages an Azure IoT Time Series Insights EventHub Event Source. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: EventSourceEventHubSpec defines the desired state of EventSourceEventHub + properties: + deletionPolicy: + default: Delete + description: DeletionPolicy specifies what will happen to the underlying + external when this managed resource is deleted - either "Delete" + or "Orphan" the external resource. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + consumerGroupName: + description: Specifies the name of the EventHub Consumer Group + that holds the partitions from which events will be read. + type: string + consumerGroupNameRef: + description: Reference to a ConsumerGroup in eventhub to populate + consumerGroupName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + consumerGroupNameSelector: + description: Selector for a ConsumerGroup in eventhub to populate + consumerGroupName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + environmentId: + description: Specifies the id of the IoT Time Series Insights + Environment that the Event Source should be associated with. + Changing this forces a new resource to created. + type: string + environmentIdRef: + description: Reference to a Gen2Environment in timeseriesinsights + to populate environmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + environmentIdSelector: + description: Selector for a Gen2Environment in timeseriesinsights + to populate environmentId. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + eventSourceResourceId: + description: Specifies the resource id where events will be coming + from. + type: string + eventSourceResourceIdRef: + description: Reference to a EventHub in eventhub to populate eventSourceResourceId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + eventSourceResourceIdSelector: + description: Selector for a EventHub in eventhub to populate eventSourceResourceId. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + eventhubName: + description: Specifies the name of the EventHub which will be + associated with this resource. + type: string + eventhubNameRef: + description: Reference to a EventHub in eventhub to populate eventhubName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + eventhubNameSelector: + description: Selector for a EventHub in eventhub to populate eventhubName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + location: + description: Specifies the supported Azure location where the + resource exists. Changing this forces a new resource to be created. + type: string + namespaceName: + description: Specifies the EventHub Namespace name. + type: string + namespaceNameRef: + description: Reference to a EventHubNamespace in eventhub to populate + namespaceName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + namespaceNameSelector: + description: Selector for a EventHubNamespace in eventhub to populate + namespaceName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + sharedAccessKeyName: + description: Specifies the name of the Shared Access key that + grants the Event Source access to the EventHub. + type: string + sharedAccessKeyNameRef: + description: Reference to a AuthorizationRule in eventhub to populate + sharedAccessKeyName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + sharedAccessKeyNameSelector: + description: Selector for a AuthorizationRule in eventhub to populate + sharedAccessKeyName. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + sharedAccessKeySecretRef: + description: Specifies the value of the Shared Access Policy key + that grants the Time Series Insights service read access to + the EventHub. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the resource. + type: object + timestampPropertyName: + description: Specifies the value that will be used as the event + source's timestamp. This value defaults to the event creation + time. + type: string + required: + - location + - sharedAccessKeySecretRef + type: object + providerConfigRef: + default: + name: default + description: ProviderConfigReference specifies how the provider that + will be used to create, observe, update, and delete this managed + resource should be configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of this + reference is required. The default is 'Required', which + means the reconcile will fail if the reference cannot be + resolved. 'Optional' means this reference will be a no-op + if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will attempt + to resolve the reference only when the corresponding field + is not present. Use 'Always' to resolve the reference on + every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: WriteConnectionSecretToReference specifies the namespace + and name of a Secret to which any connection details for this managed + resource should be written. Connection details frequently include + the endpoint, username, and password required to connect to the + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + status: + description: EventSourceEventHubStatus defines the observed state of EventSourceEventHub. + properties: + atProvider: + properties: + id: + description: The ID of the IoT Time Series Insights EventHub Event + Source. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: LastTransitionTime is the last time this condition + transitioned from one status to another. + format: date-time + type: string + message: + description: A Message containing details about this condition's + last transition from one status to another, if any. + type: string + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: Type of this condition. At most one of each condition + type may apply to a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: []