v1beta2

package
v1.7.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=notificationhubs.azure.upbound.io +versionName=v1beta2

Index

Constants

View Source
const (
	CRDGroup   = "notificationhubs.azure.upbound.io"
	CRDVersion = "v1beta2"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	NotificationHub_Kind             = "NotificationHub"
	NotificationHub_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: NotificationHub_Kind}.String()
	NotificationHub_KindAPIVersion   = NotificationHub_Kind + "." + CRDGroupVersion.String()
	NotificationHub_GroupVersionKind = CRDGroupVersion.WithKind(NotificationHub_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type APNSCredentialInitParameters

type APNSCredentialInitParameters struct {

	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are Production and Sandbox.
	ApplicationMode *string `json:"applicationMode,omitempty" tf:"application_mode,omitempty"`

	// The Bundle ID of the iOS/macOS application to send push notifications for, such as com.hashicorp.example.
	BundleID *string `json:"bundleId,omitempty" tf:"bundle_id,omitempty"`

	// The Apple Push Notifications Service (APNS) Key.
	KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`

	// The ID of the team the Token.
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// The Push Token associated with the Apple Developer Account. This is the contents of the key downloaded from the Apple Developer Portal between the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- blocks.
	TokenSecretRef v1.SecretKeySelector `json:"tokenSecretRef" tf:"-"`
}

func (*APNSCredentialInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APNSCredentialInitParameters.

func (*APNSCredentialInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APNSCredentialObservation

type APNSCredentialObservation struct {

	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are Production and Sandbox.
	ApplicationMode *string `json:"applicationMode,omitempty" tf:"application_mode,omitempty"`

	// The Bundle ID of the iOS/macOS application to send push notifications for, such as com.hashicorp.example.
	BundleID *string `json:"bundleId,omitempty" tf:"bundle_id,omitempty"`

	// The Apple Push Notifications Service (APNS) Key.
	KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`

	// The ID of the team the Token.
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`
}

func (*APNSCredentialObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APNSCredentialObservation.

func (*APNSCredentialObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APNSCredentialParameters

type APNSCredentialParameters struct {

	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are Production and Sandbox.
	// +kubebuilder:validation:Optional
	ApplicationMode *string `json:"applicationMode" tf:"application_mode,omitempty"`

	// The Bundle ID of the iOS/macOS application to send push notifications for, such as com.hashicorp.example.
	// +kubebuilder:validation:Optional
	BundleID *string `json:"bundleId" tf:"bundle_id,omitempty"`

	// The Apple Push Notifications Service (APNS) Key.
	// +kubebuilder:validation:Optional
	KeyID *string `json:"keyId" tf:"key_id,omitempty"`

	// The ID of the team the Token.
	// +kubebuilder:validation:Optional
	TeamID *string `json:"teamId" tf:"team_id,omitempty"`

	// The Push Token associated with the Apple Developer Account. This is the contents of the key downloaded from the Apple Developer Portal between the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- blocks.
	// +kubebuilder:validation:Optional
	TokenSecretRef v1.SecretKeySelector `json:"tokenSecretRef" tf:"-"`
}

func (*APNSCredentialParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APNSCredentialParameters.

func (*APNSCredentialParameters) DeepCopyInto

func (in *APNSCredentialParameters) DeepCopyInto(out *APNSCredentialParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCMCredentialInitParameters

type GCMCredentialInitParameters struct {

	// The API Key associated with the Google Cloud Messaging service.
	APIKeySecretRef v1.SecretKeySelector `json:"apiKeySecretRef" tf:"-"`
}

func (*GCMCredentialInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCMCredentialInitParameters.

func (*GCMCredentialInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCMCredentialObservation

type GCMCredentialObservation struct {
}

func (*GCMCredentialObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCMCredentialObservation.

func (*GCMCredentialObservation) DeepCopyInto

func (in *GCMCredentialObservation) DeepCopyInto(out *GCMCredentialObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCMCredentialParameters

type GCMCredentialParameters struct {

	// The API Key associated with the Google Cloud Messaging service.
	// +kubebuilder:validation:Optional
	APIKeySecretRef v1.SecretKeySelector `json:"apiKeySecretRef" tf:"-"`
}

func (*GCMCredentialParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCMCredentialParameters.

func (*GCMCredentialParameters) DeepCopyInto

func (in *GCMCredentialParameters) DeepCopyInto(out *GCMCredentialParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NotificationHub

type NotificationHub struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter"
	Spec   NotificationHubSpec   `json:"spec"`
	Status NotificationHubStatus `json:"status,omitempty"`
}

NotificationHub is the Schema for the NotificationHubs API. Manages a Notification Hub within a Notification Hub Namespace. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,azure}

func (*NotificationHub) DeepCopy

func (in *NotificationHub) DeepCopy() *NotificationHub

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHub.

func (*NotificationHub) DeepCopyInto

func (in *NotificationHub) DeepCopyInto(out *NotificationHub)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NotificationHub) DeepCopyObject

func (in *NotificationHub) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NotificationHub) GetCondition

func (mg *NotificationHub) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this NotificationHub.

func (*NotificationHub) GetConnectionDetailsMapping

func (tr *NotificationHub) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this NotificationHub

func (*NotificationHub) GetDeletionPolicy

func (mg *NotificationHub) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this NotificationHub.

func (*NotificationHub) GetID

func (tr *NotificationHub) GetID() string

GetID returns ID of underlying Terraform resource of this NotificationHub

func (*NotificationHub) GetInitParameters

func (tr *NotificationHub) GetInitParameters() (map[string]any, error)

GetInitParameters of this NotificationHub

func (*NotificationHub) GetManagementPolicies

func (mg *NotificationHub) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this NotificationHub.

func (*NotificationHub) GetMergedParameters

func (tr *NotificationHub) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this NotificationHub

func (*NotificationHub) GetObservation

func (tr *NotificationHub) GetObservation() (map[string]any, error)

GetObservation of this NotificationHub

func (*NotificationHub) GetParameters

func (tr *NotificationHub) GetParameters() (map[string]any, error)

GetParameters of this NotificationHub

func (*NotificationHub) GetProviderConfigReference

func (mg *NotificationHub) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this NotificationHub.

func (*NotificationHub) GetPublishConnectionDetailsTo

func (mg *NotificationHub) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this NotificationHub.

func (*NotificationHub) GetTerraformResourceType

func (mg *NotificationHub) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this NotificationHub

func (*NotificationHub) GetTerraformSchemaVersion

func (tr *NotificationHub) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*NotificationHub) GetWriteConnectionSecretToReference

func (mg *NotificationHub) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this NotificationHub.

func (*NotificationHub) Hub

func (tr *NotificationHub) Hub()

Hub marks this type as a conversion hub.

func (*NotificationHub) LateInitialize

func (tr *NotificationHub) LateInitialize(attrs []byte) (bool, error)

LateInitialize this NotificationHub using its observed tfState. returns True if there are any spec changes for the resource.

func (*NotificationHub) ResolveReferences

func (mg *NotificationHub) ResolveReferences(
	ctx context.Context, c client.Reader) error

func (*NotificationHub) SetConditions

func (mg *NotificationHub) SetConditions(c ...xpv1.Condition)

SetConditions of this NotificationHub.

func (*NotificationHub) SetDeletionPolicy

func (mg *NotificationHub) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this NotificationHub.

func (*NotificationHub) SetManagementPolicies

func (mg *NotificationHub) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this NotificationHub.

func (*NotificationHub) SetObservation

func (tr *NotificationHub) SetObservation(obs map[string]any) error

SetObservation for this NotificationHub

func (*NotificationHub) SetParameters

func (tr *NotificationHub) SetParameters(params map[string]any) error

SetParameters for this NotificationHub

func (*NotificationHub) SetProviderConfigReference

func (mg *NotificationHub) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this NotificationHub.

func (*NotificationHub) SetPublishConnectionDetailsTo

func (mg *NotificationHub) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this NotificationHub.

func (*NotificationHub) SetWriteConnectionSecretToReference

func (mg *NotificationHub) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this NotificationHub.

type NotificationHubInitParameters

type NotificationHubInitParameters struct {

	// A apns_credential block as defined below.
	APNSCredential *APNSCredentialInitParameters `json:"apnsCredential,omitempty" tf:"apns_credential,omitempty"`

	// A gcm_credential block as defined below.
	GCMCredential *GCMCredentialInitParameters `json:"gcmCredential,omitempty" tf:"gcm_credential,omitempty"`

	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// A mapping of tags to assign to the resource.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*NotificationHubInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubInitParameters.

func (*NotificationHubInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NotificationHubList

type NotificationHubList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NotificationHub `json:"items"`
}

NotificationHubList contains a list of NotificationHubs

func (*NotificationHubList) DeepCopy

func (in *NotificationHubList) DeepCopy() *NotificationHubList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubList.

func (*NotificationHubList) DeepCopyInto

func (in *NotificationHubList) DeepCopyInto(out *NotificationHubList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NotificationHubList) DeepCopyObject

func (in *NotificationHubList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NotificationHubList) GetItems

func (l *NotificationHubList) GetItems() []resource.Managed

GetItems of this NotificationHubList.

type NotificationHubObservation

type NotificationHubObservation struct {

	// A apns_credential block as defined below.
	APNSCredential *APNSCredentialObservation `json:"apnsCredential,omitempty" tf:"apns_credential,omitempty"`

	// A gcm_credential block as defined below.
	GCMCredential *GCMCredentialParameters `json:"gcmCredential,omitempty" tf:"gcm_credential,omitempty"`

	// The ID of the Notification Hub.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
	NamespaceName *string `json:"namespaceName,omitempty" tf:"namespace_name,omitempty"`

	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`

	// A mapping of tags to assign to the resource.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*NotificationHubObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubObservation.

func (*NotificationHubObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NotificationHubParameters

type NotificationHubParameters struct {

	// A apns_credential block as defined below.
	// +kubebuilder:validation:Optional
	APNSCredential *APNSCredentialParameters `json:"apnsCredential,omitempty" tf:"apns_credential,omitempty"`

	// A gcm_credential block as defined below.
	// +kubebuilder:validation:Optional
	GCMCredential *GCMCredentialParameters `json:"gcmCredential,omitempty" tf:"gcm_credential,omitempty"`

	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	// +kubebuilder:validation:Optional
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/notificationhubs/v1beta1.NotificationHubNamespace
	// +kubebuilder:validation:Optional
	NamespaceName *string `json:"namespaceName,omitempty" tf:"namespace_name,omitempty"`

	// Reference to a NotificationHubNamespace in notificationhubs to populate namespaceName.
	// +kubebuilder:validation:Optional
	NamespaceNameRef *v1.Reference `json:"namespaceNameRef,omitempty" tf:"-"`

	// Selector for a NotificationHubNamespace in notificationhubs to populate namespaceName.
	// +kubebuilder:validation:Optional
	NamespaceNameSelector *v1.Selector `json:"namespaceNameSelector,omitempty" tf:"-"`

	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
	// +kubebuilder:validation:Optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`

	// Reference to a ResourceGroup in azure to populate resourceGroupName.
	// +kubebuilder:validation:Optional
	ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`

	// Selector for a ResourceGroup in azure to populate resourceGroupName.
	// +kubebuilder:validation:Optional
	ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`

	// A mapping of tags to assign to the resource.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*NotificationHubParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubParameters.

func (*NotificationHubParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NotificationHubSpec

type NotificationHubSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     NotificationHubParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider NotificationHubInitParameters `json:"initProvider,omitempty"`
}

NotificationHubSpec defines the desired state of NotificationHub

func (*NotificationHubSpec) DeepCopy

func (in *NotificationHubSpec) DeepCopy() *NotificationHubSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubSpec.

func (*NotificationHubSpec) DeepCopyInto

func (in *NotificationHubSpec) DeepCopyInto(out *NotificationHubSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NotificationHubStatus

type NotificationHubStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        NotificationHubObservation `json:"atProvider,omitempty"`
}

NotificationHubStatus defines the observed state of NotificationHub.

func (*NotificationHubStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationHubStatus.

func (*NotificationHubStatus) DeepCopyInto

func (in *NotificationHubStatus) DeepCopyInto(out *NotificationHubStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL