Documentation ¶
Overview ¶
Package v1beta20180501previewstorage contains API Schema definitions for the insights v1beta20180501previewstorage API group +kubebuilder:object:generate=true All object properties are optional by default, this will be overridden when needed: +kubebuilder:validation:Optional +groupName=insights.azure.com
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Variables
- type HeaderField
- type HeaderField_Status
- type WebTestGeolocation
- type WebTestGeolocation_Status
- type WebTestPropertiesConfiguration
- type WebTestPropertiesRequest
- type WebTestPropertiesValidationRules
- type WebTestPropertiesValidationRulesContentValidation
- type WebTestProperties_Status_Configuration
- type WebTestProperties_Status_Request
- type WebTestProperties_Status_ValidationRules
- type WebTestProperties_Status_ValidationRules_ContentValidation
- type WebTest_Status
- type Webtest
- func (webtest *Webtest) AzureName() string
- func (in *Webtest) DeepCopy() *Webtest
- func (in *Webtest) DeepCopyInto(out *Webtest)
- func (in *Webtest) DeepCopyObject() runtime.Object
- func (webtest Webtest) GetAPIVersion() string
- func (webtest *Webtest) GetConditions() conditions.Conditions
- func (webtest *Webtest) GetResourceKind() genruntime.ResourceKind
- func (webtest *Webtest) GetSpec() genruntime.ConvertibleSpec
- func (webtest *Webtest) GetStatus() genruntime.ConvertibleStatus
- func (webtest *Webtest) GetType() string
- func (webtest *Webtest) Hub()
- func (webtest *Webtest) NewEmptyStatus() genruntime.ConvertibleStatus
- func (webtest *Webtest) OriginalGVK() *schema.GroupVersionKind
- func (webtest *Webtest) Owner() *genruntime.ResourceReference
- func (webtest *Webtest) SetConditions(conditions conditions.Conditions)
- func (webtest *Webtest) SetStatus(status genruntime.ConvertibleStatus) error
- type WebtestList
- type Webtests_Spec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "insights.azure.com", Version: "v1beta20180501previewstorage"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type HeaderField ¶
type HeaderField struct { Key *string `json:"key,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Value *string `json:"value,omitempty"` }
Storage version of v1beta20180501preview.HeaderField Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/HeaderField
func (*HeaderField) DeepCopy ¶
func (in *HeaderField) DeepCopy() *HeaderField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderField.
func (*HeaderField) DeepCopyInto ¶
func (in *HeaderField) DeepCopyInto(out *HeaderField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HeaderField_Status ¶
type HeaderField_Status struct { Key *string `json:"key,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Value *string `json:"value,omitempty"` }
Storage version of v1beta20180501preview.HeaderField_Status
func (*HeaderField_Status) DeepCopy ¶
func (in *HeaderField_Status) DeepCopy() *HeaderField_Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderField_Status.
func (*HeaderField_Status) DeepCopyInto ¶
func (in *HeaderField_Status) DeepCopyInto(out *HeaderField_Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestGeolocation ¶
type WebTestGeolocation struct { Id *string `json:"Id,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` }
Storage version of v1beta20180501preview.WebTestGeolocation Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/WebTestGeolocation
func (*WebTestGeolocation) DeepCopy ¶
func (in *WebTestGeolocation) DeepCopy() *WebTestGeolocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestGeolocation.
func (*WebTestGeolocation) DeepCopyInto ¶
func (in *WebTestGeolocation) DeepCopyInto(out *WebTestGeolocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestGeolocation_Status ¶
type WebTestGeolocation_Status struct { Id *string `json:"Id,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` }
Storage version of v1beta20180501preview.WebTestGeolocation_Status
func (*WebTestGeolocation_Status) DeepCopy ¶
func (in *WebTestGeolocation_Status) DeepCopy() *WebTestGeolocation_Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestGeolocation_Status.
func (*WebTestGeolocation_Status) DeepCopyInto ¶
func (in *WebTestGeolocation_Status) DeepCopyInto(out *WebTestGeolocation_Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestPropertiesConfiguration ¶
type WebTestPropertiesConfiguration struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` WebTest *string `json:"WebTest,omitempty"` }
Storage version of v1beta20180501preview.WebTestPropertiesConfiguration Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/WebTestPropertiesConfiguration
func (*WebTestPropertiesConfiguration) DeepCopy ¶
func (in *WebTestPropertiesConfiguration) DeepCopy() *WebTestPropertiesConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestPropertiesConfiguration.
func (*WebTestPropertiesConfiguration) DeepCopyInto ¶
func (in *WebTestPropertiesConfiguration) DeepCopyInto(out *WebTestPropertiesConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestPropertiesRequest ¶
type WebTestPropertiesRequest struct { FollowRedirects *bool `json:"FollowRedirects,omitempty"` Headers []HeaderField `json:"Headers,omitempty"` HttpVerb *string `json:"HttpVerb,omitempty"` ParseDependentRequests *bool `json:"ParseDependentRequests,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` RequestBody *string `json:"RequestBody,omitempty"` RequestUrl *string `json:"RequestUrl,omitempty"` }
Storage version of v1beta20180501preview.WebTestPropertiesRequest Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/WebTestPropertiesRequest
func (*WebTestPropertiesRequest) DeepCopy ¶
func (in *WebTestPropertiesRequest) DeepCopy() *WebTestPropertiesRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestPropertiesRequest.
func (*WebTestPropertiesRequest) DeepCopyInto ¶
func (in *WebTestPropertiesRequest) DeepCopyInto(out *WebTestPropertiesRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestPropertiesValidationRules ¶
type WebTestPropertiesValidationRules struct { ContentValidation *WebTestPropertiesValidationRulesContentValidation `json:"ContentValidation,omitempty"` ExpectedHttpStatusCode *int `json:"ExpectedHttpStatusCode,omitempty"` IgnoreHttpsStatusCode *bool `json:"IgnoreHttpsStatusCode,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SSLCertRemainingLifetimeCheck *int `json:"SSLCertRemainingLifetimeCheck,omitempty"` SSLCheck *bool `json:"SSLCheck,omitempty"` }
Storage version of v1beta20180501preview.WebTestPropertiesValidationRules Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/WebTestPropertiesValidationRules
func (*WebTestPropertiesValidationRules) DeepCopy ¶
func (in *WebTestPropertiesValidationRules) DeepCopy() *WebTestPropertiesValidationRules
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestPropertiesValidationRules.
func (*WebTestPropertiesValidationRules) DeepCopyInto ¶
func (in *WebTestPropertiesValidationRules) DeepCopyInto(out *WebTestPropertiesValidationRules)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestPropertiesValidationRulesContentValidation ¶
type WebTestPropertiesValidationRulesContentValidation struct { ContentMatch *string `json:"ContentMatch,omitempty"` IgnoreCase *bool `json:"IgnoreCase,omitempty"` PassIfTextFound *bool `json:"PassIfTextFound,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` }
Storage version of v1beta20180501preview.WebTestPropertiesValidationRulesContentValidation Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/definitions/WebTestPropertiesValidationRulesContentValidation
func (*WebTestPropertiesValidationRulesContentValidation) DeepCopy ¶
func (in *WebTestPropertiesValidationRulesContentValidation) DeepCopy() *WebTestPropertiesValidationRulesContentValidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestPropertiesValidationRulesContentValidation.
func (*WebTestPropertiesValidationRulesContentValidation) DeepCopyInto ¶
func (in *WebTestPropertiesValidationRulesContentValidation) DeepCopyInto(out *WebTestPropertiesValidationRulesContentValidation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestProperties_Status_Configuration ¶
type WebTestProperties_Status_Configuration struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` WebTest *string `json:"WebTest,omitempty"` }
Storage version of v1beta20180501preview.WebTestProperties_Status_Configuration
func (*WebTestProperties_Status_Configuration) DeepCopy ¶
func (in *WebTestProperties_Status_Configuration) DeepCopy() *WebTestProperties_Status_Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestProperties_Status_Configuration.
func (*WebTestProperties_Status_Configuration) DeepCopyInto ¶
func (in *WebTestProperties_Status_Configuration) DeepCopyInto(out *WebTestProperties_Status_Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestProperties_Status_Request ¶
type WebTestProperties_Status_Request struct { FollowRedirects *bool `json:"FollowRedirects,omitempty"` Headers []HeaderField_Status `json:"Headers,omitempty"` HttpVerb *string `json:"HttpVerb,omitempty"` ParseDependentRequests *bool `json:"ParseDependentRequests,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` RequestBody *string `json:"RequestBody,omitempty"` RequestUrl *string `json:"RequestUrl,omitempty"` }
Storage version of v1beta20180501preview.WebTestProperties_Status_Request
func (*WebTestProperties_Status_Request) DeepCopy ¶
func (in *WebTestProperties_Status_Request) DeepCopy() *WebTestProperties_Status_Request
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestProperties_Status_Request.
func (*WebTestProperties_Status_Request) DeepCopyInto ¶
func (in *WebTestProperties_Status_Request) DeepCopyInto(out *WebTestProperties_Status_Request)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestProperties_Status_ValidationRules ¶
type WebTestProperties_Status_ValidationRules struct { ContentValidation *WebTestProperties_Status_ValidationRules_ContentValidation `json:"ContentValidation,omitempty"` ExpectedHttpStatusCode *int `json:"ExpectedHttpStatusCode,omitempty"` IgnoreHttpsStatusCode *bool `json:"IgnoreHttpsStatusCode,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SSLCertRemainingLifetimeCheck *int `json:"SSLCertRemainingLifetimeCheck,omitempty"` SSLCheck *bool `json:"SSLCheck,omitempty"` }
Storage version of v1beta20180501preview.WebTestProperties_Status_ValidationRules
func (*WebTestProperties_Status_ValidationRules) DeepCopy ¶
func (in *WebTestProperties_Status_ValidationRules) DeepCopy() *WebTestProperties_Status_ValidationRules
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestProperties_Status_ValidationRules.
func (*WebTestProperties_Status_ValidationRules) DeepCopyInto ¶
func (in *WebTestProperties_Status_ValidationRules) DeepCopyInto(out *WebTestProperties_Status_ValidationRules)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTestProperties_Status_ValidationRules_ContentValidation ¶
type WebTestProperties_Status_ValidationRules_ContentValidation struct { ContentMatch *string `json:"ContentMatch,omitempty"` IgnoreCase *bool `json:"IgnoreCase,omitempty"` PassIfTextFound *bool `json:"PassIfTextFound,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` }
Storage version of v1beta20180501preview.WebTestProperties_Status_ValidationRules_ContentValidation
func (*WebTestProperties_Status_ValidationRules_ContentValidation) DeepCopy ¶
func (in *WebTestProperties_Status_ValidationRules_ContentValidation) DeepCopy() *WebTestProperties_Status_ValidationRules_ContentValidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTestProperties_Status_ValidationRules_ContentValidation.
func (*WebTestProperties_Status_ValidationRules_ContentValidation) DeepCopyInto ¶
func (in *WebTestProperties_Status_ValidationRules_ContentValidation) DeepCopyInto(out *WebTestProperties_Status_ValidationRules_ContentValidation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebTest_Status ¶
type WebTest_Status struct { Conditions []conditions.Condition `json:"conditions,omitempty"` Configuration *WebTestProperties_Status_Configuration `json:"Configuration,omitempty"` Description *string `json:"Description,omitempty"` Enabled *bool `json:"Enabled,omitempty"` Frequency *int `json:"Frequency,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"Kind,omitempty"` Location *string `json:"location,omitempty"` Locations []WebTestGeolocation_Status `json:"Locations,omitempty"` Name *string `json:"name,omitempty"` PropertiesName *string `json:"properties_name,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Request *WebTestProperties_Status_Request `json:"Request,omitempty"` RetryEnabled *bool `json:"RetryEnabled,omitempty"` SyntheticMonitorId *string `json:"SyntheticMonitorId,omitempty"` Tags *v1.JSON `json:"tags,omitempty"` Timeout *int `json:"Timeout,omitempty"` Type *string `json:"type,omitempty"` ValidationRules *WebTestProperties_Status_ValidationRules `json:"ValidationRules,omitempty"` }
Storage version of v1beta20180501preview.WebTest_Status
func (*WebTest_Status) ConvertStatusFrom ¶
func (test *WebTest_Status) ConvertStatusFrom(source genruntime.ConvertibleStatus) error
ConvertStatusFrom populates our WebTest_Status from the provided source
func (*WebTest_Status) ConvertStatusTo ¶
func (test *WebTest_Status) ConvertStatusTo(destination genruntime.ConvertibleStatus) error
ConvertStatusTo populates the provided destination from our WebTest_Status
func (*WebTest_Status) DeepCopy ¶
func (in *WebTest_Status) DeepCopy() *WebTest_Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebTest_Status.
func (*WebTest_Status) DeepCopyInto ¶
func (in *WebTest_Status) DeepCopyInto(out *WebTest_Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Webtest ¶
type Webtest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec Webtests_Spec `json:"spec,omitempty"` Status WebTest_Status `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" Storage version of v1beta20180501preview.Webtest Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/resourceDefinitions/webtests
func (*Webtest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webtest.
func (*Webtest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Webtest) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Webtest) GetAPIVersion ¶
GetAPIVersion returns the ARM API version of the resource. This is always "2018-05-01-preview"
func (*Webtest) GetConditions ¶
func (webtest *Webtest) GetConditions() conditions.Conditions
GetConditions returns the conditions of the resource
func (*Webtest) GetResourceKind ¶
func (webtest *Webtest) GetResourceKind() genruntime.ResourceKind
GetResourceKind returns the kind of the resource
func (*Webtest) GetSpec ¶
func (webtest *Webtest) GetSpec() genruntime.ConvertibleSpec
GetSpec returns the specification of this resource
func (*Webtest) GetStatus ¶
func (webtest *Webtest) GetStatus() genruntime.ConvertibleStatus
GetStatus returns the status of this resource
func (*Webtest) GetType ¶
GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/webtests"
func (*Webtest) Hub ¶
func (webtest *Webtest) Hub()
Hub marks that this Webtest is the hub type for conversion
func (*Webtest) NewEmptyStatus ¶
func (webtest *Webtest) NewEmptyStatus() genruntime.ConvertibleStatus
NewEmptyStatus returns a new empty (blank) status
func (*Webtest) OriginalGVK ¶
func (webtest *Webtest) OriginalGVK() *schema.GroupVersionKind
OriginalGVK returns a GroupValueKind for the original API version used to create the resource
func (*Webtest) Owner ¶
func (webtest *Webtest) Owner() *genruntime.ResourceReference
Owner returns the ResourceReference of the owner, or nil if there is no owner
func (*Webtest) SetConditions ¶
func (webtest *Webtest) SetConditions(conditions conditions.Conditions)
SetConditions sets the conditions on the resource status
func (*Webtest) SetStatus ¶
func (webtest *Webtest) SetStatus(status genruntime.ConvertibleStatus) error
SetStatus sets the status of this resource
type WebtestList ¶
type WebtestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Webtest `json:"items"` }
+kubebuilder:object:root=true Storage version of v1beta20180501preview.Webtest Generated from: https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/resourceDefinitions/webtests
func (*WebtestList) DeepCopy ¶
func (in *WebtestList) DeepCopy() *WebtestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebtestList.
func (*WebtestList) DeepCopyInto ¶
func (in *WebtestList) DeepCopyInto(out *WebtestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebtestList) DeepCopyObject ¶
func (in *WebtestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Webtests_Spec ¶
type Webtests_Spec struct { //AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it //doesn't have to be. AzureName string `json:"azureName,omitempty"` Configuration *WebTestPropertiesConfiguration `json:"Configuration,omitempty"` Description *string `json:"Description,omitempty"` Enabled *bool `json:"Enabled,omitempty"` Frequency *int `json:"Frequency,omitempty"` Kind *string `json:"Kind,omitempty"` Location *string `json:"location,omitempty"` Locations []WebTestGeolocation `json:"Locations,omitempty"` Name *string `json:"Name,omitempty"` OriginalVersion string `json:"originalVersion,omitempty"` // +kubebuilder:validation:Required //Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also //controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a //reference to a resources.azure.com/ResourceGroup resource Owner *genruntime.KnownResourceReference `group:"resources.azure.com" json:"owner,omitempty" kind:"ResourceGroup"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Request *WebTestPropertiesRequest `json:"Request,omitempty"` RetryEnabled *bool `json:"RetryEnabled,omitempty"` SyntheticMonitorId *string `json:"SyntheticMonitorId,omitempty"` Tags map[string]string `json:"tags,omitempty"` Timeout *int `json:"Timeout,omitempty"` ValidationRules *WebTestPropertiesValidationRules `json:"ValidationRules,omitempty"` }
Storage version of v1beta20180501preview.Webtests_Spec
func (*Webtests_Spec) ConvertSpecFrom ¶
func (webtests *Webtests_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error
ConvertSpecFrom populates our Webtests_Spec from the provided source
func (*Webtests_Spec) ConvertSpecTo ¶
func (webtests *Webtests_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error
ConvertSpecTo populates the provided destination from our Webtests_Spec
func (*Webtests_Spec) DeepCopy ¶
func (in *Webtests_Spec) DeepCopy() *Webtests_Spec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webtests_Spec.
func (*Webtests_Spec) DeepCopyInto ¶
func (in *Webtests_Spec) DeepCopyInto(out *Webtests_Spec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.